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"
|
"sortType": "person"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "workauthor",
|
"id": "versionauthor",
|
||||||
"title": "Work Author",
|
"title": "Version Author",
|
||||||
"type": ["string"],
|
"type": ["string"],
|
||||||
"autocomplete": true,
|
"autocomplete": true,
|
||||||
"columnRequired": true,
|
"columnRequired": true,
|
||||||
|
|
|
@ -425,6 +425,9 @@ pandora.ui.documentInfoView = function(data) {
|
||||||
function formatKey(key, mode) {
|
function formatKey(key, mode) {
|
||||||
var item = Ox.getObjectById(pandora.site.itemKeys, key);
|
var item = Ox.getObjectById(pandora.site.itemKeys, key);
|
||||||
key = Ox._(item ? item.title : key);
|
key = Ox._(item ? item.title : key);
|
||||||
|
if (key == 'versionauthor') {
|
||||||
|
key == 'version author';
|
||||||
|
}
|
||||||
mode = mode || 'text';
|
mode = mode || 'text';
|
||||||
return mode == 'text'
|
return mode == 'text'
|
||||||
? '<span style="font-weight: bold">' + Ox.toTitleCase(key) + ':</span> '
|
? '<span style="font-weight: bold">' + Ox.toTitleCase(key) + ':</span> '
|
||||||
|
|
|
@ -402,6 +402,9 @@ pandora.ui.infoView = function(data) {
|
||||||
function formatKey(key, mode) {
|
function formatKey(key, mode) {
|
||||||
var item = Ox.getObjectById(pandora.site.itemKeys, key);
|
var item = Ox.getObjectById(pandora.site.itemKeys, key);
|
||||||
key = Ox._(item ? item.title : key);
|
key = Ox._(item ? item.title : key);
|
||||||
|
if (key == 'versionauthor') {
|
||||||
|
key == 'version author';
|
||||||
|
}
|
||||||
mode = mode || 'text';
|
mode = mode || 'text';
|
||||||
return mode == 'text'
|
return mode == 'text'
|
||||||
? '<span style="font-weight: bold">' + Ox.toTitleCase(key) + ':</span> '
|
? '<span style="font-weight: bold">' + Ox.toTitleCase(key) + ':</span> '
|
||||||
|
|
Loading…
Reference in a new issue