Bug 10937: Fix Seach Type in Advanced Search
authorBlou <philippe.blouin@inlibro.com>
Fri, 21 Aug 2015 13:01:47 +0000 (09:01 -0400)
committerTomas Cohen Arazi <tomascohen@theke.io>
Thu, 22 Oct 2015 14:06:39 +0000 (11:06 -0300)
In order to see the checkboxes of the Collection and Shelving location of the advanced search, the if changed so that only the Itemtypes will go through the previous if

koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-advsearch.tt

index 28a1dc0..d1ce16a 100644 (file)
                                     <legend>Limit to any of the following:</legend>
                                     <div class="row-fluid">
                                         [% FOREACH itemtypeloo IN advsearchloo.code_loop %]
-                                            [% IF ((!itemtypeloo.searchcategory) AND (itemtypeloo.cat == 0)) OR (itemtypeloo.cat == 1) %]
+                                            [% IF (advsearchloo.advanced_search_type != 'itemtypes') OR (((!itemtypeloo.searchcategory) AND (itemtypeloo.cat == 0)) OR (itemtypeloo.cat == 1)) %]
                                                 <div class="span3">
                                                     <input type="checkbox"
                                                         id="[% itemtypeloo.ccl FILTER remove(',') %]-[% itemtypeloo.number %]"