fix version author

This commit is contained in:
rlx 2017-12-15 14:09:42 +00:00
parent ba4b3a1c8b
commit 53ceb888c7
3 changed files with 8 additions and 2 deletions

View file

@ -564,8 +564,8 @@ examples (config.SITENAME.jsonc) that are part of this pan.do/ra distribution.
"sortType": "person"
},
{
"id": "workauthor",
"title": "Work Author",
"id": "versionauthor",
"title": "Version Author",
"type": ["string"],
"autocomplete": true,
"columnRequired": true,

View file

@ -425,6 +425,9 @@ pandora.ui.documentInfoView = function(data) {
function formatKey(key, mode) {
var item = Ox.getObjectById(pandora.site.itemKeys, key);
key = Ox._(item ? item.title : key);
if (key == 'versionauthor') {
key == 'version author';
}
mode = mode || 'text';
return mode == 'text'
? '<span style="font-weight: bold">' + Ox.toTitleCase(key) + ':</span> '

View file

@ -402,6 +402,9 @@ pandora.ui.infoView = function(data) {
function formatKey(key, mode) {
var item = Ox.getObjectById(pandora.site.itemKeys, key);
key = Ox._(item ? item.title : key);
if (key == 'versionauthor') {
key == 'version author';
}
mode = mode || 'text';
return mode == 'text'
? '<span style="font-weight: bold">' + Ox.toTitleCase(key) + ':</span> '