Owen Leonard
248544e292
This patch updates search header includes so that the tabs use WRAPPER to build markup. To test, apply the patch rebuild the staff interface CSS. Test at least one page which uses each updated search include. Search header tabs should look correct and work correctly. - Acquisitions - Suggestions - Administration - Budgets and funds - Cities - Currencies - Desks - Patron categories - System preferences - Z39.50 - Advanced search - Authorities - Bibliographic detail page - Cataloging home page - Check in - Check out - Acquisitions -> Vendor -> Contracts - ERM - Staff interface home page - Serials - Tool -> Notices Signed-off-by: Martin AUBEUT <martin.aubeut@gmail.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
199 lines
9.6 KiB
HTML
199 lines
9.6 KiB
HTML
[% USE raw %]
|
|
[% PROCESS 'html_helpers.inc' %]
|
|
<!-- authorities-search.inc -->
|
|
|
|
[% BLOCK orderby %]
|
|
<div>
|
|
<label class="control-label">
|
|
Order by
|
|
|
|
<select name="orderby" class="form-control">
|
|
[% IF ( orderby == 'HeadingAsc' ) %]
|
|
<option value="HeadingAsc" selected="selected">Heading A-Z</option>
|
|
[% ELSE %]
|
|
<option value="HeadingAsc">Heading A-Z</option>
|
|
[% END %]
|
|
[% IF ( orderby == 'HeadingDsc' ) %]
|
|
<option value="HeadingDsc" selected="selected">Heading Z-A</option>
|
|
[% ELSE %]
|
|
<option value="HeadingDsc">Heading Z-A</option>
|
|
[% END %]
|
|
[% IF ( orderby == '' && op ) %]
|
|
<option value="" selected="selected">None</option>
|
|
[% ELSE %]
|
|
<option value="">None</option>
|
|
[% END %]
|
|
</select>
|
|
</label>
|
|
</div>
|
|
[% END %]
|
|
|
|
[% BLOCK operator %]
|
|
<div>
|
|
<label class="control-label">
|
|
Operator
|
|
|
|
<select name="operator" class="form-control">
|
|
[% IF ( operator == 'contains' ) %]
|
|
<option value="contains" selected="selected">contains</option>
|
|
[% ELSE %]
|
|
<option value="contains">contains</option>
|
|
[% END %]
|
|
[% IF ( operator == 'start' ) %]
|
|
<option value="start" selected="selected">starts with</option>
|
|
[% ELSE %]
|
|
<option value="start">starts with</option>
|
|
[% END %]
|
|
[% IF ( operator == 'exact' ) %]
|
|
<option value="exact" selected="selected">is exactly</option>
|
|
[% ELSE %]
|
|
<option value="exact">is exactly</option>
|
|
[% END %]
|
|
</select>
|
|
</label>
|
|
</div>
|
|
[% END %]
|
|
|
|
[% BLOCK authtype %]
|
|
<div>
|
|
<label>
|
|
Authority type
|
|
<select name="authtypecode" class="form-control">
|
|
[% IF (marcflavour == 'UNIMARC' ) %]<option value="">All authority types</option>[% END %]
|
|
[% FOREACH authority_type IN authority_types %]
|
|
[% IF authority_type.authtypecode == authtypecode %]
|
|
<option value="[% authority_type.authtypecode | html %]" selected="selected">[% authority_type.authtypetext | html %]</option>
|
|
[% ELSE %]
|
|
<option value="[% authority_type.authtypecode | html %]">[% authority_type.authtypetext | html %]</option>
|
|
[% END %]
|
|
[% END %]
|
|
</select>
|
|
</label>
|
|
</div>
|
|
[% END %]
|
|
|
|
[% WRAPPER tabs id="header_search" %]
|
|
[% WRAPPER tab_panels %]
|
|
[% WRAPPER tab_panel tabname="mainmain_heading" bt_active= 1 %]
|
|
<form action="/cgi-bin/koha/authorities/authorities-home.pl" method="get">
|
|
<input type="hidden" name="op" value="do_search" />
|
|
<input type="hidden" name="type" value="intranet" />
|
|
<input type="hidden" name="marclist" value="mainmainentry" />
|
|
<input type="hidden" name="and_or" value="and" />
|
|
<input type="hidden" name="excluding" value="" />
|
|
|
|
<div class="form-title">
|
|
<label class="control-label" for="value_mainentry"><span class="control-text">Search main heading</span> <i class="fa fa-fw fa-main-heading-a" aria-hidden="true"></i></label>
|
|
</div>
|
|
|
|
<div class="form-content">
|
|
<input id="value_mainentry" class="form-control head-searchbox" type="text" name="value" value="[% value | html %]" placeholder="Search main heading ($a only)" />
|
|
<button type="button" class="form-extra-content-toggle" title="More options"><i class="form-extra-content-icon fa-solid fa-sliders" aria-hidden="true"></i></button>
|
|
</div>
|
|
|
|
<button type="submit" aria-label="Search"><i class="fa fa-arrow-right"></i></button>
|
|
|
|
<div class="form-extra-content">
|
|
[% INCLUDE authtype %]
|
|
[% INCLUDE operator %]
|
|
[% INCLUDE orderby %]
|
|
</div>
|
|
</form>
|
|
[% END # /tab_panel %]
|
|
|
|
[% WRAPPER tab_panel tabname="main_heading" %]
|
|
<form action="/cgi-bin/koha/authorities/authorities-home.pl" method="get">
|
|
<input type="hidden" name="marclist" value="mainentry" />
|
|
<input type="hidden" name="and_or" value="and" />
|
|
<input type="hidden" name="excluding" value="" />
|
|
<input type="hidden" name="op" value="do_search" />
|
|
<input type="hidden" name="type" value="intranet" />
|
|
|
|
<div class="form-title">
|
|
<label class="control-label" for="value_mainheading"><span class="control-text">Search main heading</span> <i class="fa fa-fw fa-header" aria-hidden="true"></i></label>
|
|
</div>
|
|
|
|
<div class="form-content">
|
|
<input id="value_mainheading" class="form-control head-searchbox" type="text" name="value" value="[% value | html %]" placeholder="Search main heading" />
|
|
<button type="button" class="form-extra-content-toggle" title="More options"><i class="form-extra-content-icon fa-solid fa-sliders" aria-hidden="true"></i></button>
|
|
</div>
|
|
|
|
<button type="submit" aria-label="Search"><i class="fa fa-arrow-right"></i></button>
|
|
|
|
<div class="form-extra-content">
|
|
[% INCLUDE authtype %]
|
|
[% INCLUDE operator %]
|
|
[% INCLUDE orderby %]
|
|
</div>
|
|
</form>
|
|
[% END # /tab_panel %]
|
|
|
|
[% WRAPPER tab_panel tabname="matchheading_search" %]
|
|
<form action="/cgi-bin/koha/authorities/authorities-home.pl" method="get">
|
|
<input type="hidden" name="op" value="do_search" />
|
|
<input type="hidden" name="type" value="intranet" />
|
|
<input type="hidden" name="marclist" value="match" />
|
|
|
|
<div class="form-title">
|
|
<label class="control-label" for="value_matchheading"><span class="control-text">Search all headings</span> <i class="fa fa-fw fa-align-center" aria-hidden="true"></i></label>
|
|
</div>
|
|
|
|
<div class="form-content">
|
|
<input id="value_matchheading" class="form-control head-searchbox" type="text" name="value" value="[% value | html %]" placeholder="Search any heading" />
|
|
<button type="button" class="form-extra-content-toggle" title="More options"><i class="form-extra-content-icon fa-solid fa-sliders" aria-hidden="true"></i></button>
|
|
</div>
|
|
|
|
<button type="submit" aria-label="Search"><i class="fa fa-arrow-right"></i></button>
|
|
|
|
<div class="form-extra-content">
|
|
[% INCLUDE authtype %]
|
|
[% INCLUDE operator %]
|
|
[% INCLUDE orderby %]
|
|
</div>
|
|
</form>
|
|
[% END # /tab_panel %]
|
|
|
|
[% WRAPPER tab_panel tabname="entire_record" %]
|
|
<form action="/cgi-bin/koha/authorities/authorities-home.pl" method="get">
|
|
<input type="hidden" name="op" value="do_search" />
|
|
<input type="hidden" name="type" value="intranet" />
|
|
<input type="hidden" name="marclist" value="all" />
|
|
<input type="hidden" name="and_or" value="and" />
|
|
<input type="hidden" name="excluding" value="" />
|
|
|
|
<div class="form-title">
|
|
<label class="control-label" for="value_anywhere"><span class="control-text">Search entire record</span> <i class="fa-solid fa-fw fa-folder-open" aria-hidden="true"></i></label>
|
|
</div>
|
|
|
|
<div class="form-content">
|
|
<input id="value_anywhere" class="form-control head-searchbox" type="text" name="value" value="[% value | html %]" placeholder="Search any authority field" />
|
|
<button type="button" class="form-extra-content-toggle" title="More options"><i class="form-extra-content-icon fa-solid fa-sliders" aria-hidden="true"></i></button>
|
|
</div>
|
|
|
|
<button type="submit" aria-label="Search"><i class="fa fa-arrow-right"></i></button>
|
|
|
|
<div class="form-extra-content">
|
|
[% INCLUDE authtype %]
|
|
[% INCLUDE operator %]
|
|
[% INCLUDE orderby %]
|
|
</div>
|
|
</form>
|
|
[% END # /tab_panel %]
|
|
|
|
[% END # /tab_panels %]
|
|
[% WRAPPER tabs_nav %]
|
|
[% WRAPPER tab_item tabname= "mainmain_heading" bt_active= 1 %]
|
|
<i class="fa fa-fw fa-main-heading-a" aria-hidden="true"></i> <span class="tab-title">Main heading ($a only)</span>
|
|
[% END %]
|
|
[% WRAPPER tab_item tabname= "main_heading" %]
|
|
<i class="fa fa-fw fa-header" aria-hidden="true"></i> <span class="tab-title">Main heading</span>
|
|
[% END %]
|
|
[% WRAPPER tab_item tabname= "matchheading_search" %]
|
|
<i class="fa fa-fw fa-align-center" aria-hidden="true"></i> <span class="tab-title">All headings</span>
|
|
[% END %]
|
|
[% WRAPPER tab_item tabname= "entire_record" %]
|
|
<i class="fa-solid fa-fw fa-folder-open" aria-hidden="true"></i> <span class="tab-title">Entire record</span>
|
|
[% END %]
|
|
[% END # /tabs_nav %]
|
|
[% END # /WRAPPER tabs %]
|
|
<!-- /authorities-search.inc -->
|