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">
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">
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">
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" -->
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" -->
67 <h2 class="catalogue">Autres options</h2>
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()">
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()">
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()">
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()">
102 <h2 class="catalogue">Plus de champs</h2>
103 <!-- TMPL_LOOP NAME="statements" -->
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>
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>
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>
123 <input type="text" name="value" onChange="sql_update()" <!-- TMPL_IF NAME="value" -->value="<!-- TMPL_VAR NAME="value" -->"<!-- /TMPL_IF -->>
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>
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>
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>
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>
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 + '\') ';
169 function AddStatement() {
171 document.forms[0].op.value="AddStatement";
175 function PopupSuggestion() {
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;
182 newin=window.open("suggest.pl?Q="+strQuery,"Suggestions",'width=500,height=400,toolbar=false,scrollbars=yes');
187 <!-- TMPL_IF NAME="opac" -->
188 <!-- TMPL_INCLUDE NAME="opac-bottom.inc" -->
190 <!-- TMPL_INCLUDE NAME="cat-bottom.inc" -->