From 35c389395453fcb837d2ae5cd5e8630d314c5d60 Mon Sep 17 00:00:00 2001 From: Marcel de Rooy Date: Wed, 12 Apr 2017 16:06:29 +0200 Subject: [PATCH] Bug 14399: Results form also needs a few interface changes Content-Type: text/plain; charset=utf-8 Currently, the value of compareinv2barcd is used to determine if the Seen column, the Select/Clear all buttons and the Mark seen buttons are displayed. But if we scanned barcodes, we already marked items as seen. So we should only display these buttons when we did not upload barcodes. Test plan: [1] Upload a barcode file. Check that the result form does not show the buttons. [2] Generate an inventory list, so do not upload a barcode file. Verify that you still see the buttons. Signed-off-by: Marcel de Rooy --- koha-tmpl/intranet-tmpl/prog/en/modules/tools/inventory.tt | 8 ++++---- tools/inventory.pl | 1 + 2 files changed, 5 insertions(+), 4 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 58f3897..6fcbff8 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/inventory.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/inventory.tt @@ -269,14 +269,14 @@ $(document).ready(function(){ - [% UNLESS compareinv2barcd %] + [% UNLESS uploadedbarcodesflag %]
Select all Clear all
[% END %] - [% UNLESS compareinv2barcd %][% END %] + [% UNLESS uploadedbarcodesflag %][% END %] @@ -292,7 +292,7 @@ $(document).ready(function(){ [% FOREACH result IN loop %] - [% UNLESS compareinv2barcd %] + [% UNLESS uploadedbarcodesflag %] @@ -344,7 +344,7 @@ $(document).ready(function(){
SeenSeenBarcode Call number Library
- [% UNLESS compareinv2barcd %] + [% UNLESS uploadedbarcodesflag %]
Select all Clear all
diff --git a/tools/inventory.pl b/tools/inventory.pl index 76a0925..1ee40a1 100755 --- a/tools/inventory.pl +++ b/tools/inventory.pl @@ -123,6 +123,7 @@ $template->param( branch => $branch, datelastseen => $datelastseen, compareinv2barcd => $compareinv2barcd, + uploadedbarcodesflag => $uploadbarcodes ? 1 : 0, ); # Walk through uploaded barcodes, report errors, mark as seen, check in -- 2.1.4