minor fixes (to get less warning during translation)
[koha.git] / koha-tmpl / opac-tmpl / css / en / opac-search.tmpl
1     <!-- TMPL_INCLUDE NAME="opac-top.inc" -->
2 <div id="mainbloc">
3
4 <h1 class="catalogue">Catalogue search</h1>
5
6 <form name="f" method="post" action="<!-- TMPL_VAR name="SCRIPT_NAME" -->">
7         
8         <div>
9                 <h2 class="catalogue">Search on</h2>
10                 <p>
11                         <input type="hidden" name="op" value="do_search" />
12                         <input type="hidden" name="nbstatements" value="<!-- TMPL_VAR NAME="nbstatements" -->" />
13                         <label class="label20">Keyword</label>
14                         <input type="hidden" name="marclist" value="" />
15                         <input type="hidden" name="and_or" value="and" />
16                         <input type="hidden" name="excluding" value="" />
17                         <input type="hidden" name="operator" value="contains" />
18                         <input type="text" name="value" onchange="sql_update()" />
19                 </p>
20                 <p>
21                         <label class="label20">Title</label>
22                         <input type="hidden" name="marclist" value="biblio.title" />
23                         <input type="hidden" name="and_or" value="and" />
24                         <input type="hidden" name="excluding" value="" />
25                         <input type="hidden" name="operator" value="contains" />
26                         <input type="text" name="value" onchange="sql_update()" />
27                 </p>
28                 <p>
29                         <label class="label20">Author</label> <input type="hidden" name="marclist" value="biblio.author" />
30                         <input type="hidden" name="and_or" value="and" />
31                         <input type="hidden" name="excluding" value="" />
32                         <input type="hidden" name="operator" value="contains" />
33                         <input type="text" name="value" onchange="sql_update()" />
34                 </p>
35                 <p>
36                                 <label class="label20">Barcode</label>
37                                 <input type="hidden" name="marclist" value="items.barcode" />
38                                 <input type="hidden" name="and_or" value="and" />
39                                 <input type="hidden" name="excluding" value="" />
40                                 <input type="hidden" name="operator" value="contains" />
41                                 <input type="text" name="value" onchange="sql_update()" /> 
42                 </p>
43                 <p>
44                         <label class="label20">Illustrator</label>
45                         <input type="hidden" name="marclist" value="biblioitems.illus" />
46                         <input type="hidden" name="and_or" value="and" />
47                         <input type="hidden" name="excluding" value="" />
48                         <input type="hidden" name="operator" value="contains" />
49                         <input type="text" name="value" onchange="sql_update()" />
50                 </p>
51                 <p>
52                         <label class="label20">Dewey</label>
53                         <input type="hidden" name="marclist" value="biblioitems.dewey" />
54                         <input type="hidden" name="and_or" value="and" />
55                         <input type="hidden" name="excluding" value="" />
56                         <input type="hidden" name="operator" value="contains" />
57                         <input type="text" name="value" onchange="sql_update()" />
58                 </p>
59                 <p>
60                         <label class="label20">Item Type</label>
61                         <input type="hidden" name="marclist" value="biblioitems.itemtype" />
62                         <input type="hidden" name="and_or" value="and" />
63                         <input type="hidden" name="excluding" value="" />
64                         <input type="hidden" name="operator" value="=" />
65                         <!-- TMPL_VAR name="CGIitemtype" -->
66                 </p>
67                 <p>
68                                 <label class="label20">Branch</label>
69                                 <input type="hidden" name="marclist" value="items.holdingbranch" />
70                                 <input type="hidden" name="and_or" value="and" />
71                                 <input type="hidden" name="excluding" value="" />
72                                 <input type="hidden" name="operator" value="=" />  
73                                 <!-- TMPL_VAR name="CGIbranch" -->
74                 </p>
75
76         </div>
77         <div>
78                 <p>Results per page :
79                         <select name="resultsperpage" size="1">
80                                 <option value="20">20</option>
81                                 <option value="50">50</option>
82                                 <option value="100">100</option>
83                         </select>
84                 Ordered by
85                         <select name="orderby" size="1">
86                                 <option value="biblio.title">Title</option>
87                                 <option value="biblio.author">Author</option>
88                                 <option value="biblioitems.dewey">Dewey</option>
89                                 <option value="biblioitems.publicationyear">Publication Year</option>
90                                 <option value="biblioitems.publishercode">Publisher</option>
91                         </select>
92                 </p>
93                 <p>
94                         <input type="submit" value="Start search" class="button catalogue" />
95                 </p>
96         </div>
97 </form>
98
99 <script type="text/javascript">
100 function sql_update() {
101 document.f.sql.value="";
102         for (i=0 ; i<document.f.marclist.length ; i++) {
103                 if (document.f.value[i].value.length>0) {
104                         document.f.sql.value = document.f.sql.value+
105                                                                                 document.f.and_or[i].value + ' (' +
106                                                                                 document.f.excluding[i].value + ' ' +
107                                                                                 document.f.marclist[i].value + ' ' +
108                                                                                 document.f.operator[i].value + ' ' +
109                                                                                 '\''+document.f.value[i].value + '\') ';
110                 }
111         }
112 }
113
114 function AddStatement() {
115
116         document.forms[0].op.value="AddStatement";
117         document.f.submit();
118 }
119
120 function PopupSuggestion() {
121     var strQuery="";
122         for (i=0 ; i<document.f.marclist.length ; i++) {
123                 if (document.f.value[i].value.length>0) {
124                     strQuery += " "+document.f.value[i].value;
125                 }
126         }
127         newin=window.open("suggest.pl?Q="+strQuery,"Suggestions",'width=500,height=400,toolbar=false,scrollbars=yes');
128 }
129
130 </script>
131 </div>
132 <!-- TMPL_INCLUDE NAME="opac-bottom.inc" -->