synch'ing 2.2 and head
[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 id="bloc60">
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">Any word</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()" size="35" />
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()" size="35" />
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()" size="35" />
34                 </p>
35                 <p>
36                         <label class="label20">Subject</label>
37                         <input type="hidden" name="marclist" value="bibliosubject.subject" />
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()" size="35" />
42                 </p>
43                 <p>
44                         <label class="label20">Series title</label>
45                         <input type="hidden" name="marclist" value="biblio.seriestitle" />
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()" size="35"/>
50                 </p>
51                 <p>
52                         <label class="label20">Item Type</label>
53                         <input type="hidden" name="marclist" value="biblioitems.itemtype" />
54                         <input type="hidden" name="and_or" value="and" />
55                         <input type="hidden" name="excluding" value="" />
56                         <input type="hidden" name="operator" value="=" />
57                         <!-- TMPL_VAR name="CGIitemtype" -->
58                 </p>
59                 <p>
60                                 <label class="label20">Branch</label>
61                                 <input type="hidden" name="marclist" value="items.holdingbranch" />
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="CGIbranch" -->
66                 </p>
67         </div>
68         <div id="bloc20">
69                 <h2>Other options</h2>
70                 <p>
71                                 <label class="label20">Item barcode</label>
72                                 <input type="hidden" name="marclist" value="items.barcode" />
73                                 <input type="hidden" name="and_or" value="and" />
74                                 <input type="hidden" name="excluding" value="" />
75                                 <input type="hidden" name="operator" value="start" />
76                                 <input type="text" name="value" onchange="sql_update()" /> 
77                 </p>
78                 <p>
79                         <label class="label20">Call Number</label>
80                         <input type="hidden" name="marclist" value="items.itemcallnumber" />
81                         <input type="hidden" name="and_or" value="and" />
82                         <input type="hidden" name="excluding" value="" />
83                         <input type="hidden" name="operator" value="start" />
84                         <input type="text" name="value" onchange="sql_update()" />
85                 </p>
86                 <p>
87                         <label class="label20">ISBN</label>
88                         <input type="hidden" name="marclist" value="biblioitems.isbn" />
89                         <input type="hidden" name="and_or" value="and" />
90                         <input type="hidden" name="excluding" value="" />
91                         <input type="hidden" name="operator" value="=" />
92                         <input type="text" name="value" onchange="sql_update()" />
93                 </p>
94                 <p>
95                         <label class="label20">Publisher</label>
96                         <input type="hidden" name="marclist" value="biblioitems.publishercode" />
97                         <input type="hidden" name="and_or" value="and" />
98                         <input type="hidden" name="excluding" value="" />
99                         <input type="hidden" name="operator" value="contains" />
100                         <input type="text" name="value" onchange="sql_update()" />
101                 </p>
102                 <p>
103                         <label class="label20">Published between</label>
104                         <input type="hidden" name="marclist" value="biblioitems.publicationyear" />
105                         <input type="hidden" name="and_or" value="and" />
106                         <input type="hidden" name="excluding" value="" />
107                         <input type="hidden" name="operator" value=">=" />
108                         <input type="text" name="value" size="6" maxlength="4" onchange="sql_update()" />
109                         and
110                         <input type="hidden" name="marclist" value="biblioitems.publicationyear" />
111                         <input type="hidden" name="and_or" value="and" />
112                         <input type="hidden" name="excluding" value="" />
113                         <input type="hidden" name="operator" value="<=" />
114                         <input type="text" name="value" size="6" maxlength="4" onchange="sql_update()" />
115                 </p>
116                 <p>
117                         <label class="label20">Results per page</label>
118                         <select name="resultsperpage" size="1">
119                                 <option value="20">20</option>
120                                 <option value="50">50</option>
121                                 <option value="100">100</option>
122                         </select>
123                 </p>
124                 <p>
125                         <label class="label20">Ordered by</label>
126                         <select name="orderby" size="1">
127                                 <option value="biblio.title">Title</option>
128                                 <option value="biblio.author">Author</option>
129                                 <option value="biblioitems.dewey">Dewey</option>
130                                 <option value="biblioitems.publicationyear">Publication Year</option>
131                                 <option value="biblioitems.publishercode">Publisher</option>
132                                 <option value="biblio.timestamp desc">Acquisition date</option>
133                         </select>
134                         <select name="desc_or_asc" size="1">
135                                 <option value="ASC">Ascending</option>
136                                 <option value="DESC">Descending</option>
137                         </select>
138                 </p>            
139
140         </div>
141         <p>
142                 <input type="submit" value="Start search" class="button catalogue" />
143                 <input type="reset" value="Clear all" class="button catalogue" />
144         </p>
145         <div id="bloc60">
146                 <h2>Hints</h2>
147                 <h3>Title</h3>
148                 <p>You can enter a complete or a part of a title. The search will also be done in subtitles and other title related fields</p>
149                 <h3>Author</h3>
150                 <p>You can enter a name or a surname. The search will also be done in additional authors and other author related fields (translator, illustrator...)</p>
151                 <p>Remember that a title can concern a physical author (Victor Hugo) or a company, group, collective author (CNRS, Library of Congress)</p>
152                 <h3>Branches</h3>
153                 <p>Select a branch if you want to limit your search to items in a specific branch. By default the search is done on every branches of the library</p>
154                 <h3>Partial search</h3>
155                 <p>A search is done on every words you enter. Empty words are ignored. If you enter, for example "the two towers" in the title, the result list will contain all the books containing two AND tower in the title. The "the" will be discarded.</p>
156                 <p>If you want to enter a partial word, add a * or a % at the end of the word. For example "two tower*" will retrieve "the two towers", "two white towers", "a tower and two cities"</p>
157         </div>
158 </form>
159
160 <script type="text/javascript">
161 function sql_update() {
162 document.f.sql.value="";
163         for (i=0 ; i<document.f.marclist.length ; i++) {
164                 if (document.f.value[i].value.length>0) {
165                         document.f.sql.value = document.f.sql.value+
166                                                                                 document.f.and_or[i].value + ' (' +
167                                                                                 document.f.excluding[i].value + ' ' +
168                                                                                 document.f.marclist[i].value + ' ' +
169                                                                                 document.f.operator[i].value + ' ' +
170                                                                                 '\''+document.f.value[i].value + '\') ';
171                 }
172         }
173 }
174
175 function AddStatement() {
176
177         document.forms[0].op.value="AddStatement";
178         document.f.submit();
179 }
180
181 function PopupSuggestion() {
182     var strQuery="";
183         for (i=0 ; i<document.f.marclist.length ; i++) {
184                 if (document.f.value[i].value.length>0) {
185                     strQuery += " "+document.f.value[i].value;
186                 }
187         }
188         newin=window.open("suggest.pl?Q="+strQuery,"Suggestions",'width=500,height=400,toolbar=false,scrollbars=yes');
189 }
190
191 </script>
192 </div>
193 <!-- TMPL_INCLUDE NAME="opac-bottom.inc" -->