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 289-294
Link Here
|
289 |
[% INCLUDE 'datatables.inc' %] |
289 |
[% INCLUDE 'datatables.inc' %] |
290 |
[% Asset.js("lib/jquery/plugins/jquery.dataTables.columnFilter.js") | $raw %] |
290 |
[% Asset.js("lib/jquery/plugins/jquery.dataTables.columnFilter.js") | $raw %] |
291 |
[% Asset.js("lib/hc-sticky/hc-sticky.js") | $raw %] |
291 |
[% Asset.js("lib/hc-sticky/hc-sticky.js") | $raw %] |
|
|
292 |
[% INCLUDE 'select2.inc' %] |
292 |
<script> |
293 |
<script> |
293 |
var authorised_values = [% authorised_values_json | $raw %]; |
294 |
var authorised_values = [% authorised_values_json | $raw %]; |
294 |
|
295 |
|
Lines 720-725
Link Here
|
720 |
checkbox.change(); |
721 |
checkbox.change(); |
721 |
} |
722 |
} |
722 |
}); |
723 |
}); |
|
|
724 |
|
725 |
// Apply select2 to all select fields having a "multiple" attribute |
726 |
let selectFields = document.querySelectorAll('select[multiple]'); |
727 |
selectFields.forEach((selectField) => { |
728 |
selectField.style.minWidth = '320px'; |
729 |
$(selectField).select2(); |
730 |
}); |
723 |
}); |
731 |
}); |
724 |
</script> |
732 |
</script> |
725 |
[% END %] |
733 |
[% END %] |
726 |
- |
|
|