2 <h1 id="logo"><a href="/cgi-bin/koha/mainpage.pl"><!-- TMPL_VAR NAME="LibraryName" --></a></h1><!-- Begin Suggestions Resident Search Box -->
3 <!-- TMPL_IF NAME="CAN_user_circulate" --><!-- TMPL_IF NAME="CircAutocompl" --><script type="text/javascript">
5 YAHOO.util.Event.onContentReady("header_search", function() {
7 // Define a custom formatter function
8 this.fnCustomFormatter = function(oResultItem, sQuery) {
9 var name = oResultItem[0];
10 var cardnumber = oResultItem[1];
11 var address = oResultItem[2];
12 var city = oResultItem[3];
13 var zip = oResultItem[4];
15 "<div class=\"sample-result\">",
25 return (aMarkup.join(""));
28 // Instantiate one XHR DataSource and define schema as an array:
29 // ["Record Delimiter",
31 this.oACDS = new YAHOO.widget.DS_XHR("/cgi-bin/koha/circ/ysearch.pl", ["\n", "\t"]);
32 this.oACDS.responseType = YAHOO.widget.DS_XHR.TYPE_FLAT;
33 this.oACDS.maxCacheEntries = 60;
34 this.oACDS.queryMatchSubset = true;
36 // Instantiate first AutoComplete
37 var myInput = document.getElementById('findborrower');
38 var myContainer = document.getElementById('yborrowercontainer');
39 this.oAutoComp = new YAHOO.widget.AutoComplete(myInput,myContainer,this.oACDS);
40 //this.oAutoComp.delimChar = ";";
41 //this.oAutoComp.queryDelay = 1;
42 this.oAutoComp.formatResult = this.fnCustomFormatter;
46 </script> <!-- /TMPL_IF --><!-- /TMPL_IF -->
47 <div id="header_search">
48 <div id="suggestions_search" class="residentsearch">
49 <p class="tip">Suggestions Search:</p>
50 <form action="/cgi-bin/koha/acqui/newordersuggestion.pl" method="get">
51 <label for="searchtitle">Title:</label> <input type="text" id="searchtitle" name="title" size="10" value="<!-- TMPL_VAR NAME="title"-->" />
52 <label for="searchauthor">Author:</label> <input type="text" id="searchauthor" name="author" size="10" value="<!-- TMPL_VAR NAME="author" -->" />
53 <label for="searchpublishercode">Publisher:</label> <input type="text" id="searchpublishercode" name="publishercode" size="10" value="<!-- TMPL_VAR NAME="publishercode"-->" />
54 <input type="submit" class="button" value="Search" />
57 <!-- TMPL_IF NAME="CAN_user_circulate" -->
58 <div id="circ_search" class="residentsearch">
59 <p class="tip">Enter patron card number or partial name:</p>
60 <form action="/cgi-bin/koha/circ/circulation.pl" method="post">
61 <!-- TMPL_IF NAME="CircAutocompl" -->
62 <div class="autocomplete">
63 <div id="borrowerautocomplete" class="autocomplete">
64 <input autocomplete="off" id="findborrower" name="findborrower" class="focus" type="text" />
65 <div id="yborrowercontainer"></div>
66 <input id="ysearchsubmit" type="submit" value="Submit" />
67 <input name="branch" value="<!-- TMPL_VAR name="branch" -->" type="hidden" />
68 <input name="printer" value="" type="hidden" />
72 <input id="findborrower" name="findborrower" size="40" class="focus" type="text" />
73 <input name="branch" value="<!-- TMPL_VAR name="branch" -->" type="hidden" />
74 <input name="printer" value="" type="hidden" />
75 <input value="Submit" type="submit" />
80 <!-- TMPL_IF NAME="CAN_user_catalogue" -->
81 <div id="catalog_search" class="residentsearch">
82 <p class="tip">Enter search keywords:</p>
83 <form action="/cgi-bin/koha/catalogue/search.pl" method="get" id="cat-search-block">
84 <input type="text" name="q" id="search-form" size="40" value="" title="Enter the terms you wish to search for." class="form-text" />
85 <input type="submit" value="Submit" class="form-submit" />
90 <li><a href="/cgi-bin/koha/acqui/newordersuggestion.pl?booksellerid=<!-- TMPL_VAR NAME="supplierid" -->&basketno=<!-- TMPL_VAR NAME="basketno" -->#suggestions_search">Search Suggestions</a></li>
91 <!-- TMPL_IF NAME="CAN_user_circulate" --><li><a href="/cgi-bin/koha/circ/circulation.pl#circ_search">Check Out</a></li><!-- /TMPL_IF -->
92 <!-- TMPL_IF NAME="CAN_user_catalogue" --><li><a href="/cgi-bin/koha/catalogue/search.pl#catalog_search">Search the Catalog</a></li><!-- /TMPL_IF -->
95 <!-- End Suggestions Resident Search Box -->