Browse Source

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 <nengard@bywatersolutions.com>
All tests succeed.

Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
3.12.x
Owen Leonard 12 years ago
committed by Jared Camins-Esakov
parent
commit
4e97465463
  1. 10
      koha-tmpl/intranet-tmpl/prog/en/modules/tools/batchMod-edit.tt

10
koha-tmpl/intranet-tmpl/prog/en/modules/tools/batchMod-edit.tt

@ -81,8 +81,10 @@ $(document).ready(function(){
[% END %]
</tbody>
</table>
[% UNLESS ( too_many_items ) %]
<h4>The following barcodes were found: </h4>
[% IF ( item_loop ) %]
[% UNLESS ( too_many_items ) %]
<h4>The following barcodes were found: </h4>
[% END %]
[% END %]
[% END %] <!-- /notfoundbarcodes -->
@ -143,6 +145,7 @@ $(document).ready(function(){
[% END %]
[% END %]<!-- /too_many_items -->
[% IF ( item_loop ) %]
<div id="cataloguing_additem_newitem">
<h2>Edit Items</h2>
<div class="hint">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.</div>
@ -182,6 +185,9 @@ $(document).ready(function(){
<a href="/cgi-bin/koha/tools/batchMod.pl" class="cancel" onclick="history.back();return false;">Cancel</a>
</fieldset>
</div>
[% ELSE %]
<p><a href="/cgi-bin/koha/tools/batchMod.pl">Return to batch item modification</a></p>
[% END %]
[% ELSE %] <!-- // show -->
<fieldset class="action">
[% IF ( src == 'CATALOGUING') %]

Loading…
Cancel
Save