Bug 32771: Standardize structure around action fieldsets in serials
[srvgit] / koha-tmpl / intranet-tmpl / prog / en / includes / serials-advsearch.inc
1 [% PROCESS 'html_helpers.inc' %]
2 <div id="advsearch" style="padding-bottom:3em;">
3     <form action="/cgi-bin/koha/serials/serials-search.pl" method="get">
4         [% IF brief %]
5             <fieldset class="brief">
6         [% ELSE %]
7             <fieldset class="rows">
8         [% END%]
9             <legend>Search subscriptions</legend>
10             <ol>
11                 <li>
12                     <label for="issn">ISSN:</label>
13                     <input type="text" id="issn" name="ISSN_filter" value="[% ISSN_filter | html %]" />
14                 </li>
15                 <li>
16                     <label for="title">Title:</label>
17                     <input type="text" id="title" name="title_filter" value="[% title_filter | html %]" />
18                 </li>
19                 [% IF ( marcflavour == "UNIMARC" ) %]
20                     <li>
21                         <label for="ean">EAN:</label>
22                         <input type="text" id="ean" name="EAN_filter" value="[% EAN_filter | html %]" />
23                     </li>
24                 [% END %]
25                 <li class="local">
26                     <label for="callnumber">Call number:</label>
27                     <input type="text" id="callnumber" name="callnumber_filter" value="[% callnumber_filter | html %]" />
28                 </li>
29                 <li>
30                     <label for="publisher">Publisher:</label>
31                     <input type="text" id="publisher" name="publisher_filter" value="[% publisher_filter | html %]" />
32                 </li>
33                 <li class="local">
34                     <label for="bookseller">Vendor:</label>
35                     <input type="text" id="bookseller" name="bookseller_filter" value="[% bookseller_filter | html %]" />
36                 </li>
37                 <li class="local">
38                     <label for="branch">Library:</label>
39                     <select id="branch" name="branch_filter">
40                         <option value="">All</option>
41                         [%# FIXME Should not we filter the libraries? %]
42                         [% PROCESS options_for_libraries libraries => Branches.all( selected => branch_filter, unfiltered => 1 ) %]
43                     </select>
44                 </li>
45                 <li class="local">
46                     <label for="location">Location:</label>
47                     [% PROCESS 'av-build-dropbox.inc' name="location_filter", category="LOC", default=location_filter, all=1 %]
48                 </li>
49                 <li class="local">
50                     <label for="to">Expires before:</label>
51                     <input type="text" id="to" name="expiration_date_filter" value="[% expiration_date_filter | html %]" size="10" maxlength="10" class="flatpickr" />
52                 </li>
53                 [% INCLUDE 'additional-fields-entry.inc' available=additional_fields_for_subscription values=additional_field_filters wrap_fieldset=0 %]
54             </ol>
55             <input type="hidden" name="searched" value="1" />
56             [% IF ( mana ) %]
57                 <input type="hidden" name="mana" value="1" />
58             [% END %]
59         </fieldset> <!-- /.rows -->
60         <fieldset class="action">
61             <input type="submit" class="btn btn-primary" value="Search" />
62         </fieldset>
63     </form>
64 </div> <!-- /#advsearch -->