[Koha-patches] [PATCH] [BUG 11272] Add second submit button to inventory

Nicole C. Engard nengard at bywatersolutions.com
Fri Jan 24 16:50:17 CET 2014


The inventory tool allows for 2 ways of processing files. The first
is to upload a file. The second is to generate the shelf list.
Most libraries think they have to fill in all fields because the
submit button is at the bottom of the second option. They do not.
This patch adds a second submit button under the first method to
make this clearer.

To test:

* Generate a file of barcodes for inventorying
* Before applying the patch use the file upload method to mark as seen
* Apply the patch
* Use the file upload method to mark as seen using the new submit
* Repeat the above for the shelf list method
* Confirm that inventory still works as expected with 2 buttons
---
 .../prog/en/modules/tools/inventory.tt             |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/inventory.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/inventory.tt
index a4d3e0c..18a4d98 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/inventory.tt
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/inventory.tt
@@ -97,6 +97,10 @@ $(document).ready(function(){
             </li>
           </ol>
         </fieldset>
+
+        <!-- submit button for uploaded file -->
+        <fieldset class="action"><input type="submit" value="Submit" class="button" /></fieldset>
+
         <fieldset class="rows">
         <legend>Select items you want to check</legend>
         <ol><li>
@@ -184,6 +188,8 @@ $(document).ready(function(){
         </ol>
   </fieldset>
             <input type="hidden" name="op" value="do_it" />
+
+            <!-- repeat submit button for generating shelf list -->
             <fieldset class="action"><input type="submit" value="Submit" class="button" /></fieldset>
     </form>
     </div>
-- 
1.7.2.3



More information about the Koha-patches mailing list