VIVO-285: visualization updates for ISF
This commit is contained in:
parent
4202f30ea7
commit
4d5a567e36
2 changed files with 31 additions and 0 deletions
|
@ -476,6 +476,19 @@ public class GroupedPropertyList extends BaseTemplateModel {
|
|||
return null;
|
||||
}
|
||||
|
||||
public PropertyTemplateModel getProperty(String propertyUri, String rangeUri) {
|
||||
|
||||
for (PropertyGroupTemplateModel pgtm : groups) {
|
||||
List<PropertyTemplateModel> properties = pgtm.getProperties();
|
||||
for (PropertyTemplateModel ptm : properties) {
|
||||
if (propertyUri.equals(ptm.getUri()) && rangeUri.equals(ptm.getRangeUri())) {
|
||||
return ptm;
|
||||
}
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public PropertyTemplateModel pullProperty(String propertyUri) {
|
||||
return pullProperty(propertyUri, null);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue