Skip to content
Snippets Groups Projects
Commit 3b30dd14 authored by juanf's avatar juanf
Browse files

SSDM-7004 SSDM-7005 : Disable sorting of annotations + Show vocabulary

labels on annotations
parent 854db09c
No related branches found
No related tags found
No related merge requests found
...@@ -254,12 +254,15 @@ function LinksView(linksController, linksModel) { ...@@ -254,12 +254,15 @@ function LinksView(linksController, linksModel) {
property : propertyAnnotationCode, property : propertyAnnotationCode,
isExportable: true, isExportable: true,
showByDefault: true, showByDefault: true,
sortable : true, sortable : false,
render : function(data) { render : function(data) {
var sample = data["$object"]; var sample = data["$object"];
var currentValue = linksModel.readState(sample.permId, propertyType.code); var currentValue = linksModel.readState(sample.permId, propertyType.code);
if(linksModel.isDisabled) { if(linksModel.isDisabled) {
if(propertyType.dataType === "CONTROLLEDVOCABULARY") {
currentValue = FormUtil.getVocabularyLabelForTermCode(propertyType, currentValue);
}
return currentValue; return currentValue;
} else { } else {
var $field = FormUtil.getFieldForPropertyType(propertyType); var $field = FormUtil.getFieldForPropertyType(propertyType);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment