No Jira issue. Add tooltips to object property labels by pulling in the public description of th eproperty.
This commit is contained in:
parent
f993cf85ab
commit
3fdc17d16d
2 changed files with 10 additions and 4 deletions
|
@ -81,6 +81,7 @@ public abstract class ObjectPropertyTemplateModel extends PropertyTemplateModel
|
|||
private PropertyListConfig config;
|
||||
private String objectKey;
|
||||
private String sortDirection;
|
||||
private String publicDescription;
|
||||
private int displayLimit;
|
||||
|
||||
ObjectPropertyTemplateModel(ObjectProperty op, Individual subject, VitroRequest vreq,
|
||||
|
@ -92,6 +93,7 @@ public abstract class ObjectPropertyTemplateModel extends PropertyTemplateModel
|
|||
sortDirection = op.getDomainEntitySortDirection();
|
||||
domainUri = op.getDomainVClassURI();
|
||||
rangeUri = op.getRangeVClassURI();
|
||||
publicDescription = op.getPublicDescription();
|
||||
displayLimit = op.getDomainDisplayLimit();
|
||||
|
||||
// Get the config for this object property
|
||||
|
@ -182,6 +184,10 @@ public abstract class ObjectPropertyTemplateModel extends PropertyTemplateModel
|
|||
return displayLimit;
|
||||
}
|
||||
|
||||
public String getPublicDescription() {
|
||||
return publicDescription;
|
||||
}
|
||||
|
||||
public ConfigError checkQuery(String queryString) {
|
||||
if (StringUtils.isBlank(queryString)) {
|
||||
return ConfigError.NO_SELECT_QUERY;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue