rewritting item status checking : now, each item is shown with it's callnumber and...
[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="bloc20">
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">Item Type</label>
45                         <input type="hidden" name="marclist" value="biblioitems.itemtype" />
46                         <input type="hidden" name="and_or" value="and" />
47                         <input type="hidden" name="excluding" value="" />
48                         <input type="hidden" name="operator" value="=" />
49                         <!-- TMPL_VAR name="CGIitemtype" -->
50                 </p>
51                 <p>
52                                 <label class="label20">Branch</label>
53                                 <input type="hidden" name="marclist" value="items.holdingbranch" />
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="CGIbranch" -->
58                 </p>
59                 <p>
60                         <input type="submit" value="Start search" class="button catalogue" />
61                 </p>
62         </div>
63         <div id="bloc20">
64                 <h2>Other options</h2>
65                 <p>
66                                 <label class="label20">Item barcode</label>
67                                 <input type="hidden" name="marclist" value="items.barcode" />
68                                 <input type="hidden" name="and_or" value="and" />
69                                 <input type="hidden" name="excluding" value="" />
70                                 <input type="hidden" name="operator" value="contains" />
71                                 <input type="text" name="value" onchange="sql_update()" /> 
72                 </p>
73                 <p>
74                         <label class="label20">Call Number</label>
75                         <input type="hidden" name="marclist" value="items.itemcallnumber" />
76                         <input type="hidden" name="and_or" value="and" />
77                         <input type="hidden" name="excluding" value="" />
78                         <input type="hidden" name="operator" value="contains" />
79                         <input type="text" name="value" onchange="sql_update()" />
80                 </p>
81                 <p>
82                         <label class="label20">ISBN</label>
83                         <input type="hidden" name="marclist" value="biblioitems.isbn" />
84                         <input type="hidden" name="and_or" value="and" />
85                         <input type="hidden" name="excluding" value="" />
86                         <input type="hidden" name="operator" value="=" />
87                         <input type="text" name="value" onchange="sql_update()" />
88                 </p>
89                 <p>
90                         <label class="label20">Publisher</label>
91                         <input type="hidden" name="marclist" value="biblioitems.publishercode" />
92                         <input type="hidden" name="and_or" value="and" />
93                         <input type="hidden" name="excluding" value="" />
94                         <input type="hidden" name="operator" value="contains" />
95                         <input type="text" name="value" onchange="sql_update()" />
96                 </p>
97                 <p>Results per page :
98                         <select name="resultsperpage" size="1">
99                                 <option value="20">20</option>
100                                 <option value="50">50</option>
101                                 <option value="100">100</option>
102                         </select>
103                 </p>
104                 <p>Ordered by
105                         <select name="orderby" size="1">
106                                 <option value="biblio.title">Title</option>
107                                 <option value="biblio.author">Author</option>
108                                 <option value="biblioitems.dewey">Dewey</option>
109                                 <option value="biblioitems.publicationyear">Publication Year</option>
110                                 <option value="biblioitems.publishercode">Publisher</option>
111                                 <option value="biblio.timestamp desc">Acquisition date</option>
112                         </select>
113                 </p>
114                 <p>&nbsp;</p>
115                 <p>&nbsp;</p>
116         </div>
117         <div id="bloc60">
118                 <h2>Hints</h2>
119                 <h3>Title</h3>
120                 <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>
121                 <h3>Author</h3>
122                 <p>You can enter a name or a surname. The search will also be done is additional authors & other author-related fields (translator, illustrator...)</p>
123                 <p>Remember that a title can concern a "physical" author (Victor Hugo) or a company, group, collective author (CNRS, Library of Congress)</p>
124                 <h3>Branches</h3>
125                 <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>
126                 <h3>Partial search</h3>
127                 <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>
128                 <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>
129         </div>
130 </form>
131
132 <script type="text/javascript">
133 function sql_update() {
134 document.f.sql.value="";
135         for (i=0 ; i<document.f.marclist.length ; i++) {
136                 if (document.f.value[i].value.length>0) {
137                         document.f.sql.value = document.f.sql.value+
138                                                                                 document.f.and_or[i].value + ' (' +
139                                                                                 document.f.excluding[i].value + ' ' +
140                                                                                 document.f.marclist[i].value + ' ' +
141                                                                                 document.f.operator[i].value + ' ' +
142                                                                                 '\''+document.f.value[i].value + '\') ';
143                 }
144         }
145 }
146
147 function AddStatement() {
148
149         document.forms[0].op.value="AddStatement";
150         document.f.submit();
151 }
152
153 function PopupSuggestion() {
154     var strQuery="";
155         for (i=0 ; i<document.f.marclist.length ; i++) {
156                 if (document.f.value[i].value.length>0) {
157                     strQuery += " "+document.f.value[i].value;
158                 }
159         }
160         newin=window.open("suggest.pl?Q="+strQuery,"Suggestions",'width=500,height=400,toolbar=false,scrollbars=yes');
161 }
162
163 </script>
164 </div>
165 <!-- TMPL_INCLUDE NAME="opac-bottom.inc" -->