1 <!-- TMPL_IF NAME="opac" -->
2 <!-- TMPL_INCLUDE NAME="opac-top.inc" -->
4 <!-- TMPL_INCLUDE NAME="cat-top.inc" -->
7 <h1>Catalogue search</h1>
9 <form name="f" method="post">
10 <input type="hidden" name="op" value="do_search">
11 <input type="hidden" name="type" value="intranet">
12 <input type="hidden" name="nbstatements" value="<!-- TMPL_VAR NAME="nbstatements" -->">
13 <table class="noborder">
21 Keyword <input type="hidden" name="marclist" value="">
22 <input type="hidden" name="and_or" value="and">
23 <input type="hidden" name="excluding" value="">
26 <input type="hidden" name="operator" value="contains">
27 <input type="text" name="value" onchange="sql_update()">
30 Illustrator<input type="hidden" name="marclist" value="biblioitems.illus">
31 <input type="hidden" name="and_or" value="and">
32 <input type="hidden" name="excluding" value="">
35 <input type="hidden" name="operator" value="contains">
36 <input type="text" name="value" onchange="sql_update()">
41 Title <input type="hidden" name="marclist" value="biblio.title">
42 <input type="hidden" name="and_or" value="and">
43 <input type="hidden" name="excluding" value="">
46 <input type="hidden" name="operator" value="contains">
47 <input type="text" name="value" onchange="sql_update()">
50 Dewey<input type="hidden" name="marclist" value="biblioitems.dewey">
51 <input type="hidden" name="and_or" value="and">
52 <input type="hidden" name="excluding" value="">
55 <input type="hidden" name="operator" value="contains">
56 <input type="text" name="value" onchange="sql_update()">
61 author <input type="hidden" name="marclist" value="biblio.author">
62 <input type="hidden" name="and_or" value="and">
63 <input type="hidden" name="excluding" value="">
66 <input type="hidden" name="operator" value="contains">
67 <input type="text" name="value" onchange="sql_update()">
70 Item Type <input type="hidden" name="marclist" value="items.itemtype">
71 <input type="hidden" name="and_or" value="and">
72 <input type="hidden" name="excluding" value="">
75 <input type="hidden" name="operator" value="contains">
76 <input type="text" name="value" onchange="sql_update()">
84 <input type="hidden" name="marclist" value="items.barcode">
85 <input type="hidden" name="and_or" value="and">
86 <input type="hidden" name="excluding" value="">
87 <input type="hidden" name="operator" value="contains">
88 <input type="text" name="value">
93 <table class="noborder">
96 Complete (MARC) search
99 <!-- TMPL_LOOP NAME="statements" -->
102 <!-- TMPL_IF NAME="first" -->
103 <input type="hidden" name="and_or" value="">
105 <select name="and_or" size="1" onchange="sql_update()">
106 <option value="and">and</option>
107 <option <!-- TMPL_IF NAME="or" -->selected <!-- /TMPL_IF -->value="or">or</option>
111 <td><!-- TMPL_VAR name="marclist" --></td>
113 <select name="excluding" size="1" onchange="sql_update()">
114 <option value="0"> </option>
115 <option <!-- TMPL_IF NAME="not" -->selected <!-- /TMPL_IF -->value="1">not</option>
119 <select name="operator" size="1" onchange="sql_update()">
120 <option <!-- TMPL_IF NAME="contains" -->selected<!-- /TMPL_IF --> value="contains">Contains</option>
121 <option <!-- TMPL_IF NAME="eq" -->selected<!-- /TMPL_IF --> value="=">Is equal to</option>
122 <option <!-- TMPL_IF NAME="start" -->selected<!-- /TMPL_IF --> value="start">Starts with</option>
123 <option <!-- TMPL_IF NAME="gt" -->selected<!-- /TMPL_IF --> value=">">Is greater than</option>
124 <option <!-- TMPL_IF NAME="ge" -->selected<!-- /TMPL_IF --> value=">=">Is greater or equal to</option>
125 <option <!-- TMPL_IF NAME="lt" -->selected<!-- /TMPL_IF --> value="<">Is lower than</option>
126 <option <!-- TMPL_IF NAME="le" -->selected<!-- /TMPL_IF --> value="<=">Is lower or equal to</option>
130 <input type="text" name="value" onChange="sql_update()" <!-- TMPL_IF NAME="value" -->value="<!-- TMPL_VAR NAME="value" -->"<!-- /TMPL_IF -->>
135 <td align="left" width="15%"><input type="button" value="Add criteria" onClick="AddStatement()" class="button"></td>
141 <textarea name="sql" rows=3 cols=60 disabled readonly></textarea>
148 <table class="noborder">
150 <td align="right">Results per page :
151 <select align="right" name="resultsperpage" size="1">
152 <option value="20">20</option>
153 <option value="50">50</option>
154 <option value="100">100</option>
158 <select name="orderby" size="1">
159 <option value="biblio.title">Title</option>
160 <option value="biblio.author">Author</option>
161 <option value="biblioitems.dewey">Dewey</option>
162 <option value="biblioitems.publicationyear">Publication Year</option>
163 <option value="biblioitems.publishercode">Publisher</option>
165 <td align="middle"><input type="submit" value="Start search" class="button"></td>
171 function sql_update() {
172 document.f.sql.value="";
173 for (i=0 ; i<document.f.marclist.length ; i++) {
174 if (document.f.marclist[i].value != '') {
175 document.f.sql.value = document.f.sql.value+
176 document.f.and_or[i].value + ' (' +
177 document.f.excluding[i].value + ' ' +
178 document.f.marclist[i].value + ' ' +
179 document.f.operator[i].value + ' ' +
180 '\''+document.f.value[i].value + '\') ';
185 function AddStatement() {
187 document.forms[0].op.value="AddStatement";
192 <!-- TMPL_IF NAME="opac" -->
193 <!-- TMPL_INCLUDE NAME="opac-bottom.inc" -->
195 <!-- TMPL_INCLUDE NAME="cat-bottom.inc" -->