From cace6d12aa701387a901505e61a815c058fbe1cb Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Tue, 30 Oct 2012 10:53:39 -0400 Subject: [PATCH] Bug 5521 - item edit form appears if no items found Content-Type: text/plain; charset="utf-8" This patch changes the template so that if no items are found the page doesn't show "The following barcodes were found" and doesn't show the item edit form. To test, submit a batch which contains no valid barcodes. Compare to a batch which contains some or all valid barcodes. --- .../prog/en/modules/tools/batchMod-edit.tt | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 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 551ff40..8645853 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 @@ -80,8 +80,10 @@ $(document).ready(function(){ [% END %] - [% UNLESS ( too_many_items ) %] -

The following barcodes were found:

+ [% IF ( item_loop ) %] + [% UNLESS ( too_many_items ) %] +

The following barcodes were found:

+ [% END %] [% END %] [% END %] @@ -142,6 +144,7 @@ $(document).ready(function(){ [% END %] [% END %] +[% IF ( item_loop ) %]

Edit Items

Checking the box right next the subfield label will disable the entry and delete the subfield on all selected items. Leave fields blank to make no change.
@@ -179,6 +182,9 @@ $(document).ready(function(){ Cancel
+[% ELSE %] +

Return to batch item modification

+[% END %] [% ELSE %]
[% IF ( src == 'CATALOGUING') %] -- 1.7.9.5