Lines 13-20
Link Here
|
13 |
> |
13 |
> |
14 |
[% INCLUDE 'doc-head-close.inc' %] |
14 |
[% INCLUDE 'doc-head-close.inc' %] |
15 |
<style> |
15 |
<style> |
16 |
fieldset.rows fieldset.rows { |
16 |
fieldset.rows li { |
17 |
width: 90%; |
17 |
display: flex; |
18 |
} |
18 |
} |
19 |
</style> |
19 |
</style> |
20 |
</head> |
20 |
</head> |
Lines 84-90
Link Here
|
84 |
<li> |
84 |
<li> |
85 |
<label for="itemtype">Item type: </label> |
85 |
<label for="itemtype">Item type: </label> |
86 |
<select name="itemtype" id="itemtype" multiple> |
86 |
<select name="itemtype" id="itemtype" multiple> |
87 |
<option value="">-- All --</option> |
|
|
88 |
[% FOREACH itemtype IN itemtypes %] |
87 |
[% FOREACH itemtype IN itemtypes %] |
89 |
<option value="[% itemtype.itemtype | html %]">[% itemtype.translated_description | html %]</option> |
88 |
<option value="[% itemtype.itemtype | html %]">[% itemtype.translated_description | html %]</option> |
90 |
[% END %] |
89 |
[% END %] |
Lines 92-129
Link Here
|
92 |
</li> |
91 |
</li> |
93 |
|
92 |
|
94 |
<li> |
93 |
<li> |
95 |
<label>With items owned by the following libraries: </label> |
94 |
<label for="select_library">Home library: </label> |
96 |
[% INCLUDE 'branch-selector.inc' branches = libraries %] |
95 |
<select id="select_library" name="branch" multiple> |
|
|
96 |
[% PROCESS options_for_libraries libraries => Branches.all( selected => branch_limit, unfiltered => 1, do_not_select_my_library => 1 ) %] |
97 |
</select> |
97 |
</li> |
98 |
</li> |
98 |
</ol> |
99 |
</ol> |
|
|
100 |
</fieldset> |
99 |
|
101 |
|
100 |
<fieldset class="rows"> |
102 |
<fieldset class="rows"> |
101 |
<legend>Call number range</legend> |
103 |
<legend>Call number range</legend> |
102 |
<ol> |
104 |
<ol> |
103 |
<li> |
105 |
<li> |
104 |
<label for="startcn">From item call number: </label> |
106 |
<label for="startcn">From item call number: </label> |
105 |
<input id="startcn" type="text" name="start_callnumber" size="15" /> |
107 |
<input id="startcn" type="text" name="start_callnumber" size="15" /> |
106 |
</li> |
108 |
</li> |
107 |
<li> |
109 |
<li> |
108 |
<label for="endcn">To item call number: </label> |
110 |
<label for="endcn">To item call number: </label> |
109 |
<input id="endcn" type="text" name="end_callnumber" size="15" /> |
111 |
<input id="endcn" type="text" name="end_callnumber" size="15" /> |
110 |
</li> |
112 |
</li> |
111 |
</ol> |
113 |
</ol> |
112 |
</fieldset> |
114 |
</fieldset> |
113 |
|
115 |
|
114 |
<fieldset class="rows"> |
116 |
<fieldset class="rows"> |
115 |
<legend>Accession date (inclusive)</legend> |
117 |
<legend>Accession date (inclusive)</legend> |
116 |
<ol> |
118 |
<ol> |
117 |
<li> |
119 |
<li> |
118 |
<label for="from">Start date:</label> |
120 |
<label for="from">Start date:</label> |
119 |
<input type="text" size="10" id="from" name="start_accession" value="[% from | html %]" class="flatpickr" data-date_to="to" /> |
121 |
<input type="text" size="10" id="from" name="start_accession" value="[% from | html %]" class="flatpickr" data-date_to="to" /> |
120 |
</li> |
122 |
</li> |
121 |
<li> |
123 |
<li> |
122 |
<label for="to">End date:</label> |
124 |
<label for="to">End date:</label> |
123 |
<input size="10" id="to" name="end_accession" value="[% end_accession | html %]" type="text" class="flatpickr" /> |
125 |
<input size="10" id="to" name="end_accession" value="[% end_accession | html %]" type="text" class="flatpickr" /> |
124 |
</li> |
126 |
</li> |
125 |
</ol> |
127 |
</ol> |
126 |
</fieldset> |
|
|
127 |
</fieldset> |
128 |
</fieldset> |
128 |
|
129 |
|
129 |
<fieldset class="rows"> |
130 |
<fieldset class="rows"> |
Lines 327-342
Link Here
|
327 |
|
328 |
|
328 |
[% MACRO jsinclude BLOCK %] |
329 |
[% MACRO jsinclude BLOCK %] |
329 |
[% INCLUDE 'calendar.inc' %] |
330 |
[% INCLUDE 'calendar.inc' %] |
|
|
331 |
[% INCLUDE 'select2.inc' %] |
330 |
<script> |
332 |
<script> |
331 |
$(document).ready(function () { |
333 |
$(document).ready(function () { |
332 |
$("li.csv_profiles").hide(); |
334 |
const output_format = $("#output_format"); |
|
|
335 |
const csv_profiles = $("li.csv_profiles"); |
336 |
if (output_format.val() == "csv") { |
337 |
csv_profiles.show(); |
338 |
} else { |
339 |
csv_profiles.hide(); |
340 |
} |
333 |
|
341 |
|
334 |
$("#bibs_panel select[name='output_format']").on("change", function () { |
342 |
output_format.on("change", function () { |
335 |
var format = $(this).val(); |
343 |
var format = $(this).val(); |
336 |
if (format == "csv") { |
344 |
if (format == "csv") { |
337 |
$("#bibs_panel li.csv_profiles").show(); |
345 |
csv_profiles.show(); |
338 |
} else { |
346 |
} else { |
339 |
$("#bibs_panel li.csv_profiles").hide(); |
347 |
csv_profiles.hide(); |
340 |
} |
348 |
} |
341 |
}); |
349 |
}); |
342 |
$("#checkall").on("click", function (e) { |
350 |
$("#checkall").on("click", function (e) { |
Lines 366-371
Link Here
|
366 |
} |
374 |
} |
367 |
$("#filename_auth").val(file_name_auth[0] + "." + extension); |
375 |
$("#filename_auth").val(file_name_auth[0] + "." + extension); |
368 |
}); |
376 |
}); |
|
|
377 |
|
378 |
// Apply select2 to all select fields having a "multiple" attribute |
379 |
let selectFields = document.querySelectorAll("select[multiple]"); |
380 |
selectFields.forEach(selectField => { |
381 |
selectField.style.minWidth = "320px"; |
382 |
$(selectField).select2(); |
383 |
}); |
369 |
}); |
384 |
}); |
370 |
</script> |
385 |
</script> |
371 |
[% END %] |
386 |
[% END %] |
372 |
- |
|
|