From 2f93ff077c56901a62819a12880b49b2a94ba911 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 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. Signed-off-by: Nicole C. Engard All tests succeed. Signed-off-by: Paul Poulain Signed-off-by: Jared Camins-Esakov Signed-off-by: Chris Cormack --- .../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 bc6b7c619a..fcea9569a8 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 @@ -76,8 +76,10 @@ $("input[name='disable_input']").click(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 %] @@ -137,6 +139,7 @@ $("input[name='disable_input']").click(function() { [% END %] [% END %] +[% IF ( item_loop ) %]

Edit Items

Checking the box right next the subfield label will disable the entry and delete the values of that subfield on all selected items
@@ -171,6 +174,9 @@ $("input[name='disable_input']").click(function() { Cancel
+[% ELSE %] +

Return to batch item modification

+[% END %] [% ELSE %]
Done -- 2.39.5