NIHVIVO-2508 Preparation for exposing some template model methods as methods rather than properties. Also condensed code used to generate editing links for menu management.
This commit is contained in:
parent
fcdff9ea54
commit
2e20918beb
1 changed files with 4 additions and 1 deletions
|
@ -82,7 +82,7 @@ public class IndividualTemplateModel extends BaseIndividualTemplateModel {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* Access methods for templates */
|
/* Template properties */
|
||||||
|
|
||||||
public boolean isPerson() {
|
public boolean isPerson() {
|
||||||
return isVClass(PERSON_CLASS);
|
return isVClass(PERSON_CLASS);
|
||||||
|
@ -129,6 +129,9 @@ public class IndividualTemplateModel extends BaseIndividualTemplateModel {
|
||||||
return getVisUrl(mapOfScienceVisURL);
|
return getVisUrl(mapOfScienceVisURL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* Template methods */
|
||||||
|
|
||||||
public Map<String, String> doQrData() {
|
public Map<String, String> doQrData() {
|
||||||
if(qrData == null)
|
if(qrData == null)
|
||||||
qrData = generateQrData();
|
qrData = generateQrData();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue