Compare commits

..

3 commits

Author SHA1 Message Date
j
79cbb61ec3 add volume 2019-10-14 14:32:54 +01:00
j
522328693d add isMixed/isMultiple 2019-07-31 11:53:12 +02:00
j
6de857fbd0 no preview in batch edit 2019-06-11 12:44:49 +01:00
3 changed files with 13 additions and 3 deletions

View file

@ -261,6 +261,14 @@
"find": true, "find": true,
"sort": true "sort": true
}, },
{
"id": "volume",
"title": "Volume",
"type": "string",
"columnWidth": 128,
"find": true,
"sort": true
},
{ {
"id": "language", "id": "language",
"title": "Language", "title": "Language",

View file

@ -230,7 +230,7 @@ pandora.ui.documentInfoView = function(data, isMixed) {
// Director, Year and Country ---------------------------------------------- // Director, Year and Country ----------------------------------------------
renderGroup(['author', 'date', 'format']); renderGroup(['author', 'date', 'format']);
renderGroup(['publisher', 'place', 'series', 'language']); renderGroup(['publisher', 'place', 'series', 'volume', 'language']);
renderGroup(['source', 'links']); renderGroup(['source', 'links']);
renderGroup(['movement', 'event', 'associatedgroups']); renderGroup(['movement', 'event', 'associatedgroups']);
renderGroup(['tags']); renderGroup(['tags']);
@ -270,7 +270,7 @@ pandora.ui.documentInfoView = function(data, isMixed) {
} }
// Preview // Preview
if (data.extension == 'pdf') { if (data.extension == 'pdf' && !isMultiple) {
var $div = $('<div>').css({ var $div = $('<div>').css({
marginTop: '12px', marginTop: '12px',
}).html( }).html(

View file

@ -1,8 +1,10 @@
'use strict'; 'use strict';
pandora.ui.infoView = function(data) { pandora.ui.infoView = function(data, isMixed) {
isMixed = isMixed || {};
var ui = pandora.user.ui, var ui = pandora.user.ui,
isMultiple = arguments.length == 2,
canEdit = pandora.site.capabilities.canEditMetadata[pandora.user.level] || data.editable, canEdit = pandora.site.capabilities.canEditMetadata[pandora.user.level] || data.editable,
canRemove = pandora.site.capabilities.canRemoveItems[pandora.user.level] || data.editable, canRemove = pandora.site.capabilities.canRemoveItems[pandora.user.level] || data.editable,
css = { css = {