Bug 14189: Made text persist when clicking the tabs under the searchbox
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / includes / cataloging-search.inc
1
2 <div class="gradient">
3 <h1 id="logo"><a href="/cgi-bin/koha/mainpage.pl">[% LibraryName %]</a></h1><!-- Begin Cataloging Resident Search Box -->
4     <div id="header_search">
5         <div id="addbooks_search" class="residentsearch">
6         <p class="tip">Search the catalog and the reservoir:</p>
7             <form name="search" action="addbooks.pl">
8                 <input class="head-searchbox" type="text" name="q" size="40" />
9                 <input type="submit" class="submit" value="Submit" />
10             </form>
11         </div>
12
13         [% IF ( CAN_user_circulate ) %]
14         <div id="checkin_search" class="residentsearch">
15             <p class="tip">Scan a barcode to check in:</p>
16             <form method="post" action="/cgi-bin/koha/circ/returns.pl" autocomplete="off">
17                 <input class="head-searchbox" name="barcode" id="ret_barcode" size="40" />
18                 <input value="Submit" class="submit" type="submit" />
19             </form>
20         </div>
21         [% END %]
22
23         <div id="catalog_search" class="residentsearch">
24             <p class="tip">Enter search keywords:</p>
25             <form action="/cgi-bin/koha/catalogue/search.pl"  method="get" id="cat-search-block">
26                 <input type="text" name="q" id="search-form" size="40" value="" title="Enter the terms you wish to search for." class="head-searchbox form-text" />
27                 <input type="submit" class="submit" value="Submit" />
28             </form>
29         </div>
30
31         [% INCLUDE 'patron-search-box.inc' %]
32         <ul>
33             <li><a onclick="keep_text(0)" href="#addbooks_search">Cataloging search</a></li>
34             [% IF ( CAN_user_circulate ) %]<li><a onclick="keep_text(1)" href="#circ_search">Check out</a></li>[% END %]
35             [% IF ( CAN_user_circulate ) %]<li><a onclick="keep_text(2)" href="#checkin_search">Check in</a></li>[% END %]
36             <li><a onclick="keep_text(3)" href="#catalog_search">Search the catalog</a></li>
37         </ul>
38     </div><!-- /header_search -->
39 </div><!-- /gradient -->
40 <!-- End Cataloging Resident Search Box -->