synch'ing head and rel_2_2 (from 2.2.5, including npl templates)
[koha.git] / koha-tmpl / intranet-tmpl / default / fr / search.marc / search.tmpl
1 <!-- TMPL_IF NAME="opac" -->
2     <!-- TMPL_INCLUDE NAME="opac-top.inc" -->
3 <!-- TMPL_ELSE -->
4     <!-- TMPL_INCLUDE NAME="cat-top.inc" -->
5 <!-- /TMPL_IF -->
6 <div id="mainbloc">
7
8 <h1 class="catalogue">Recherche Catalogue</h1>
9
10 <form name="f" method="post" action="/cgi-bin/koha/search.marc/search.pl">
11         <input type="hidden" name="op" value="do_search">
12         <input type="hidden" name="type" value="intranet">
13         <input type="hidden" name="nbstatements" value="<!-- TMPL_VAR NAME="nbstatements" -->">
14         <div class="bloc25">
15                 <h2 class="catalogue">Rechercher sur</h2>
16                 <p>
17                         <input type="hidden" name="op" value="do_search">
18                         <input type="hidden" name="nbstatements" value="<!-- TMPL_VAR NAME="nbstatements" -->">
19                         <label class="label100" for="keyword">Tous les mots</label>
20                         <input type="hidden" name="marclist" value="">
21                         <input type="hidden" name="and_or" value="and">
22                         <input type="hidden" name="excluding" value="">
23                         <input type="hidden" name="operator" value="contains">
24                         <input type="text" name="value" id="keyword" onchange="sql_update()" size="35">
25                 </p>
26                 <p>
27                         <label class="label100" for="title">Titre</label>
28                         <input type="hidden" name="marclist" value="biblio.title">
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" id="title" onchange="sql_update()" size="35">
33                         <!-- TMPL_UNLESS Name="Disable_Dictionary" -->
34                                 <a href="javascript:Dopop('dictionary.pl?marclist=biblio.title&amp;type=intranet&amp;index=1',1)" class="button catalogue">
35                                         ...
36                                 </a>
37                         <!-- /TMPL_UNLESS -->
38                 </p>
39                 <p>
40                         <label class="label100" for="author">Auteur</label> <input type="hidden" name="marclist" value="biblio.author">
41                         <input type="hidden" name="and_or" value="and">
42                         <input type="hidden" name="excluding" value="">
43                         <input type="hidden" name="operator" value="contains">
44                         <input type="text" name="value" id="author" onchange="sql_update()" size="35">
45                         <!-- TMPL_UNLESS Name="Disable_Dictionary" -->
46                                 <a href="javascript:Dopop('dictionary.pl?marclist=biblio.author&amp;type=intranet&amp;index=2',2)" class="button catalogue">
47                                         ...
48                                 </a>
49                         <!-- /TMPL_UNLESS -->
50                 </p>
51                 <p>
52                         <label class="label100" for="subject">Sujet</label>
53                         <input type="hidden" name="marclist" value="bibliosubject.subject">
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" id="subject" onchange="sql_update()" size="35">
58                         <!-- TMPL_UNLESS Name="Disable_Dictionary" -->
59                                 <a href="javascript:Dopop('dictionary.pl?marclist=bibliosubject.subject&amp;type=intranet&amp;index=3',3)" class="button catalogue">
60                                         ...
61                                 </a>
62                         <!-- /TMPL_UNLESS -->
63                 </p>
64                 <p>
65                         <label class="label100" for="itemtype">Type de document</label>
66                         <input type="hidden" name="marclist" value="biblioitems.itemtype">
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="CGIitemtype" -->
71                 </p>
72                 <p>
73                                 <label class="label100" for="branch">Site</label>
74                                 <input type="hidden" name="marclist" value="items.holdingbranch">
75                                 <input type="hidden" name="and_or" value="and">
76                                 <input type="hidden" name="excluding" value="">
77                                 <input type="hidden" name="operator" value="=">  
78                                 <!-- TMPL_VAR name="CGIbranch" -->
79                 </p>
80         </div>
81         <div class="bloc25">
82                 <h2 class="catalogue">Autres options</h2>
83                 <p>
84                                 <label class="label100" for="barcode">Code à Barres de l'exemplaire</label>
85                                 <input type="hidden" name="marclist" value="items.barcode">
86                                 <input type="hidden" name="and_or" value="and">
87                                 <input type="hidden" name="excluding" value="">
88                                 <input type="hidden" name="operator" value="contains">
89                                 <input type="text" name="value" id="barcode" onchange="sql_update()"> 
90                 </p>
91                 <p>
92                         <label class="label100" for="callno">Cote</label>
93                         <input type="hidden" name="marclist" value="items.itemcallnumber">
94                         <input type="hidden" name="and_or" value="and">
95                         <input type="hidden" name="excluding" value="">
96                         <input type="hidden" name="operator" value="start">
97                         <input type="text" name="value" id="callno" onchange="sql_update()">
98                 </p>
99                 <p>
100                         <label class="label100" for="isbn">ISBN</label>
101                         <input type="hidden" name="marclist" value="biblioitems.isbn">
102                         <input type="hidden" name="and_or" value="and">
103                         <input type="hidden" name="excluding" value="">
104                         <input type="hidden" name="operator" value="=">
105                         <input type="text" name="value" id="isbn" onchange="sql_update()">
106                 </p>
107                 <p>
108                         <label class="label100" for="publisher">Editeur</label>
109                         <input type="hidden" name="marclist" value="biblioitems.publishercode">
110                         <input type="hidden" name="and_or" value="and">
111                         <input type="hidden" name="excluding" value="">
112                         <input type="hidden" name="operator" value="contains">
113                         <input type="text" name="value" id="publisher" onchange="sql_update()">
114                 </p>
115         </div>
116         <div id="bloc100">
117                 <h2 class="catalogue">Plus de champs</h2>
118                 <!-- TMPL_LOOP NAME="statements" -->
119                         <p>
120                                 <select name="and_or" size="1" onchange="sql_update()">
121                                         <option value="and">et</option>
122                                         <option <!-- TMPL_IF NAME="or" -->selected <!-- /TMPL_IF -->value="or">ou</option>
123                                 </select>
124                                 <!-- TMPL_VAR NAME="marclist" -->
125                                 <select name="excluding" size="1" onchange="sql_update()">
126                                         <option value="0"> </option>
127                                         <option <!-- TMPL_IF NAME="not" -->selected <!-- /TMPL_IF -->value="1">pas</option>
128                                 </select>
129                                 <select name="operator" size="1" onchange="sql_update()">
130                                         <option <!-- TMPL_IF NAME="contains" -->selected<!-- /TMPL_IF --> value="contains">Contient</option>
131                                         <option <!-- TMPL_IF NAME="eq" -->selected<!-- /TMPL_IF --> value="=">Est égal à</option>
132                                         <option <!-- TMPL_IF NAME="start" -->selected<!-- /TMPL_IF --> value="start">Commence par</option>
133                                         <option <!-- TMPL_IF NAME="gt" -->selected<!-- /TMPL_IF --> value=">">Est supérieur à</option>
134                                         <option <!-- TMPL_IF NAME="ge" -->selected<!-- /TMPL_IF --> value=">=">Est supérieur ou égal à</option>
135                                         <option <!-- TMPL_IF NAME="lt" -->selected<!-- /TMPL_IF --> value="<">Est inférieur à</option>
136                                         <option <!-- TMPL_IF NAME="le" -->selected<!-- /TMPL_IF --> value="<=">Est inférieur ou égal à</option>
137                                 </select>
138                                 <input type="text" name="value" onChange="sql_update()" <!-- TMPL_IF NAME="value" -->value="<!-- TMPL_VAR NAME="value" -->"<!-- /TMPL_IF -->>
139                         </p>
140                 <!-- /TMPL_LOOP -->
141                 <p>
142                 <input type="button" value="Ajouter un critère" onclick="AddStatement()" class="button catalogue">
143                 Attention : l'option "contient" NE FONCTIONNE PAS si vous n'indiquez pas au moins 3 caractères.</p>
144         </div>
145         <div class="bloc25">
146                 <p><textarea name="sql" rows="3" cols="70" disabled readonly></textarea></p>
147                 <p>Résultats par page :
148                         <select name="resultsperpage" size="1">
149                                 <option value="20">20</option>
150                                 <option value="50">50</option>
151                                 <option value="100">100</option>
152                         </select>
153                 Trié par
154                         <select name="orderby" size="1">
155                                 <option value="biblio.title">Titre</option>
156                                 <option value="biblio.author">Auteur</option>
157                                 <option value="biblioitems.dewey">Dewey</option>
158                                 <option value="biblioitems.publicationyear">Année de Publication</option>
159                                 <option value="biblioitems.publishercode">Editeur</option>
160                         </select>
161                         <select name="desc_or_asc" size="1">
162                                 <option value="ASC">Croissant</option>
163                                 <option value="DESC">Décroissant</option>
164                         </select>
165                 </p>
166                 <p>
167                         <input type="submit" value="Lancer la recherche" class="button catalogue">
168                         <a href="/cgi-bin/koha/search.marc/suggest.pl" onclick="PopupSuggestion(); return false;" class="button catalogue">Suggestion orthographique</a>
169                 </p>
170         </div>
171 </form>
172
173 <script language="javascript" type="text/javascript">
174 function sql_update() {
175 document.f.sql.value="";
176         for (i=0 ; i<document.f.marclist.length ; i++) {
177                 if (document.f.value[i].value.length>0) {
178                         document.f.sql.value = document.f.sql.value+
179                                                                                 document.f.and_or[i].value + ' (' +
180                                                                                 document.f.excluding[i].value + ' ' +
181                                                                                 document.f.marclist[i].value + ' ' +
182                                                                                 document.f.operator[i].value + ' ' +
183                                                                                 '\''+document.f.value[i].value + '\') ';
184                 }
185         }
186 }
187
188 function AddStatement() {
189
190         document.forms['f'].op.value="AddStatement";
191         document.f.submit();
192 }
193
194 function Dopop(link,i) {
195         var searchstring=document.forms['f'].value[i].value;
196         newin=window.open(link+'&amp;search='+searchstring,"popup",'width=700,height=550,toolbar=false,scrollbars=yes');
197 }
198
199
200 function PopupSuggestion() {
201     var strQuery="";
202         for (i=0 ; i<document.f.marclist.length ; i++) {
203                 if (document.f.value[i].value.length>0) {
204                     strQuery += " "+document.f.value[i].value;
205                 }
206         }
207         newin=window.open("suggest.pl?Q="+strQuery,"Suggestions",'width=500,height=400,toolbar=false,scrollbars=yes');
208 }
209
210 </script>
211 </div>
212 <!-- TMPL_IF NAME="opac" -->
213     <!-- TMPL_INCLUDE NAME="opac-bottom.inc" -->
214 <!-- TMPL_ELSE -->
215     <!-- TMPL_INCLUDE NAME="cat-bottom.inc" -->
216 <!-- /TMPL_IF -->
217