2 [% INCLUDE 'doc-head-open.inc' %]<title>Koha › Labels</title>
3 [% INCLUDE 'doc-head-close.inc' %]
6 <body id="labels_search" class="tools labels">
7 <div class="main container-fluid">
11 to add to Batch [% batch_id | html %]
15 <form name="f" method="post" action="/cgi-bin/koha/labels/label-item-search.pl">
16 <input type="hidden" name="op" value="do_search" />
17 <input type="hidden" name="batch_id" value="[% batch_id | html %]" />
18 <input type="hidden" name="type" value="[% type | html %]" />
20 <fieldset class="rows">
22 <select name="idx" > <!-- FIXME: script does keyword search regardless -->
24 [% IF idx == 'kw' %]<option value="kw" selected="selected">Keyword</option>
25 [% ELSE %]<option value="kw">Keyword</option>[% END %]
27 [% IF idx == 'au' %]<option value="au" selected="selected">Author</option>
28 [% ELSE %]<option value="au">Author</option>[% END %]
30 [% IF idx == 'yr' %]<option value="yr" selected="selected">Publication date</option>
31 [% ELSE %]<option value="yr">Publication date</option>[% END %]
33 [% IF idx == 'sn' %]<option value="sn" selected="selected">Standard number</option>
34 [% ELSE %]<option value="sn">Standard number</option>[% END %]
36 [% IF idx == 'nb' %]<option value="nb" selected="selected">ISBN</option>
37 [% ELSE %]<option value="nb">ISBN</option>[% END %]
39 [% IF idx == 'ns' %]<option value="ns" selected="selected">ISSN</option>
40 [% ELSE %]<option value="ns">ISSN</option>[% END %]
42 [% IF idx == 'lcn,phr' %]<option value="lcn,phr" selected="selected">Call number</option>
43 [% ELSE %]<option value="lcn,phr">Call number</option>[% END %]
45 [% IF idx == 'su' %]<option value="su" selected="selected">Subject</option>
46 [% ELSE %]<option value="su">Subject</option>[% END %]
49 <option value="ti" selected="selected">Title</option>
51 <option value="ti">Title</option>[% END %]
53 [% IF idx == 'ti,phr' %]<option value="ti,phr" selected="selected">Title phrase</option>
54 [% ELSE %]<option value="ti,phr">Title phrase</option>[% END %]
56 [% IF idx == 'se' %]<option value="se" selected="selected">Series title</option>
57 [% ELSE %]<option value="se">Series title</option>[% END %]
59 [% IF idx == 'bc' or not idx %]<option value="bc" selected="selected">Barcode</option>
60 [% ELSE %]<option value="bc">Barcode</option>[% END %]
62 [% IF idx == 'acqdate' %]<option value="acqdate" selected="selected">Acquisition date</option>
63 [% ELSE %]<option value="acqdate">Acquisition date</option>[% END %]
66 <input type="text" size="30" id="ccl_textbox" name="ccl_textbox" class="focus" title="Enter search terms" value=""/>
72 [% IF ( sort_by_loop ) %]
73 <fieldset><legend>Sort by: </legend>
74 <p><select id="sort_by" name="sort_by">
75 <option value="">Field-weighted, relevance ranked</option>
76 [% FOREACH sort_by_loo IN sort_by_loop %]
78 [% IF ( sort_by_loo.selected ) %]<option value="[% sort_by_loo.value | html %]" selected="selected">[% sort_by_loo.label | html %]</option>[% ELSE %]<option value="[% sort_by_loo.value | html %]">[% sort_by_loo.label | html %]</option>[% END %]
88 <fieldset class="rows">
91 <label for="from">Added on or after date: </label>
92 <input type="text" size="10" id="from" name="datefrom" class="datepickerfrom" value="" />
93 <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
96 <label for="to">Added on or before date: </label>
97 <input type="text" size="10" id="to" name="dateto" class="datepickerto" value="" />
98 <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
102 <fieldset class="action"><input type="submit" value="Search" class="submit" /> <a class="cancel close" href="#">Cancel</a></fieldset>
106 [% MACRO jsinclude BLOCK %]
107 [% INCLUDE 'calendar.inc' %]
109 [% INCLUDE 'intranet-bottom.inc' popup_window=1 %]