From 53ceb888c75bf0e41f90e4d5a4f7f3bc694eb8b7 Mon Sep 17 00:00:00 2001 From: rlx Date: Fri, 15 Dec 2017 14:09:42 +0000 Subject: [PATCH] fix version author --- config.jsonc | 4 ++-- static/js/documentInfoView.ninetytwo.js | 3 +++ static/js/infoView.ninetytwo.js | 3 +++ 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/config.jsonc b/config.jsonc index 1de904f..7bd3c75 100644 --- a/config.jsonc +++ b/config.jsonc @@ -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, diff --git a/static/js/documentInfoView.ninetytwo.js b/static/js/documentInfoView.ninetytwo.js index 3667dfc..e829989 100644 --- a/static/js/documentInfoView.ninetytwo.js +++ b/static/js/documentInfoView.ninetytwo.js @@ -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' ? '' + Ox.toTitleCase(key) + ': ' diff --git a/static/js/infoView.ninetytwo.js b/static/js/infoView.ninetytwo.js index 7b90b26..2798b6d 100644 --- a/static/js/infoView.ninetytwo.js +++ b/static/js/infoView.ninetytwo.js @@ -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' ? '' + Ox.toTitleCase(key) + ': '