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,
"sort": true
},
{
"id": "volume",
"title": "Volume",
"type": "string",
"columnWidth": 128,
"find": true,
"sort": true
},
{
"id": "language",
"title": "Language",

View File

@ -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']);
@ -270,7 +270,7 @@ pandora.ui.documentInfoView = function(data, isMixed) {
}
// Preview
if (data.extension == 'pdf') {
if (data.extension == 'pdf' && !isMultiple) {
var $div = $('<div>').css({
marginTop: '12px',
}).html(

View File

@ -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 = {