Bug 19722: (follow-up) Adjust template parameters
authorNick Clemens <nick@bywatersolutions.com>
Mon, 16 Jul 2018 17:41:28 +0000 (17:41 +0000)
committerNick Clemens <nick@bywatersolutions.com>
Thu, 28 Mar 2019 18:06:23 +0000 (18:06 +0000)
Before we passed 'too_many_items' this was renamed to
'too_many_items_display' but deletion template lacked changes

To test:
1 - Test a batch deletion by list and file
2 - Test with deleting biblios and without
3 - Results should be as expected

Signed-off-by: Josef Moravec <josef.moravec@gmail.com>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>

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

index f0e83f1..fd7913b 100644 (file)
@@ -42,9 +42,9 @@
                 [% END %]
             </tbody>
         </table>
-        [% IF ( item_loop ) %]
-            [% UNLESS ( too_many_items ) %]
-                <h4>The following barcodes were found: </h4>
+        [% UNLESS ( too_many_items_display ) %]
+            [% IF ( item_loop ) %]
+                    <h4>The following barcodes were found: </h4>
             [% END %]
         [% END %]
     [% END %] <!-- /notfoundbarcodes -->
@@ -62,9 +62,9 @@
                 [% END %]
             </tbody>
         </table>
-        [% IF ( item_loop ) %]
-            [% UNLESS ( too_many_items ) %]
-                <h4>The following itemnumbers were found: </h4>
+        [% UNLESS ( too_many_items_display ) %]
+            [% IF ( item_loop ) %]
+                    <h4>The following itemnumbers were found: </h4>
             [% END %]
         [% END %]
     [% END %] <!-- /notfounditemnumbers -->
 
 [% IF ( show ) %]
 
-[% IF ( too_many_items ) %]
-    <p>Too many items ([% too_many_items | html %]) to display individually.</p>
+[% IF ( too_many_items_display ) %]
+    <p>Too many items ([% too_many_items_display | html %]) to display individually.</p>
     [% FOREACH itemnumber IN itemnumbers_array %]
         <input type="hidden" name="itemnumber" value="[% itemnumber | html %]" />
     [% END %]
 [% IF ( itemresults ) %]
         <div id="cataloguing_additem_newitem">
          <input type="hidden" name="op" value="[% op | html %]" />
-         <p>This will delete [% IF ( too_many_items ) %]all the[% ELSE %]the selected[% END %] items.</p>
+         <p>This will delete [% IF ( too_many_items_display ) %]all the[% ELSE %]the selected[% END %] items.</p>
          <input type="hidden" name="del" value="1" />
          <fieldset class="action">
         <input type="checkbox" name="del_records" id="del_records" /> <label for="del_records">Delete records if no items remain.</label>
-        [% IF too_many_items %]
+        [% IF too_many_items_display %]
             <input type="submit" name="mainformsubmit" value="Delete ALL submitted items" />
         [% ELSE %]
             <input type="submit" name="mainformsubmit" value="Delete selected items" />