Bugzilla – Attachment 62099 Details for
Bug 14399
Fix inventory.pl part two (following 12913)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 14399: Results form also needs a few interface changes
Bug-14399-Results-form-also-needs-a-few-interface-.patch (text/plain), 3.31 KB, created by
Marcel de Rooy
on 2017-04-12 15:01:06 UTC
(
hide
)
Description:
Bug 14399: Results form also needs a few interface changes
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2017-04-12 15:01:06 UTC
Size:
3.31 KB
patch
obsolete
>From 1220d481510eb1f20b8aaf806173c224e3ccf88f Mon Sep 17 00:00:00 2001 >From: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >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 <m.de.rooy@rijksmuseum.nl> >--- > 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(){ > <input type="hidden" name="branchcode" value="[% branchcode %]" /> > <input type="hidden" name="datelastseen" value="[% datelastseen %]" /> > >- [% UNLESS compareinv2barcd %] >+ [% UNLESS uploadedbarcodesflag %] > <div><a href="#" class="checkall"><i class="fa fa-check"></i> Select all</a> <a href="#" class="clearall"><i class="fa fa-remove"></i> Clear all</a></div> > [% END %] > > <table id="inventoryt"> > <thead> > <tr> >- [% UNLESS compareinv2barcd %]<th>Seen</th>[% END %] >+ [% UNLESS uploadedbarcodesflag %]<th>Seen</th>[% END %] > <th>Barcode</th> > <th>Call number</th> > <th>Library</th> >@@ -292,7 +292,7 @@ $(document).ready(function(){ > <tbody> > [% FOREACH result IN loop %] > <tr> >- [% UNLESS compareinv2barcd %] >+ [% UNLESS uploadedbarcodesflag %] > <td> > <input type="checkbox" name="SEEN-[% result.itemnumber %]" value="1" /> > </td> >@@ -344,7 +344,7 @@ $(document).ready(function(){ > </tbody> > </table> > <div class="spacer"></div> >- [% UNLESS compareinv2barcd %] >+ [% UNLESS uploadedbarcodesflag %] > <div style="padding : .3em 0"><a href="#" class="checkall"><i class="fa fa-check"></i> Select all</a> <a href="#" class="clearall"><i class="fa fa-remove"></i> Clear all</a></div> > <input type="submit" id="markseenandquit" value="Mark seen and quit" /> > <input type="submit" value="Mark seen and continue >>" id="markseenandcontinuebutton" /> >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
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 14399
:
61685
|
62096
|
62097
|
62098
|
62099
|
62139
|
62140
|
62733
|
62734
|
62735
|
62736
|
63465
|
63466
|
63467
|
63468
|
67546
|
67547
|
67548
|
67549