Lines 185-212
Link Here
|
185 |
</div> |
185 |
</div> |
186 |
</div> |
186 |
</div> |
187 |
<fieldset> |
187 |
<fieldset> |
188 |
[% INCLUDE form_field_select name="homebranch" options = branches empty_option = "All libraries" %] |
188 |
[% INCLUDE form_field_select name="homebranch" options = branches %] |
189 |
[% INCLUDE form_field_select name="holdingbranch" options = branches empty_option = "All libraries" %] |
189 |
[% INCLUDE form_field_select name="holdingbranch" options = branches %] |
190 |
[% IF locations.size %] |
190 |
[% IF locations.size %] |
191 |
[% INCLUDE form_field_select name="location" options = locations empty_option = "All locations" %] |
191 |
[% INCLUDE form_field_select name="location" options = locations %] |
192 |
[% END %] |
192 |
[% END %] |
193 |
</fieldset> |
193 |
</fieldset> |
194 |
<fieldset> |
194 |
<fieldset> |
195 |
[% INCLUDE form_field_select name="itype" options = itemtypes empty_option = "All item types" %] |
195 |
[% INCLUDE form_field_select name="itype" options = itemtypes style="min-width:300px" %] |
196 |
[% IF ccodes.size %] |
196 |
[% IF ccodes.size %] |
197 |
[% INCLUDE form_field_select name="ccode" options = ccodes empty_option = "All collection codes" %] |
197 |
[% INCLUDE form_field_select name="ccode" options = ccodes %] |
198 |
[% END %] |
198 |
[% END %] |
199 |
[% IF notforloans.size %] |
199 |
[% IF notforloans.size %] |
200 |
[% INCLUDE form_field_select name="notforloan" options = notforloans empty_option = "All statuses" %] |
200 |
[% INCLUDE form_field_select name="notforloan" options = notforloans %] |
201 |
[% END %] |
201 |
[% END %] |
202 |
[% IF itemlosts.size %] |
202 |
[% IF itemlosts.size %] |
203 |
[% INCLUDE form_field_select name="itemlost" options = itemlosts empty_option = "All statuses" %] |
203 |
[% INCLUDE form_field_select name="itemlost" options = itemlosts %] |
204 |
[% END %] |
204 |
[% END %] |
205 |
[% IF withdrawns.size %] |
205 |
[% IF withdrawns.size %] |
206 |
[% INCLUDE form_field_select name="withdrawn" options = withdrawns empty_option = "All statuses" %] |
206 |
[% INCLUDE form_field_select name="withdrawn" options = withdrawns %] |
207 |
[% END %] |
207 |
[% END %] |
208 |
[% IF damageds.size %] |
208 |
[% IF damageds.size %] |
209 |
[% INCLUDE form_field_select name="damaged" options = damageds empty_option = "All statuses" %] |
209 |
[% INCLUDE form_field_select name="damaged" options = damageds %] |
210 |
[% END %] |
210 |
[% END %] |
211 |
<div class="form-field"> |
211 |
<div class="form-field"> |
212 |
<label class="form-field-label">Availability:</label> |
212 |
<label class="form-field-label">Availability:</label> |
Lines 288-293
Link Here
|
288 |
[% INCLUDE 'datatables.inc' %] |
288 |
[% INCLUDE 'datatables.inc' %] |
289 |
[% Asset.js("lib/jquery/plugins/jquery.dataTables.columnFilter.js") | $raw %] |
289 |
[% Asset.js("lib/jquery/plugins/jquery.dataTables.columnFilter.js") | $raw %] |
290 |
[% Asset.js("lib/hc-sticky/hc-sticky.js") | $raw %] |
290 |
[% Asset.js("lib/hc-sticky/hc-sticky.js") | $raw %] |
|
|
291 |
[% INCLUDE 'select2.inc' %] |
291 |
<script> |
292 |
<script> |
292 |
var authorised_values = [% authorised_values_json | $raw %]; |
293 |
var authorised_values = [% authorised_values_json | $raw %]; |
293 |
|
294 |
|
Lines 722-727
Link Here
|
722 |
checkbox.change(); |
723 |
checkbox.change(); |
723 |
} |
724 |
} |
724 |
}); |
725 |
}); |
|
|
726 |
|
727 |
// Apply select2 to all select fields having a "multiple" attribute |
728 |
let selectFields = document.querySelectorAll('select[multiple]'); |
729 |
selectFields.forEach((selectField) => { |
730 |
selectField.style.minWidth = '320px'; |
731 |
$(selectField).select2(); |
732 |
}); |
725 |
}); |
733 |
}); |
726 |
</script> |
734 |
</script> |
727 |
[% END %] |
735 |
[% END %] |
728 |
- |
|
|