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" "sortType": "person"
}, },
{ {
"id": "workauthor", "id": "versionauthor",
"title": "Work Author", "title": "Version Author",
"type": ["string"], "type": ["string"],
"autocomplete": true, "autocomplete": true,
"columnRequired": true, "columnRequired": true,

View file

@ -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> '

View file

@ -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> '