Koha/koha-tmpl/intranet-tmpl/prog/en/includes/prefs-admin-search.inc
Nick Clemens 492481d14e Bug 28356: Consolidate catalogue search box code
To test:
1 - Apply patch
2 - Confirm searchign the catalog works from:
    Administration->Budgets
    Cataloging
    Circulation->Check in
    Administration->Cities and towns
    Acquisitions->{Vendor}->Contracts
    Administration->Currencies
    Administration->Circulation desks (requires  UseCirculationDesks preference)
    Home
    Tools->Notices and slips
    Patrons
    Adminstration
    Serials
    Acquisitions->Suggestions
    Administration->Z39.50/SRU servers

Signed-off-by: hakam <hakam@inlibro.com>

Signed-off-by: Joonas Kylmälä <joonas.kylmala@iki.fi>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
2021-09-21 20:22:57 +02:00

22 lines
1.1 KiB
HTML

[% USE Koha %]
<div class="gradient">
<h1 id="logo"><a href="/cgi-bin/koha/mainpage.pl">[% LibraryName | html %]</a></h1>
<div id="header_search">
<div id="syspref_search" class="residentsearch">
<form action="/cgi-bin/koha/admin/preferences.pl">
<label class="tip" for="searchfield">System preference search:</label>
<input type="hidden" name="tab" value="[% last_tab | html %]" />
<input type="hidden" name="op" value="search" />
<input class="head-searchbox" type="text" size="40" name="searchfield" id="searchfield" value="">
<input type="submit" class="submit" value="Search" />
</form>
</div>
[% INCLUDE 'patron-search-box.inc' %]
[% INCLUDE 'catalogue-search-box.inc' %]
<ul>
<li><a class="keep_text" href="#syspref_search">Search system preferences</a></li>
[% IF ( CAN_user_circulate_circulate_remaining_permissions ) %]<li><a class="keep_text" href="#circ_search">Check out</a></li>[% END %]
[% IF ( CAN_user_catalogue ) %]<li><a class="keep_text" href="#catalog_search">Search the catalog</a></li>[% END %]
</ul>
</div>
</div>