1 <!-- TMPL_IF NAME="opac" -->
2 <!-- TMPL_INCLUDE NAME="opac-top.inc" -->
4 <!-- TMPL_INCLUDE NAME="cat-top.inc" -->
8 <h1 class="catalogue">Recherche Catalogue</h1>
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" -->">
15 <h2 class="catalogue">Rechercher sur</h2>
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">
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&type=intranet&index=1',1)" class="button catalogue">
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&type=intranet&index=2',2)" class="button catalogue">
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&type=intranet&index=3',3)" class="button catalogue">
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" -->
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" -->
82 <h2 class="catalogue">Autres options</h2>
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()">
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()">
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()">
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()">
117 <h2 class="catalogue">Plus de champs</h2>
118 <!-- TMPL_LOOP NAME="statements" -->
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>
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>
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>
138 <input type="text" name="value" onChange="sql_update()" <!-- TMPL_IF NAME="value" -->value="<!-- TMPL_VAR NAME="value" -->"<!-- /TMPL_IF -->>
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>
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>
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>
161 <select name="desc_or_asc" size="1">
162 <option value="ASC">Croissant</option>
163 <option value="DESC">Décroissant</option>
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>
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 + '\') ';
188 function AddStatement() {
190 document.forms['f'].op.value="AddStatement";
194 function Dopop(link,i) {
195 var searchstring=document.forms['f'].value[i].value;
196 newin=window.open(link+'&search='+searchstring,"popup",'width=700,height=550,toolbar=false,scrollbars=yes');
200 function PopupSuggestion() {
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;
207 newin=window.open("suggest.pl?Q="+strQuery,"Suggestions",'width=500,height=400,toolbar=false,scrollbars=yes');
212 <!-- TMPL_IF NAME="opac" -->
213 <!-- TMPL_INCLUDE NAME="opac-bottom.inc" -->
215 <!-- TMPL_INCLUDE NAME="cat-bottom.inc" -->