From cae455852daf55a79fdc02cc6153ce7d72cdb80f Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Mon, 14 May 2018 20:57:57 +0000 Subject: [PATCH] Bug 19490: Add a 'Holds' column to the items batchmodification tool MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit To test: 1 - Add some items to bathc modification 2 - Note there is no indication fo holds 3 - Apply patch 4 - Reload and note you can see how many holds (or none) 5 - Note you can hide this column with css: #batchMod-edit .holds_count { display: none; } 6 - Note the column has a tooltip to indicate item vs. record holds Signed-off-by: Séverine QUEUNE --- koha-tmpl/intranet-tmpl/prog/en/modules/tools/batchMod-edit.tt | 2 ++ koha-tmpl/intranet-tmpl/prog/js/pages/batchMod.js | 10 +++++----- tools/batchMod.pl | 4 ++++ 3 files changed, 11 insertions(+), 5 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batchMod-edit.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batchMod-edit.tt index 32577c8..9b5079f 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batchMod-edit.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batchMod-edit.tt @@ -137,6 +137,7 @@ $(document).ready(function(){   Title + Holds [% FOREACH item_header_loo IN item_header_loop %] [% item_header_loo.header_value %] [% END %] @@ -155,6 +156,7 @@ $(document).ready(function(){   [% END %] + [% IF item_loo.holds %][% item_loo.item_holds %]/[% item_loo.holds %][% ELSE %][% item_loo.holds %][% END %] [% FOREACH item_valu IN item_loo.item_value %] [% item_valu.field |html %] [% END %] [% END %] diff --git a/koha-tmpl/intranet-tmpl/prog/js/pages/batchMod.js b/koha-tmpl/intranet-tmpl/prog/js/pages/batchMod.js index 40ae5bd..c20a415 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/pages/batchMod.js +++ b/koha-tmpl/intranet-tmpl/prog/js/pages/batchMod.js @@ -11,7 +11,7 @@ function hideColumns(){ $("#showall").prop("checked", false).parent().removeClass("selected"); for( i=0; i