This patch updates all search header include files so that they have Bootstrap tab markup instead of jQueryUI. jQueryUI-related JavaScript is updated to work with Bootstrap. To test, apply the patch and rebuild the staff interface CSS. Clear your browser cache if necessary. Test that keyboard shortcuts work correctly: Alt-U for circulation, Alt-R for returns, Alt-W for renewals, and Alt-Q for search. Each shortcut should either activate the correct search tab (if present on the page) or redirect you to that page. Cursor focus should be automatically placed in expanded header search form, whether it be on page load or when switching tabs. Test search header forms with additional search options work correctly: Clicking the "settings" icon should expand the panel with additional fields. Test at least one page which uses each include file: - acquisitions-search.inc - Acquisitions and related pages - adv-search.inc - Advanced catalog search - authorities-search.inc - Authorities and related pages - Check that the right tab is preselected after each kind of search, e.g. a search by "Main heading" should return a search results page where the "Main heading" tab is preselected. - budgets-admin-search.inc - Administration -> Budgets - cat-search.inc - Catalog search results, bibliographic details, etc. - cataloging-search.inc - Cataloging home page and cataloging search results - checkin-search.inc - Circulation -> Check in - circ-search.inc - Circulation -> Check out - cities-admin-search.inc - Administration -> Cities and towns - contracts-admin-search.inc - Acquisitions -> Vendor -> Contracts - currencies-admin-search.inc - Administration -> Currencies - desks-admin-search.inc - Administration -> Desks (must have UseCirculationDesks enabled) - erm-search.inc - ERM (must have ERMModule enabled) - home-search.inc - Staff interface home page - letters-search.inc - Tools -> Notices - patron-search-header.inc - Patron details, patron accounting, etc. - patrons-admin-search.inc - Administratoin -> Patron categories - prefs-admin-search.inc - Administration home page and system preferences - serials-search.inc - Serials and related pages - suggestions-add-search.inc - Not used - z3950-admin-search.inc - Administration -> Z39.50 servers Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
198 lines
9.1 KiB
HTML
198 lines
9.1 KiB
HTML
<!-- 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 %]
|
|
|
|
<div id="header_search" role="tablist">
|
|
<div class="tab-content">
|
|
<div id="mainmain_heading" role="tabpanel" class="tab-pane active">
|
|
<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">Search main heading ($a only)</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"><i class="fa fa-sliders"></i></button>
|
|
</div>
|
|
|
|
<button type="submit"><i class="fa fa-arrow-right"></i></button>
|
|
|
|
<span class="form-extra-content">
|
|
[% INCLUDE authtype %]
|
|
[% INCLUDE operator %]
|
|
[% INCLUDE orderby %]
|
|
</span>
|
|
</form>
|
|
</div>
|
|
|
|
<div id="main_heading" role="tabpanel" class="tab-pane">
|
|
<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">Search main heading</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"><i class="fa fa-sliders"></i></button>
|
|
</div>
|
|
|
|
<button type="submit"><i class="fa fa-arrow-right"></i></button>
|
|
|
|
<span class="form-extra-content">
|
|
[% INCLUDE authtype %]
|
|
[% INCLUDE operator %]
|
|
[% INCLUDE orderby %]
|
|
</span>
|
|
</form>
|
|
</div>
|
|
|
|
<div id="matchheading_search" role="tabpanel" class="tab-pane">
|
|
<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">Search all headings</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"><i class="fa fa-sliders"></i></button>
|
|
</div>
|
|
|
|
<button type="submit"><i class="fa fa-arrow-right"></i></button>
|
|
|
|
<span class="form-extra-content">
|
|
[% INCLUDE authtype %]
|
|
[% INCLUDE operator %]
|
|
[% INCLUDE orderby %]
|
|
</span>
|
|
</form>
|
|
</div>
|
|
|
|
<div id="entire_record" role="tabpanel" class="tab-pane">
|
|
<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">Search entire record</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"><i class="fa fa-sliders"></i></button>
|
|
</div>
|
|
|
|
<button type="submit"><i class="fa fa-arrow-right"></i></button>
|
|
|
|
<span class="form-extra-content">
|
|
[% INCLUDE authtype %]
|
|
[% INCLUDE operator %]
|
|
[% INCLUDE orderby %]
|
|
</span>
|
|
</form>
|
|
</div>
|
|
|
|
</div><!-- /.tab-content -->
|
|
<ul class="nav nav-tabs" role="tablist">
|
|
<li role="presentation" class="active">
|
|
<a title="Search main heading ($a only)" href="#mainmain_heading" aria-controls="mainmain_heading" role="tab" aria-expanded="true" data-toggle="tab" class="keep_text"><i style="font-weight:bold">$a</i> <span class="tab-title">Main heading ($a only)</span></a>
|
|
</li>
|
|
<li role="presentation">
|
|
<a title="Search main heading" href="#main_heading" aria-controls="main_heading" role="tab" data-toggle="tab" class="keep_text"><i class="fa fa-header"></i> <span class="tab-title">Main heading</span></a>
|
|
</li>
|
|
<li role="presentation">
|
|
<a title="Search all headings" href="#matchheading_search" aria-controls="matchheading_search" role="tab" data-toggle="tab" class="keep_text"><i class="fa fa-align-center"></i> <span class="tab-title">All headings</span></a>
|
|
</li>
|
|
<li role="presentation">
|
|
<a title="Search entire record" href="#entire_record" aria-controls="entire_record" role="tab" data-toggle="tab" class="keep_text"><i class="fa fa-folder-open-o"></i> <span class="tab-title">Entire record</span></a>
|
|
</li>
|
|
<li role="presentation">
|
|
</ul>
|
|
</div><!-- /#header_search -->
|
|
<!-- /authorities-search.inc -->
|