@@ -, +, @@ Pick two biblios A, B and create five items say A1,A2,B1,B2,B3. Pick a not-existing callnumber range you want to test and move these five items there. Add barcodes too (say A1..B3). Edit one item A1 to a not-existing notforloan status (doing this on the mysql command line is fastest). Like: update items set notforloan = '9' where barcode='A1'; Now simulate that we did not add/edit these items today: update items set datelastseen='2017-01-01' where barcode in ('A1','A2','B1','B2','B3'); Note: We need this when comparing with last inventory date in the last scenario. Verify that "Set inventory date", Compare barcodes and "Do not check in" are disabled on the form. Check that you see the Optional filters box. Submit the form. Verify that you see all five items. Do the same. Check Export to CSV. Check result file contents. existing barcode outside the test callnumber range. After uploading this file, verify that "Set inventory date", Compare and "Do not check in" are enabled. The Optional filters should be hidden. Leave "Set inventory date" to today. Enter the callnumber range again. Submit the form. What do we expect? Four items should have been updated (alert). We should see barcode A1 with problem Unknown status. We should see also the barcode from the other range (Found in wrong place). Repeat this step with the same file. But now export to CSV. Verify that you see two barcodes with problems again in the csv file. outside the test callnumber range. After uploading this file, check the Compare checkbox. Verify now that the Optional filters box is displayed again. Leave "Set inventory date" to today. Enter the callnumber range again. Also set "Last inventory date" to today (important!). Submit the form. What do we expect now? Two items should be updated (see alert). We should see barcode B3 with problem Missing. We should also see the barcode from the other range (wrong place). --- .../prog/en/modules/tools/inventory.tt | 80 +++++++++++++++------- 1 file changed, 55 insertions(+), 25 deletions(-) --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/inventory.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/inventory.tt @@ -86,6 +86,35 @@ $(document).ready(function(){ $(".checkboxed").unCheckCheckboxes(); return false; }); + + // #uploadbarcodes and #compareinv2barcd determine the behavior of + // the controls within the barcode fieldset and the optional filters + $("#uploadbarcodes").change(function() { + if( $("#uploadbarcodes").val() ) { + $("#setdate").prop('disabled',false); + $("#compareinv2barcd").prop('disabled',false); + $("#dont_checkin").prop('disabled',false); + if( $("#compareinv2barcd").attr('checked') ) { + $("fieldset#optionalfilters").show(); + } else { + $("fieldset#optionalfilters").hide(); + } + } else { + $("#setdate").prop('disabled',true); + $("#compareinv2barcd").prop('disabled',true); + $("#compareinv2barcd").attr('checked',false); + $("#dont_checkin").prop('disabled',true); + $("#dont_checkin").attr('checked',false); + $("fieldset#optionalfilters").show(); + } + }); + $("#compareinv2barcd").click(function() { + if( $("#compareinv2barcd").attr('checked') ) { + $("fieldset#optionalfilters").show(); + } else { + $("fieldset#optionalfilters").hide(); + } + }); }); //]]> @@ -122,16 +151,17 @@ $(document).ready(function(){
- Use a barcode file -
    + Use a barcode file +
    1. -
    2. -
    3. +
    4. +
    5. +
- Select items you want to check + Item location filters
  1. Home library @@ -168,11 +198,12 @@ $(document).ready(function(){
  2. - [% IF (statuses) %]
-
- Item statuses + +
+ Optional filters for inventory list or comparing barcodes +
[% FOREACH status IN statuses %] [% IF (status.values) %] @@ -198,33 +229,32 @@ $(document).ready(function(){ [% END %] [% END %]
-
-
-
    - [% END %] - -
  1. +
      +
    1. +
      + (Skip records marked as seen on or after this date.)
    2. -
    3. +
    4. + [% IF (ignoreissued) %] -
    5. + [% ELSE %] - + [% END %] + +
    +
+ +
+ Additional options +
    +
  1. -
  2. - - -
  3. -
  4. - - -
--