link source/project
This commit is contained in:
parent
5ade53a0b5
commit
853efbba9a
1 changed files with 7 additions and 1 deletions
|
@ -29,6 +29,9 @@ pandora.ui.documentInfoView = function(data, isMixed) {
|
||||||
}).map(function(key){
|
}).map(function(key){
|
||||||
return key.id;
|
return key.id;
|
||||||
}),
|
}),
|
||||||
|
linkKeys = [
|
||||||
|
'type', 'publisher', 'source', 'project'
|
||||||
|
],
|
||||||
displayedKeys = [ // FIXME: can tis be a flag in the config?
|
displayedKeys = [ // FIXME: can tis be a flag in the config?
|
||||||
'title', 'notes', 'name', 'description', 'id',
|
'title', 'notes', 'name', 'description', 'id',
|
||||||
'user', 'rightslevel', 'timesaccessed',
|
'user', 'rightslevel', 'timesaccessed',
|
||||||
|
@ -324,6 +327,9 @@ pandora.ui.documentInfoView = function(data, isMixed) {
|
||||||
renderGroup(['publisher', 'place', 'series', 'edition', 'language']);
|
renderGroup(['publisher', 'place', 'series', 'edition', 'language']);
|
||||||
|
|
||||||
Ox.getObjectById(pandora.site.documentKeys, 'keywords') && renderGroup(['keywords'])
|
Ox.getObjectById(pandora.site.documentKeys, 'keywords') && renderGroup(['keywords'])
|
||||||
|
if (isMultiple) {
|
||||||
|
renderGroup(['source', 'project']);
|
||||||
|
}
|
||||||
|
|
||||||
// Render any remaing keys defined in config
|
// Render any remaing keys defined in config
|
||||||
|
|
||||||
|
@ -632,7 +638,7 @@ pandora.ui.documentInfoView = function(data, isMixed) {
|
||||||
ret = formatLink(value.split(', '), key);
|
ret = formatLink(value.split(', '), key);
|
||||||
} else if (listKeys.indexOf(key) > -1) {
|
} else if (listKeys.indexOf(key) > -1) {
|
||||||
ret = formatLink(value.split(', '), key);
|
ret = formatLink(value.split(', '), key);
|
||||||
} else if (['type', 'publisher'].indexOf(key) > -1) {
|
} else if (linkKeys.indexOf(key) > -1) {
|
||||||
ret = formatLink(value, key);
|
ret = formatLink(value, key);
|
||||||
} else {
|
} else {
|
||||||
if (isMixed[key]) {
|
if (isMixed[key]) {
|
||||||
|
|
Loading…
Reference in a new issue