From 6de857fbd0c1ac5f6cfa6f63ac9f4206c17f37f0 Mon Sep 17 00:00:00 2001 From: j Date: Tue, 11 Jun 2019 12:44:49 +0100 Subject: [PATCH 1/3] no preview in batch edit --- static/js/documentInfoView.mdr.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/js/documentInfoView.mdr.js b/static/js/documentInfoView.mdr.js index 3222068..af68d8e 100644 --- a/static/js/documentInfoView.mdr.js +++ b/static/js/documentInfoView.mdr.js @@ -270,7 +270,7 @@ pandora.ui.documentInfoView = function(data, isMixed) { } // Preview - if (data.extension == 'pdf') { + if (data.extension == 'pdf' && !isMultiple) { var $div = $('
').css({ marginTop: '12px', }).html( From 522328693d5499585fd8f5b96acc25f7141fad2f Mon Sep 17 00:00:00 2001 From: j Date: Wed, 31 Jul 2019 11:53:12 +0200 Subject: [PATCH 2/3] add isMixed/isMultiple --- static/js/infoView.mdr.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/static/js/infoView.mdr.js b/static/js/infoView.mdr.js index 9952aa3..f3a1a73 100644 --- a/static/js/infoView.mdr.js +++ b/static/js/infoView.mdr.js @@ -1,8 +1,10 @@ 'use strict'; -pandora.ui.infoView = function(data) { +pandora.ui.infoView = function(data, isMixed) { + isMixed = isMixed || {}; var ui = pandora.user.ui, + isMultiple = arguments.length == 2, canEdit = pandora.site.capabilities.canEditMetadata[pandora.user.level] || data.editable, canRemove = pandora.site.capabilities.canRemoveItems[pandora.user.level] || data.editable, css = { From 79cbb61ec3caccacf6d466af283a9a34505902c2 Mon Sep 17 00:00:00 2001 From: j Date: Mon, 14 Oct 2019 14:32:54 +0100 Subject: [PATCH 3/3] add volume --- config.jsonc | 8 ++++++++ static/js/documentInfoView.mdr.js | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/config.jsonc b/config.jsonc index a3c4474..9e5f82c 100644 --- a/config.jsonc +++ b/config.jsonc @@ -261,6 +261,14 @@ "find": true, "sort": true }, + { + "id": "volume", + "title": "Volume", + "type": "string", + "columnWidth": 128, + "find": true, + "sort": true + }, { "id": "language", "title": "Language", diff --git a/static/js/documentInfoView.mdr.js b/static/js/documentInfoView.mdr.js index af68d8e..d185f55 100644 --- a/static/js/documentInfoView.mdr.js +++ b/static/js/documentInfoView.mdr.js @@ -230,7 +230,7 @@ pandora.ui.documentInfoView = function(data, isMixed) { // Director, Year and Country ---------------------------------------------- renderGroup(['author', 'date', 'format']); - renderGroup(['publisher', 'place', 'series', 'language']); + renderGroup(['publisher', 'place', 'series', 'volume', 'language']); renderGroup(['source', 'links']); renderGroup(['movement', 'event', 'associatedgroups']); renderGroup(['tags']);