Adding plugin for Unimarc_field-4XX.pl
[koha.git] / koha-tmpl / intranet-tmpl / default / en / value_builder / unimarc_field_4XX.tmpl
1 <html>
2 <head>
3         <title>KOHA:INTRANET : Biblio Search</title>
4 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
5
6 <script language="JavaScript" type="text/javascript">
7 function Help() {
8         newin=window.open("/cgi-bin/koha/help.pl","Koha Help",'width=600,height=600,toolbar=false,scrollbars=yes');
9 }
10
11 </script>
12
13 <link rel="stylesheet" type="text/css" href="<!-- TMPL_VAR name="themelang" -->/includes/common-style.css">
14 <style type="text/css">
15 .catalogue {
16         background-color:#ad11ad;
17         color:#FFFFFF;
18         background-image:none;
19         text-decoration: normal;
20         }
21 a.catalogue:hover {
22         background-color: #ad11ad;
23         color: #FFFFFF;
24         text-decoration: none;
25         }
26
27 </style>
28 </head>
29
30 <body>
31         <script>
32                 function report(value2report) {
33                         if (document.f_pop.result.value.length==0) {
34                                 document.f_pop.result.value = value2report;
35                         } else {
36                                 document.f_pop.result.value = document.f_pop.result.value+'|'+value2report;
37                         }
38                         return true;
39                 }
40         </script>
41         <script>
42                 function finish() {
43                         opener.document.f.field_value[<!-- TMPL_VAR name="index" -->].value= document.f_pop.result.value;
44                         self.close();
45                         return false;
46                 }
47         </script>
48 <!-- MENUS -->
49 <!-- TMPL_IF NAME="loggedinusername" -->
50     <p align="left">Logged in as: <!-- TMPL_VAR NAME="loggedinusername" --> [<a href="/cgi-bin/koha/mainpage.pl?logout.x=1">Log Out</a>]</p>
51 <!-- TMPL_ELSE -->
52     <p align="left"><a href="/cgi-bin/koha/opac-user.pl">Log In</a> to Koha</p>
53 <!-- /TMPL_IF --></head>
54 <div id="mainbloc">
55 <h1 class="catalogue" >KOHA : INTRANET : Catalogue </h1>
56 <!--TMPL_IF Name = "Search"-->
57         <div id="bloc25">
58         <h2 class="catalogue" > Search On  </h2>
59         <form name="f" method="post" action="/cgi-bin/koha/plugin_launcher.pl?plugin_name=unimarc_field_4XX.pl">
60
61                 <p>
62                         <input type="hidden" name="plugin_name" value="unimarc_field_4XX.pl">
63                         <input type="hidden" name="index" value="<!--TMPL_VAR Name="index" -->">
64                         <input type="hidden" name="result" value="unimarc field 4 <!--TMPL_VAR Name="index" -->">
65                         <input type="hidden" name="plugin_name" value="unimarc_field_4XX.pl">
66                         <input type="hidden" name="op" value="do_search">
67                         <label class="label100" for="keyword">Any word</label>
68                         <input type="hidden" name="marclist" value="">
69                         <input type="hidden" name="and_or" value="and">
70                         <input type="hidden" name="excluding" value="">
71                         <input type="hidden" name="operator" value="contains">
72                         <input type="text" name="value" id="keyword" onchange="sql_update()" size="35">
73                 </p>
74                 <p>
75                         <label class="label100" for="title">Title</label>
76                         <input type="hidden" name="marclist" value="biblio.title">
77                         <input type="hidden" name="and_or" value="and">
78                         <input type="hidden" name="excluding" value="">
79                         <input type="hidden" name="operator" value="contains">
80                         <input type="text" name="value" id="title" onchange="sql_update()" size="35">
81                 </p>
82                 <p>
83                         <label class="label100" for="author">Author</label> <input type="hidden" name="marclist" value="biblio.author">
84                         <input type="hidden" name="and_or" value="and">
85                         <input type="hidden" name="excluding" value="">
86                         <input type="hidden" name="operator" value="contains">
87                         <input type="text" name="value" id="author" onchange="sql_update()" size="35">
88                 </p>
89                 <p>
90                         <label class="label100" for="itemtype">Item Type</label>
91                         <input type="hidden" name="marclist" value="biblioitems.itemtype">
92                         <input type="hidden" name="and_or" value="and">
93                         <input type="hidden" name="excluding" value="">
94                         <input type="hidden" name="operator" value="=">
95                         <!-- TMPL_VAR name="CGIitemtype" -->
96                 </p>
97                 <p>
98                                 <label class="label100" for="branch">Branch</label>
99                                 <input type="hidden" name="marclist" value="items.holdingbranch">
100                                 <input type="hidden" name="and_or" value="and">
101                                 <input type="hidden" name="excluding" value="">
102                                 <input type="hidden" name="operator" value="=">  
103                                 <!-- TMPL_VAR name="CGIbranch" -->
104                 </p>
105                 <h2 class="catalogue">Other options</h2>
106                 <p>
107                         <label class="label100" for="callno">Call Number</label>
108                         <input type="hidden" name="marclist" value="items.itemcallnumber">
109                         <input type="hidden" name="and_or" value="and">
110                         <input type="hidden" name="excluding" value="">
111                         <input type="hidden" name="operator" value="start">
112                         <input type="text" name="value" id="callno" onchange="sql_update()">
113                 </p>
114                 <p>
115                         <label class="label100" for="isbn">ISBN</label>
116                         <input type="hidden" name="marclist" value="biblioitems.isbn">
117                         <input type="hidden" name="and_or" value="and">
118                         <input type="hidden" name="excluding" value="">
119                         <input type="hidden" name="operator" value="=">
120                         <input type="text" name="value" id="isbn" onchange="sql_update()">
121                 </p>
122                 <p>
123                         <label class="label100" for="publisher">Publisher</label>
124                         <input type="hidden" name="marclist" value="biblioitems.publishercode">
125                         <input type="hidden" name="and_or" value="and">
126                         <input type="hidden" name="excluding" value="">
127                         <input type="hidden" name="operator" value="contains">
128                         <input type="text" name="value" id="publisher" onchange="sql_update()">
129
130                 </p>
131         </div>
132         <div class="bloc25">
133                 <p><textarea name="sql" rows="3" cols="70" disabled readonly></textarea></p>
134                 <p>Results per page :
135                         <select name="resultsperpage" size="1">
136                                 <option value="20">20</option>
137                                 <option value="50">50</option>
138                                 <option value="100">100</option>
139                         </select>
140                 Ordered by
141                         <select name="orderby" size="1">
142                                 <option value="biblio.title">Title</option>
143                                 <option value="biblio.author">Author</option>
144                                 <option value="biblioitems.dewey">Dewey</option>
145                                 <option value="biblioitems.publicationyear">Publication Year</option>
146                                 <option value="biblioitems.publishercode">Publisher</option>
147                         </select>
148                 <p>
149                 <p>
150                         <input type="submit" value="Start search" class="button catalogue">
151                         <input type="reset"  value="Clear All Fields" class="button catalogue">
152                 </p>
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                 </script>
169         </div>
170 </form>
171
172 <!--TMPL_ELSE-->
173         <h2 class="catalogue">Search results</h2>
174         <div id="resultnumber">
175                 <p><!-- TMPL_IF NAME="displayprev" --> <a class="resultnumber" href="/cgi-bin/koha/plugin_launcher.pl?plugin_name=unimarc_field_4XX.pl&amp;index=<!--TMPL_VAR Name="index"-->&amp;startfrom=<!-- TMPL_VAR NAME="startfromprev" -->&amp;<!-- TMPL_LOOP NAME="searchdata" --><!-- TMPL_VAR NAME="term" -->=<!-- TMPL_VAR NAME="val" ESCAPE=URL -->&amp;<!-- /TMPL_LOOP -->resultsperpage=<!-- TMPL_VAR NAME="resultsperpage" -->&amp;type=intranet&amp;op=do_search">&lt;&lt;Previous</a><!-- /TMPL_IF -->
176                         <!-- TMPL_LOOP NAME="numbers" --><!-- TMPL_IF NAME="highlight" --> <span class="highlight"><!-- TMPL_VAR NAME="number" --></span><!-- TMPL_ELSE --> <a class="resultnumber" href="/cgi-bin/koha/plugin_launcher.pl?plugin_name=unimarc_field_4XX.pl&amp;index=<!--TMPL_VAR Name="index"-->&amp;startfrom=<!-- TMPL_VAR NAME="startfrom" -->&amp;<!-- TMPL_LOOP NAME="searchdata" --><!-- TMPL_VAR NAME="term" -->=<!-- TMPL_VAR NAME="val" ESCAPE=URL -->&amp;<!-- /TMPL_LOOP -->resultsperpage=<!-- TMPL_VAR NAME="resultsperpage" -->&amp;type=intranet&amp;op=do_search"><!-- TMPL_VAR NAME="number" --></a><!-- /TMPL_IF --><!-- /TMPL_LOOP --> <!-- TMPL_IF NAME="displaynext" --><a class="resultnumber" href="/cgi-bin/koha/plugin_launcher.pl?plugin_name=unimarc_field_4XX.pl&amp;index=<!--TMPL_VAR Name="index"-->&amp;startfrom=<!-- TMPL_VAR NAME="startfromnext" -->&amp;<!-- TMPL_LOOP NAME="searchdata" --><!-- TMPL_VAR NAME="term" -->=<!-- TMPL_VAR NAME="val" ESCAPE=URL -->&amp;<!-- /TMPL_LOOP -->&amp;resultsperpage=<!-- TMPL_VAR NAME="resultsperpage" -->&amp;type=intranet&amp;op=do_search">Next&gt;&gt;</a><!-- /TMPL_IF --></p>
177                 <p class="resultcount"><!-- TMPL_IF NAME="total" -->Results <!-- TMPL_VAR NAME="from" --> to <!-- TMPL_VAR NAME="to" --> of <!-- TMPL_VAR NAME="total" --><!-- TMPL_ELSE -->No results found.<!-- /TMPL_IF --></p></div>
178         <div id="resultlist">
179                 <table>
180                         <tr>
181                                 <th class="catalogue">Summary</th>
182                                 <th class="catalogue">Item Count</th>
183                                 <th class="catalogue">Location</th>
184                                 <th class="catalogue">&nbsp;</th>
185                         </tr>
186                         <!-- TMPL_LOOP NAME="result" -->
187                         <tr>
188                                 <td<!-- TMPL_IF NAME="even" --> class="hilighted"<!-- /TMPL_IF -->>
189                                                         <!-- TMPL_IF name="MARC_ON" -->
190                                                                 <a class="transparent resultlist" href="/cgi-bin/koha/MARCdetail.pl?bib=<!-- TMPL_VAR NAME="biblionumber" ESCAPE="URL" -->"><!-- TMPL_VAR NAME="title" --></a>
191                                                         <!-- TMPL_ELSE -->
192                                                                 <a class="transparent resultlist" href="/cgi-bin/koha/detail.pl?bib=<!-- TMPL_VAR NAME="biblionumber" ESCAPE="URL" -->"><!-- TMPL_VAR NAME="title" --></a>                              <!-- /TMPL_IF -->
193                                                 <p><!-- TMPL_VAR NAME="author" -->
194                                                 <!-- TMPL_IF NAME="publishercode" -->- <!-- TMPL_VAR NAME="publishercode" --><!-- /TMPL_IF -->
195                                                 <!-- TMPL_IF NAME="place" --> ; <!-- TMPL_VAR NAME="place" --><!-- /TMPL_IF -->
196                                                 <!-- TMPL_IF NAME="pages" --> - <!-- TMPL_VAR NAME="pages" --><!-- /TMPL_IF -->
197                                                 <!-- TMPL_IF NAME="notes" --> : <!-- TMPL_VAR NAME="notes" --><!-- /TMPL_IF -->
198                                                 <!-- TMPL_IF NAME="size" --> ; <!-- TMPL_VAR NAME="size" --><!-- /TMPL_IF -->
199                                         </p>
200                                 </td>
201                                 <td align="center" <!-- TMPL_IF NAME="even" --> class="hilighted"<!-- /TMPL_IF -->>
202                                         <!-- TMPL_VAR NAME="totitem" -->
203                                 </td>
204                                 <td <!-- TMPL_IF NAME="even" -->class="hilighted"<!-- /TMPL_IF -->>
205                                         <!-- TMPL_LOOP NAME="CN" -->
206                                                 <p>
207                                                         <!-- TMPL_VAR NAME="holdingbranch" -->
208                                                         <!-- TMPL_IF name="date_due" -->
209                                                                 On Loan until <!-- TMPL_VAR NAME="date_due" -->
210                                                         <!-- TMPL_ELSE -->
211                                                                 <!-- TMPL_IF NAME="itemcallnumber" -->
212                                                                         (<!-- TMPL_VAR NAME="itemcallnumber" -->)
213                                                                 <!-- /TMPL_IF -->
214                                                         <!-- /TMPL_IF -->
215                                                         <!-- TMPL_IF name="notforloan" -->
216                                                                 <i>(<!-- TMPL_VAR name="notforloan" -->)</i>
217                                                         <!-- /TMPL_IF -->
218                                                 </p>
219                                         <!-- /TMPL_LOOP -->
220                                         <!-- TMPL_IF name="onorder" --><p>On order</p><!-- /TMPL_IF -->
221                                 </td>
222                                 <td>
223                                         <a href="javascript:newwin"><img src="<!-- TMPL_VAR NAME="interface" -->/<!-- TMPL_VAR NAME="theme" -->/images/arrow.gif" width="32" hspace="0" vspace="0" border="0"></a>
224                                 </td>
225
226                         </tr>
227                         <!-- /TMPL_LOOP -->
228                 </table>
229         </div>
230         <div id="resultnumber">
231                 <p><!-- TMPL_IF NAME="displayprev" --> <a class="resultnumber" href="/cgi-bin/koha/plugin_launcher.pl?plugin_name=unimarc_field_4XX.pl&amp;index=<!--TMPL_VAR Name="index"-->&amp;startfrom=<!-- TMPL_VAR NAME="startfromprev" -->&amp;<!-- TMPL_LOOP NAME="searchdata" --><!-- TMPL_VAR NAME="term" -->=<!-- TMPL_VAR NAME="val" ESCAPE=URL -->&amp;<!-- /TMPL_LOOP -->resultsperpage=<!-- TMPL_VAR NAME="resultsperpage" -->&amp;type=intranet&amp;op=do_search">&lt;&lt;Previous</a><!-- /TMPL_IF -->
232                         <!-- TMPL_LOOP NAME="numbers" --><!-- TMPL_IF NAME="highlight" --> <span class="highlight"><!-- TMPL_VAR NAME="number" --></span><!-- TMPL_ELSE --> <a class="resultnumber" href="/cgi-bin/koha/plugin_launcher.pl?plugin_name=unimarc_field_4XX.pl&amp;index=<!--TMPL_VAR Name="index"-->&amp;startfrom=<!-- TMPL_VAR NAME="startfrom" -->&amp;<!-- TMPL_LOOP NAME="searchdata" --><!-- TMPL_VAR NAME="term" -->=<!-- TMPL_VAR NAME="val" ESCAPE=URL -->&amp;<!-- /TMPL_LOOP -->resultsperpage=<!-- TMPL_VAR NAME="resultsperpage" -->&amp;type=intranet&amp;op=do_search"><!-- TMPL_VAR NAME="number" --></a><!-- /TMPL_IF --><!-- /TMPL_LOOP --> <!-- TMPL_IF NAME="displaynext" --><a class="resultnumber" href="/cgi-bin/koha/plugin_launcher.pl?plugin_name=unimarc_field_4XX.pl&amp;index=<!--TMPL_VAR Name="index"-->&amp;startfrom=<!-- TMPL_VAR NAME="startfromnext" -->&amp;<!-- TMPL_LOOP NAME="searchdata" --><!-- TMPL_VAR NAME="term" -->=<!-- TMPL_VAR NAME="val" ESCAPE=URL -->&amp;<!-- /TMPL_LOOP -->&amp;resultsperpage=<!-- TMPL_VAR NAME="resultsperpage" -->&amp;type=intranet&amp;op=do_search">Next&gt;&gt;</a><!-- /TMPL_IF --></p>
233         </div>
234
235 <script language="JavaScript" type="text/javascript">
236
237 function jumpfull(page)
238 {       
239         window.open(page,'','fullscreen,scrollbars');
240 }
241 </script>
242
243 <!--/TMPL_IF-->
244 </div>
245 </body>
246 </html>