merging 2.2 branch with head. Sorry for not making it before, many many commits done...
[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                 </p>
34                 <p>
35                         <label class="label100" for="author">Auteur</label> <input type="hidden" name="marclist" value="biblio.author">
36                         <input type="hidden" name="and_or" value="and">
37                         <input type="hidden" name="excluding" value="">
38                         <input type="hidden" name="operator" value="contains">
39                         <input type="text" name="value" id="author" onchange="sql_update()" size="35">
40                 </p>
41                 <p>
42                         <label class="label100" for="subject">Sujet</label>
43                         <input type="hidden" name="marclist" value="bibliosubject.subject">
44                         <input type="hidden" name="and_or" value="and">
45                         <input type="hidden" name="excluding" value="">
46                         <input type="hidden" name="operator" value="contains">  
47                         <input type="text" name="value" id="subject" onchange="sql_update()" size="35">
48                 </p>
49                 <p>
50                         <label class="label100" for="itemtype">Type de document</label>
51                         <input type="hidden" name="marclist" value="biblioitems.itemtype">
52                         <input type="hidden" name="and_or" value="and">
53                         <input type="hidden" name="excluding" value="">
54                         <input type="hidden" name="operator" value="=">
55                         <!-- TMPL_VAR name="CGIitemtype" -->
56                 </p>
57                 <p>
58                                 <label class="label100" for="branch">Site</label>
59                                 <input type="hidden" name="marclist" value="items.holdingbranch">
60                                 <input type="hidden" name="and_or" value="and">
61                                 <input type="hidden" name="excluding" value="">
62                                 <input type="hidden" name="operator" value="=">  
63                                 <!-- TMPL_VAR name="CGIbranch" -->
64                 </p>
65         </div>
66         <div class="bloc25">
67                 <h2 class="catalogue">Autres options</h2>
68                 <p>
69                                 <label class="label100" for="barcode">Code à Barres de l'exemplaire</label>
70                                 <input type="hidden" name="marclist" value="items.barcode">
71                                 <input type="hidden" name="and_or" value="and">
72                                 <input type="hidden" name="excluding" value="">
73                                 <input type="hidden" name="operator" value="contains">
74                                 <input type="text" name="value" id="barcode" onchange="sql_update()"> 
75                 </p>
76                 <p>
77                         <label class="label100" for="callno">Cote</label>
78                         <input type="hidden" name="marclist" value="items.itemcallnumber">
79                         <input type="hidden" name="and_or" value="and">
80                         <input type="hidden" name="excluding" value="">
81                         <input type="hidden" name="operator" value="start">
82                         <input type="text" name="value" id="callno" onchange="sql_update()">
83                 </p>
84                 <p>
85                         <label class="label100" for="isbn">ISBN</label>
86                         <input type="hidden" name="marclist" value="biblioitems.isbn">
87                         <input type="hidden" name="and_or" value="and">
88                         <input type="hidden" name="excluding" value="">
89                         <input type="hidden" name="operator" value="=">
90                         <input type="text" name="value" id="isbn" onchange="sql_update()">
91                 </p>
92                 <p>
93                         <label class="label100" for="publisher">Editeur</label>
94                         <input type="hidden" name="marclist" value="biblioitems.publishercode">
95                         <input type="hidden" name="and_or" value="and">
96                         <input type="hidden" name="excluding" value="">
97                         <input type="hidden" name="operator" value="contains">
98                         <input type="text" name="value" id="publisher" onchange="sql_update()">
99                 </p>
100         </div>
101         <div id="bloc100">
102                 <h2 class="catalogue">Plus de champs</h2>
103                 <!-- TMPL_LOOP NAME="statements" -->
104                         <p>
105                                 <select name="and_or" size="1" onchange="sql_update()">
106                                         <option value="and">et</option>
107                                         <option <!-- TMPL_IF NAME="or" -->selected <!-- /TMPL_IF -->value="or">ou</option>
108                                 </select>
109                                 <!-- TMPL_VAR NAME="marclist" -->
110                                 <select name="excluding" size="1" onchange="sql_update()">
111                                         <option value="0"> </option>
112                                         <option <!-- TMPL_IF NAME="not" -->selected <!-- /TMPL_IF -->value="1">pas</option>
113                                 </select>
114                                 <select name="operator" size="1" onchange="sql_update()">
115                                         <option <!-- TMPL_IF NAME="contains" -->selected<!-- /TMPL_IF --> value="contains">Contient</option>
116                                         <option <!-- TMPL_IF NAME="eq" -->selected<!-- /TMPL_IF --> value="=">Est égal à</option>
117                                         <option <!-- TMPL_IF NAME="start" -->selected<!-- /TMPL_IF --> value="start">Commence par</option>
118                                         <option <!-- TMPL_IF NAME="gt" -->selected<!-- /TMPL_IF --> value=">">Est supérieur à</option>
119                                         <option <!-- TMPL_IF NAME="ge" -->selected<!-- /TMPL_IF --> value=">=">Est supérieur ou égal à</option>
120                                         <option <!-- TMPL_IF NAME="lt" -->selected<!-- /TMPL_IF --> value="<">Est inférieur à</option>
121                                         <option <!-- TMPL_IF NAME="le" -->selected<!-- /TMPL_IF --> value="<=">Est inférieur ou égal à</option>
122                                 </select>
123                                 <input type="text" name="value" onChange="sql_update()" <!-- TMPL_IF NAME="value" -->value="<!-- TMPL_VAR NAME="value" -->"<!-- /TMPL_IF -->>
124                         </p>
125                 <!-- /TMPL_LOOP -->
126                 <p>
127                 <input type="button" value="Ajouter un critère" onclick="AddStatement()" class="button catalogue">
128                 Attention : l'option "contient" NE FONCTIONNE PAS si vous n'indiquez pas au moins 3 caractères.</p>
129         </div>
130         <div class="bloc25">
131                 <p><textarea name="sql" rows="3" cols="70" disabled readonly></textarea></p>
132                 <p>Résultats par page :
133                         <select name="resultsperpage" size="1">
134                                 <option value="20">20</option>
135                                 <option value="50">50</option>
136                                 <option value="100">100</option>
137                         </select>
138                 Trié par
139                         <select name="orderby" size="1">
140                                 <option value="biblio.title">Titre</option>
141                                 <option value="biblio.author">Auteur</option>
142                                 <option value="biblioitems.dewey">Dewey</option>
143                                 <option value="biblioitems.publicationyear">Année de Publication</option>
144                                 <option value="biblioitems.publishercode">Editeur</option>
145                         </select>
146                 </p>
147                 <p>
148                         <input type="submit" value="Lancer la recherche" class="button catalogue">
149                         <a href="/cgi-bin/koha/search.marc/suggest.pl" onclick="PopupSuggestion(); return false;" class="button catalogue">Suggestions</a>
150                 </p>
151         </div>
152 </form>
153
154 <script language="javascript" type="text/javascript">
155 function sql_update() {
156 document.f.sql.value="";
157         for (i=0 ; i<document.f.marclist.length ; i++) {
158                 if (document.f.value[i].value.length>0) {
159                         document.f.sql.value = document.f.sql.value+
160                                                                                 document.f.and_or[i].value + ' (' +
161                                                                                 document.f.excluding[i].value + ' ' +
162                                                                                 document.f.marclist[i].value + ' ' +
163                                                                                 document.f.operator[i].value + ' ' +
164                                                                                 '\''+document.f.value[i].value + '\') ';
165                 }
166         }
167 }
168
169 function AddStatement() {
170
171         document.forms[0].op.value="AddStatement";
172         document.f.submit();
173 }
174
175 function PopupSuggestion() {
176     var strQuery="";
177         for (i=0 ; i<document.f.marclist.length ; i++) {
178                 if (document.f.value[i].value.length>0) {
179                     strQuery += " "+document.f.value[i].value;
180                 }
181         }
182         newin=window.open("suggest.pl?Q="+strQuery,"Suggestions",'width=500,height=400,toolbar=false,scrollbars=yes');
183 }
184
185 </script>
186 </div>
187 <!-- TMPL_IF NAME="opac" -->
188     <!-- TMPL_INCLUDE NAME="opac-bottom.inc" -->
189 <!-- TMPL_ELSE -->
190     <!-- TMPL_INCLUDE NAME="cat-bottom.inc" -->
191 <!-- /TMPL_IF -->
192