From e427cf5b3f3ded54dbc6899c149a2de3e8ab13ea 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=utf8 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 Signed-off-by: Katrin Fischer Signed-off-by: Nick Clemens --- .../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 3c09313370..870d9a2cd9 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 @@ -158,6 +158,7 @@ $(document).ready(function(){   Title + Holds [% FOREACH item_header_loo IN item_header_loop %] [% item_header_loo.header_value | html %] [% END %] @@ -176,6 +177,7 @@ $(document).ready(function(){   [% END %] + [% IF item_loo.holds %][% item_loo.item_holds | html %]/[% item_loo.holds | html %][% ELSE %][% item_loo.holds | html %][% 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 40ae5bd980..c20a415eb1 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