Koha/koha-tmpl/intranet-tmpl/prog/en/includes/subscriptions-search.inc
Owen Leonard ab76971ec4
Bug 32771: Standardize structure around action fieldsets in serials
This patch updates serials templates so that fieldsets with the
"action" class are placed outside the form's main fieldset.

To test, apply the patch and rebuild the staff interface CSS. Go to
serials and check the following pages to confirm that changes to
form structure look correct:

- Navigate directly to /cgi-bin/koha/serials/serials-search.pl
  - Check the form on this page.
  - Perform a subscription search. On the search results page, check
    the sidebar form.
- Click "Manage numbering patterns" in the left-hand sidebar menu.
  - Click "New numbering pattern" and check the forms on that page.

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
2023-03-31 12:30:37 +02:00

52 lines
2.3 KiB
HTML

[% PROCESS 'html_helpers.inc' %]
<div id="advsearch">
<form action="" method="get">
<fieldset class="brief">
<a href="#" class="toggle_element" data-element="#advsearch_form">Advanced search</a>
<div id="advsearch_form" style="display:none">
<ol>
<li>
<label for="issn">ISSN:</label>
<input type="text" id="issn" name="ISSN_filter" value="[% ISSN_filter | html %]" />
</li>
<li>
<label for="title">Title:</label>
<input type="text" id="title" name="title_filter" value="[% title_filter | html %]" />
</li>
[% IF Koha.Preference( 'marcflavour' ) == "UNIMARC" %]
<li>
<label for="ean">EAN:</label>
<input type="text" id="ean" name="EAN_filter" value="[% EAN_filter | html %]" />
</li>
[% END %]
<li>
<label for="publisher">Publisher:</label>
<input type="text" id="publisher" name="publisher_filter" value="[% publisher_filter | html %]" />
</li>
<li>
<label for="supplier">Vendor:</label>
<input type="text" id="supplier" name="supplier_filter" value="[% supplier_filter | html %]" />
</li>
<li>
<label for="branch">Library:</label>
<select id="branch" name="branch_filter">
<option value="">All</option>
[%# FIXME Should not we filter the libraries? %]
[% PROCESS options_for_libraries libraries => Branches.all( selected => branch_filter, unfiltered => 1 ) %]
</select>
</li>
</ol>
<input type="hidden" name="searched" value="1" />
[% IF (booksellerid) %]
<input type="hidden" name="booksellerid" value="[% booksellerid | html %]" />
[% END %]
[% IF (basketno) %]
<input type="hidden" name="basketno" value="[% basketno | html %]" />
[% END %]
</div>
</fieldset>
<fieldset class="action">
<input type="submit" class="btn btn-primary" value="Search" />
</fieldset>
</form>
</div>