diff --git a/static/js/documentInfoView.amp.js b/static/js/documentInfoView.amp.js index 5576a93..6aca068 100644 --- a/static/js/documentInfoView.amp.js +++ b/static/js/documentInfoView.amp.js @@ -20,9 +20,7 @@ pandora.ui.documentInfoView = function(data, isMixed) { margin = 16, nameKeys = [ "group", - "source", - "publication", - "format", + "source" ].concat(pandora.site.documentKeys.filter(function(key) { return key.sortType == 'person'; }).map(function(key) { @@ -33,13 +31,6 @@ pandora.ui.documentInfoView = function(data, isMixed) { }).map(function(key){ return key.id; }), - displayedKeys = [ // FIXME: can tis be a flag in the config? - 'title', 'notes', 'name', 'description', 'id', - 'user', 'rightslevel', 'timesaccessed', - 'extension', 'dimensions', 'size', 'matches', - 'created', 'modified', 'accessed', - 'random', 'entity' - ].concat(pandora.site.documentKeys.filter(key => { return key.fulltext }).map(key => key.id)), statisticsWidth = 128, $bar = Ox.Bar({size: 16}) @@ -662,7 +653,6 @@ pandora.ui.documentInfoView = function(data, isMixed) { function renderGroup(keys) { var $element; - keys.forEach(function(key) { displayedKeys.push(key) }); if (canEdit || keys.filter(function(key) { return data[key]; }).length) { @@ -675,7 +665,6 @@ pandora.ui.documentInfoView = function(data, isMixed) { $('').html(formatKey(key)).appendTo($element); Ox.EditableContent({ clickLink: pandora.clickLink, - editable: canEdit, format: function(value) { return formatValue(key, value); }, @@ -689,13 +678,6 @@ pandora.ui.documentInfoView = function(data, isMixed) { } }) .appendTo($element); - if (isMixed[key] && Ox.contains(listKeys, key)) { - pandora.ui.addRemoveKeyDialog({ - ids: ui.collectionSelection, - key: key, - section: ui.section - }).appendTo($element) - } } }); $element.appendTo($text);