1 <!-- TMPL_INCLUDE NAME="opac-top.inc" -->
4 <h1 class="catalogue">Catalogue search</h1>
6 <form name="f" method="post">
7 <input type="hidden" name="op" value="do_search">
8 <input type="hidden" name="nbstatements" value="<!-- TMPL_VAR NAME="nbstatements" -->">
10 <h2 class="catalogue">Search on</h2>
12 <label class="label20">Keyword</label>
13 <input type="hidden" name="marclist" value="">
14 <input type="hidden" name="and_or" value="and">
15 <input type="hidden" name="excluding" value="">
16 <input type="hidden" name="operator" value="contains">
17 <input type="text" name="value" onchange="sql_update()">
20 <label class="label20">Title</label>
21 <input type="hidden" name="marclist" value="biblio.title">
22 <input type="hidden" name="and_or" value="and">
23 <input type="hidden" name="excluding" value="">
24 <input type="hidden" name="operator" value="contains">
25 <input type="text" name="value" onchange="sql_update()">
28 <label class="label20">author</label> <input type="hidden" name="marclist" value="biblio.author">
29 <input type="hidden" name="and_or" value="and">
30 <input type="hidden" name="excluding" value="">
31 <input type="hidden" name="operator" value="contains">
32 <input type="text" name="value" onchange="sql_update()">
35 <label class="label20">barcode</label>
36 <input type="hidden" name="marclist" value="items.barcode">
37 <input type="hidden" name="and_or" value="and">
38 <input type="hidden" name="excluding" value="">
39 <input type="hidden" name="operator" value="contains">
40 <input type="text" name="value" onchange="sql_update()">
43 <label class="label20">Illustrator</label>
44 <input type="hidden" name="marclist" value="biblioitems.illus">
45 <input type="hidden" name="and_or" value="and">
46 <input type="hidden" name="excluding" value="">
47 <input type="hidden" name="operator" value="contains">
48 <input type="text" name="value" onchange="sql_update()">
51 <label class="label20">Dewey</label><input type="hidden" name="marclist" value="biblioitems.dewey">
52 <input type="hidden" name="and_or" value="and">
53 <input type="hidden" name="excluding" value="">
54 <input type="hidden" name="operator" value="contains">
55 <input type="text" name="value" onchange="sql_update()">
58 <label class="label20">Item Type</label> <input type="hidden" name="marclist" value="biblioitems.itemtype">
59 <input type="hidden" name="and_or" value="and">
60 <input type="hidden" name="excluding" value="">
61 <input type="hidden" name="operator" value="=">
62 <!-- TMPL_VAR name="CGIitemtype" -->
65 <label class="label20">branch</label>
66 <input type="hidden" name="marclist" value="items.holdingbranch">
67 <input type="hidden" name="and_or" value="and">
68 <input type="hidden" name="excluding" value="">
69 <input type="hidden" name="operator" value="=">
70 <!-- TMPL_VAR name="CGIbranch" -->
76 <select align="right" name="resultsperpage" size="1">
77 <option value="20">20</option>
78 <option value="50">50</option>
79 <option value="100">100</option>
82 <select name="orderby" size="1">
83 <option value="biblio.title">Title</option>
84 <option value="biblio.author">Author</option>
85 <option value="biblioitems.dewey">Dewey</option>
86 <option value="biblioitems.publicationyear">Publication Year</option>
87 <option value="biblioitems.publishercode">Publisher</option>
91 <input type="submit" value="Start search" class="button catalogue">
97 function sql_update() {
98 document.f.sql.value="";
99 for (i=0 ; i<document.f.marclist.length ; i++) {
100 if (document.f.value[i].value.length>0) {
101 document.f.sql.value = document.f.sql.value+
102 document.f.and_or[i].value + ' (' +
103 document.f.excluding[i].value + ' ' +
104 document.f.marclist[i].value + ' ' +
105 document.f.operator[i].value + ' ' +
106 '\''+document.f.value[i].value + '\') ';
111 function AddStatement() {
113 document.forms[0].op.value="AddStatement";
117 function PopupSuggestion() {
119 for (i=0 ; i<document.f.marclist.length ; i++) {
120 if (document.f.value[i].value.length>0) {
121 strQuery += " "+document.f.value[i].value;
124 newin=window.open("suggest.pl?Q="+strQuery,"Suggestions",'width=500,height=400,toolbar=false,scrollbars=yes');
129 <!-- TMPL_INCLUDE NAME="opac-bottom.inc" -->