From 853efbba9a1d792386fefd6e3c73b8ae89410236 Mon Sep 17 00:00:00 2001 From: j Date: Fri, 5 Apr 2024 10:41:36 +0100 Subject: [PATCH] link source/project --- static/js/documentInfoView.padma.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/static/js/documentInfoView.padma.js b/static/js/documentInfoView.padma.js index 1b88659d..270106b8 100644 --- a/static/js/documentInfoView.padma.js +++ b/static/js/documentInfoView.padma.js @@ -29,6 +29,9 @@ pandora.ui.documentInfoView = function(data, isMixed) { }).map(function(key){ return key.id; }), + linkKeys = [ + 'type', 'publisher', 'source', 'project' + ], displayedKeys = [ // FIXME: can tis be a flag in the config? 'title', 'notes', 'name', 'description', 'id', 'user', 'rightslevel', 'timesaccessed', @@ -324,6 +327,9 @@ pandora.ui.documentInfoView = function(data, isMixed) { renderGroup(['publisher', 'place', 'series', 'edition', 'language']); Ox.getObjectById(pandora.site.documentKeys, 'keywords') && renderGroup(['keywords']) + if (isMultiple) { + renderGroup(['source', 'project']); + } // Render any remaing keys defined in config @@ -632,7 +638,7 @@ pandora.ui.documentInfoView = function(data, isMixed) { ret = formatLink(value.split(', '), key); } else if (listKeys.indexOf(key) > -1) { ret = formatLink(value.split(', '), key); - } else if (['type', 'publisher'].indexOf(key) > -1) { + } else if (linkKeys.indexOf(key) > -1) { ret = formatLink(value, key); } else { if (isMixed[key]) {