link source/project

This commit is contained in:
j 2024-04-05 10:41:36 +01:00
parent 5ade53a0b5
commit 853efbba9a
1 changed files with 7 additions and 1 deletions

View File

@ -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]) {