Lines 1-9
Link Here
|
1 |
[% USE CGI %] |
1 |
[% USE CGI %] |
2 |
[% USE JSON.Escape %] |
2 |
[% USE JSON.Escape %] |
3 |
|
3 |
|
|
|
4 |
[% BLOCK form_label %] |
5 |
[% SWITCH label %] |
6 |
[% CASE 'barcode' %]<span>Barcode</span> |
7 |
[% CASE 'itemcallnumber' %]<span>Call number</span> |
8 |
[% CASE 'stocknumber' %]<span>Stock number</span> |
9 |
[% CASE 'title' %]<span>Title</span> |
10 |
[% CASE 'author' %]<span>Author</span> |
11 |
[% CASE 'publishercode' %]<span>Publisher</span> |
12 |
[% CASE 'publicationdate' %]<span>Publication date</span> |
13 |
[% CASE 'collectiontitle' %]<span>Collection</span> |
14 |
[% CASE 'isbn' %]<span>ISBN</span> |
15 |
[% CASE 'issn' %]<span>ISSN</span> |
16 |
[% CASE 'homebranch' %]<span>Home library</span> |
17 |
[% CASE 'All libraries' %]<span>All libraries</span> |
18 |
[% CASE 'location' %]<span>Shelving location</span> |
19 |
[% CASE 'All locations' %]<span>All locations</span> |
20 |
[% CASE 'itype' %]<span>Item type</span> |
21 |
[% CASE 'All item types' %]<span>All item types</span> |
22 |
[% CASE 'ccode' %]<span>Collection code</span> |
23 |
[% CASE 'All collection codes' %]<span>All collection codes</span> |
24 |
[% CASE 'notforloan' %]<span>Status</span> |
25 |
[% CASE 'All statuses' %]<span>All statuses</span> |
26 |
[% CASE 'damaged' %]<span>Damaged</span> |
27 |
[% CASE 'itemlost' %]<span>Lost</span> |
28 |
[% END %] |
29 |
[% END %] |
30 |
|
4 |
[% BLOCK form_field_select %] |
31 |
[% BLOCK form_field_select %] |
5 |
<div class="form-field form-field-select"> |
32 |
<div class="form-field form-field-select"> |
6 |
<label class="form-field-label" for="[% name %]">[% label %]</label> |
33 |
<label class="form-field-label" for="[% name %]">[% INCLUDE form_label label=name %]</label> |
7 |
<select id="[% name %]_op" name="[% name %]_op"> |
34 |
<select id="[% name %]_op" name="[% name %]_op"> |
8 |
<option value="=">is</option> |
35 |
<option value="=">is</option> |
9 |
[% IF CGI.param(name _ '_op') == '!=' %] |
36 |
[% IF CGI.param(name _ '_op') == '!=' %] |
Lines 19-25
Link Here
|
19 |
[% ELSE %] |
46 |
[% ELSE %] |
20 |
<option value=""> |
47 |
<option value=""> |
21 |
[% END %] |
48 |
[% END %] |
22 |
[% empty_option || "All" %] |
49 |
[% IF (empty_option) %][% INCLUDE form_label label=empty_option %][% ELSE %]<span>All</span>[% END %] |
23 |
</option> |
50 |
</option> |
24 |
[% FOREACH option IN options %] |
51 |
[% FOREACH option IN options %] |
25 |
[% IF values != '' && values.grep(option.value).size %] |
52 |
[% IF values != '' && values.grep(option.value).size %] |
Lines 34-42
Link Here
|
34 |
|
61 |
|
35 |
[% BLOCK form_field_select_option %] |
62 |
[% BLOCK form_field_select_option %] |
36 |
[% IF params.f == value %] |
63 |
[% IF params.f == value %] |
37 |
<option value="[% value %]" selected="selected">[% label %]</option> |
64 |
<option value="[% value %]" selected="selected">[% INCLUDE form_label label=value %]</option> |
38 |
[% ELSE %] |
65 |
[% ELSE %] |
39 |
<option value="[% value %]">[% label %]</option> |
66 |
<option value="[% value %]">[% INCLUDE form_label label=value %]</option> |
40 |
[% END %] |
67 |
[% END %] |
41 |
[% END %] |
68 |
[% END %] |
42 |
|
69 |
|
Lines 58-73
Link Here
|
58 |
</select> |
85 |
</select> |
59 |
[% END %] |
86 |
[% END %] |
60 |
<select name="f" class="form-field-column"> |
87 |
<select name="f" class="form-field-column"> |
61 |
[% INCLUDE form_field_select_option value='barcode' label='Barcode' %] |
88 |
[% INCLUDE form_field_select_option value='barcode' %] |
62 |
[% INCLUDE form_field_select_option value='itemcallnumber' label='Call number' %] |
89 |
[% INCLUDE form_field_select_option value='itemcallnumber' %] |
63 |
[% INCLUDE form_field_select_option value='stocknumber' label='Stock number' %] |
90 |
[% INCLUDE form_field_select_option value='stocknumber' %] |
64 |
[% INCLUDE form_field_select_option value='title' label='Title' %] |
91 |
[% INCLUDE form_field_select_option value='title' %] |
65 |
[% INCLUDE form_field_select_option value='author' label='Author' %] |
92 |
[% INCLUDE form_field_select_option value='author' %] |
66 |
[% INCLUDE form_field_select_option value='publishercode' label='Publisher' %] |
93 |
[% INCLUDE form_field_select_option value='publishercode' %] |
67 |
[% INCLUDE form_field_select_option value='publicationdate' label='Publication date' %] |
94 |
[% INCLUDE form_field_select_option value='publicationdate' %] |
68 |
[% INCLUDE form_field_select_option value='collectiontitle' label='Collection' %] |
95 |
[% INCLUDE form_field_select_option value='collectiontitle' %] |
69 |
[% INCLUDE form_field_select_option value='isbn' label='ISBN' %] |
96 |
[% INCLUDE form_field_select_option value='isbn' %] |
70 |
[% INCLUDE form_field_select_option value='issn' label='ISSN' %] |
97 |
[% INCLUDE form_field_select_option value='issn' %] |
71 |
[% IF items_search_fields.size %] |
98 |
[% IF items_search_fields.size %] |
72 |
<optgroup label="Custom search fields"> |
99 |
<optgroup label="Custom search fields"> |
73 |
[% FOREACH field IN items_search_fields %] |
100 |
[% FOREACH field IN items_search_fields %] |
Lines 117-123
Link Here
|
117 |
|
144 |
|
118 |
[% BLOCK form_field_radio_yes_no %] |
145 |
[% BLOCK form_field_radio_yes_no %] |
119 |
<div class="form-field"> |
146 |
<div class="form-field"> |
120 |
<label class="form-field-label">[% label %]:</label> |
147 |
<label class="form-field-label">[% INCLUDE form_label label=name %]:</label> |
121 |
<input type="radio" name="[% name %]" id="[% name %]_indifferent" value="" checked="checked"/> |
148 |
<input type="radio" name="[% name %]" id="[% name %]_indifferent" value="" checked="checked"/> |
122 |
<label for="[% name %]_indifferent">Ignore</label> |
149 |
<label for="[% name %]_indifferent">Ignore</label> |
123 |
<input type="radio" name="[% name %]" id="[% name %]_yes" value="yes" /> |
150 |
<input type="radio" name="[% name %]" id="[% name %]_yes" value="yes" /> |
Lines 274-280
Link Here
|
274 |
$(document).ready(function () { |
301 |
$(document).ready(function () { |
275 |
// Add the "New field" link. |
302 |
// Add the "New field" link. |
276 |
var form_field = $('div.form-field-select-text').last() |
303 |
var form_field = $('div.form-field-select-text').last() |
277 |
var button_field_new = $('<a href="#" class="button-field-new" title="Add a new field">New field</a>'); |
304 |
var NEW_FIELD = _("New field"); |
|
|
305 |
var button_field_new = $('<a href="#" class="button-field-new" title="Add a new field">' + NEW_FIELD + '</a>'); |
278 |
button_field_new.click(function() { |
306 |
button_field_new.click(function() { |
279 |
addNewField(); |
307 |
addNewField(); |
280 |
return false; |
308 |
return false; |
Lines 334-346
Link Here
|
334 |
<fieldset> |
362 |
<fieldset> |
335 |
[% INCLUDE form_field_select |
363 |
[% INCLUDE form_field_select |
336 |
name="homebranch" |
364 |
name="homebranch" |
337 |
label="Home library" |
|
|
338 |
options = branches |
365 |
options = branches |
339 |
empty_option = "All libraries" |
366 |
empty_option = "All libraries" |
340 |
%] |
367 |
%] |
341 |
[% INCLUDE form_field_select |
368 |
[% INCLUDE form_field_select |
342 |
name="location" |
369 |
name="location" |
343 |
label="Shelving location" |
|
|
344 |
options = locations |
370 |
options = locations |
345 |
empty_option = "All locations" |
371 |
empty_option = "All locations" |
346 |
%] |
372 |
%] |
Lines 348-366
Link Here
|
348 |
<fieldset> |
374 |
<fieldset> |
349 |
[% INCLUDE form_field_select |
375 |
[% INCLUDE form_field_select |
350 |
name="itype" |
376 |
name="itype" |
351 |
label="Item type" |
|
|
352 |
options = itemtypes |
377 |
options = itemtypes |
353 |
empty_option = "All item types" |
378 |
empty_option = "All item types" |
354 |
%] |
379 |
%] |
355 |
[% INCLUDE form_field_select |
380 |
[% INCLUDE form_field_select |
356 |
name="ccode" |
381 |
name="ccode" |
357 |
label="Collection code" |
|
|
358 |
options = ccodes |
382 |
options = ccodes |
359 |
empty_option = "All collection codes" |
383 |
empty_option = "All collection codes" |
360 |
%] |
384 |
%] |
361 |
[% INCLUDE form_field_select |
385 |
[% INCLUDE form_field_select |
362 |
name="notforloan" |
386 |
name="notforloan" |
363 |
label="Status" |
|
|
364 |
options = notforloans |
387 |
options = notforloans |
365 |
empty_option = "All statuses" |
388 |
empty_option = "All statuses" |
366 |
%] |
389 |
%] |
Lines 384-391
Link Here
|
384 |
<input type="text" id="itemcallnumber_to" name="itemcallnumber_to" value="[% value %]" /> |
407 |
<input type="text" id="itemcallnumber_to" name="itemcallnumber_to" value="[% value %]" /> |
385 |
<span class="hint">(inclusive)</span> |
408 |
<span class="hint">(inclusive)</span> |
386 |
</div> |
409 |
</div> |
387 |
[% INCLUDE form_field_radio_yes_no name="damaged" label="Damaged" %] |
410 |
[% INCLUDE form_field_radio_yes_no name="damaged" %] |
388 |
[% INCLUDE form_field_radio_yes_no name="itemlost" label="Lost" %] |
411 |
[% INCLUDE form_field_radio_yes_no name="itemlost" %] |
389 |
<div class="form-field"> |
412 |
<div class="form-field"> |
390 |
<label class="form-field-label" for="issues_op">Checkout count:</label> |
413 |
<label class="form-field-label" for="issues_op">Checkout count:</label> |
391 |
<select id="issues_op" name="issues_op"> |
414 |
<select id="issues_op" name="issues_op"> |
392 |
- |
|
|