Updates and fixes to use the modified SearchMarc.pm v1.8 and search.marc/search.pl...
[koha_fer] / 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
7 <span style="font-size:2em; text-align:left;">Recherche MARC</span>
8
9 <center>
10 <form name="f" method="post">
11
12 <input type="hidden" name="op" value="do_search">
13 <input type="hidden" name="type" value="intranet">
14 <input type="hidden" name="nbstatements" value="<TMPL_VAR NAME="nbstatements">">
15
16         <table border=0 cellspacing=0 cellpadding=2 width="80%>
17                 <tr align="center">
18                         <td colspan=3>
19                                 <div name="sql">
20                                 <textarea name="sql" rows=5 cols=60 disabled readonly></textarea>
21                                 </div>
22                         </td>
23                         <td colspan=2 bgcolor="#ad11ad" valign="top" align="left">
24                                 <span style="color:#FFFFFF;">
25                                         <b>AIDE :</b><br/>
26                                         Construisez votre requète en utilisant les champs MARC puis lancez
27                                         la recherche pour afficher la liste des notices correspondant à vos critères.
28                                         En cliquant sur "Ajouter un critère" vous pouvez ajouter un critère de recherche sans perdre vos critères déjà entrés.
29                                 </span>
30                         </td>
31                 </tr>
32
33                 <TMPL_LOOP NAME="statements">
34                 <tr>
35                         <td>
36                                 <TMPL_IF NAME="first">
37                                         <input type="hidden" name="and_or" value="">&nbsp;
38                                 <TMPL_ELSE>
39                                         <select name="and_or" size="1" onchange="sql_update()">
40                                                 <option value="and">et</option>
41                                                 <option <TMPL_IF NAME="or">selected </TMPL_IF>value="or">ou</option>
42                                         </select>
43                                 </TMPL_IF>
44                         </td>
45                         <td><TMPL_VAR name="marclist"></td>
46                         <td>
47                                 <select name="excluding" size="1" onchange="sql_update()">
48                                         <option value="0"> </option>
49                                         <option <TMPL_IF NAME="not">selected </TMPL_IF>value="1">non</option>
50                                 </select>
51                         </td>
52                         <td>
53                                 <select name="operator" size="1" onchange="sql_update()">
54                                         <option <TMPL_IF NAME="eq">selected</TMPL_IF> value="=">Egale</option>
55                                         <option <TMPL_IF NAME="start">selected</TMPL_IF> value="start">Commence par</option>
56                                         <option <TMPL_IF NAME="contains">selected</TMPL_IF> value="contains">Contient</option>
57                                         <option <TMPL_IF NAME="gt">selected</TMPL_IF> value=">">Supérieur à</option>
58                                         <option <TMPL_IF NAME="ge">selected</TMPL_IF> value=">=">Supérieur ou égal à</option>
59                                         <option <TMPL_IF NAME="lt">selected</TMPL_IF> value="<">Inférieur à</option>
60                                         <option <TMPL_IF NAME="le">selected</TMPL_IF> value="<=">Inférieur ou égal à</option>
61                                 </select>
62                         </td>
63                         <td><input type="text" name="value" onChange="sql_update()" <TMPL_IF NAME="value">value="<TMPL_VAR NAME="value">"</TMPL_IF>></td>
64                 </tr>
65                 </TMPL_LOOP>
66         </table>
67         <br>
68
69         <table width="90%">
70         <tr>
71         <td align="left" width="33%"><input type="button" value="Ajouter un critère" onClick="AddStatement()"></td>
72         <td align="center" width="33%"><input type="submit" value="Lancer la recherche"></td>
73         <td align="right" width="33%">Résultats par page :
74                 <select align="right" name="resultsperpage" size="1">
75                         <option value="20">20</option>
76                         <option value="50">50</option>
77                         <option value="100">100</option>
78                 </select>
79         </td>
80         </tr>
81         </table>
82 </form>
83 </center>
84
85 <script>
86 function sql_update() {
87 document.f.sql.value="";
88         for (i=0 ; i<document.f.marclist.length ; i++) {
89                 if (document.f.marclist[i].value != '') {
90                         document.f.sql.value = document.f.sql.value+
91                                                                                 document.f.and_or[i].value + ' (' +
92                                                                                 document.f.excluding[i].value + ' ' +
93                                                                                 document.f.marclist[i].value + ' ' +
94                                                                                 document.f.operator[i].value + ' ' +
95                                                                                 '\''+document.f.value[i].value + '\') ';
96                 }
97         }
98 }
99
100 function AddStatement() {
101
102         document.forms[0].op.value="AddStatement";
103         document.f.submit();
104 }
105
106 </script>
107 <TMPL_IF NAME="opac">
108     <TMPL_INCLUDE NAME="opac-bottom.inc">
109 <TMPL_ELSE>
110     <TMPL_INCLUDE NAME="cat-bottom.inc">
111 </TMPL_IF>
112