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 a3bda5c659..642623eeef 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/inventory.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/inventory.tt @@ -89,6 +89,35 @@ $(document).ready(function(){ $("#inventory_form").on("submit",function(){ return checkForm(); }); + + // #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(); + } + }); }); //]]> @@ -125,16 +154,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 @@ -165,11 +195,12 @@ $(document).ready(function(){
  2. - [% IF (statuses) %]
-
- Item statuses + +
+ Optional filters for inventory list or comparing barcodes +
[% FOREACH status IN statuses %] [% IF (status.values) %] @@ -195,33 +226,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. - - -