fix version author
This commit is contained in:
parent
ba4b3a1c8b
commit
53ceb888c7
3 changed files with 8 additions and 2 deletions
|
@ -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,
|
||||
|
|
|
@ -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> '
|
||||
|
|
|
@ -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> '
|
||||
|
|
Loading…
Reference in a new issue