MT2502 : Reports Editor's 200$b to biblio's 210$c within unimarc_field_210c plugin
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / cataloguing / value_builder / unimarc_field_210c.tmpl
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3 <html xmlns="http://www.w3.org/1999/xhtml">
4 <head>
5 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6 <title>UNIMARC_Field 125b builder</title>
7 </head>
8 <body>
9
10 <div id="mainbloc">
11     <h1 class="authority">Authority search results</h1>
12     <div>
13         <form name="f" method="post" action="plugin_launcher.pl">
14             <input type="hidden" name="plugin_name" value="unimarc_field_210c.pl" />
15             <input type="hidden" name="op" value="do_search" />
16             <input type="hidden" name="type" value="intranet" />
17             <input type="hidden" name="nbstatements" value="<!-- TMPL_VAR NAME="nbstatements" -->" />
18             <div>
19                 <h2 class="authority">Search on</h2>
20                 <p>
21                     <label class="label100">Authority type</label>
22                     EDITORS
23                 </p>
24                 <p>
25                     <label class="label100">Search value</label><input type="text" name="value" value="<!-- TMPL_VAR name="resultstring" -->" />
26                     <input type="hidden" name="index" value="<!--TMPL_VAR Name="index"-->" />
27                     <input type="hidden" name="authtypecode" value="EDITORS" />
28                     <input type="hidden" name="q" value="<!-- TMPL_VAR NAME="index" -->" />
29                     <input type="hidden" name="marclist" value="all" />
30                     <input type="hidden" name="and_or" value="and" />
31                     <input type="hidden" name="excluding" value="" />
32                                         <select name="orderby">
33                                 <option value="">None</option>
34                                 <option value="HeadingAsc" selected="selected">Heading A-Z</option>
35                                 <option value="HeadingDsc">Heading Z-A</option>
36                                 </select>
37                                         <select name="operator">
38                                     <option value="contains">contains</option>
39                                     <option value="start">starts with</option>
40                                     <option value="is">is exactly</option>
41                                 </select>
42
43                 </p>
44                 <p>
45                 <input type="submit" value="Start search" class="button authority" />
46                 </p>
47             </div>
48         </form>
49     </div>
50     <div>
51         <div>
52             <div class="paginationBar">
53               <!--TMPL_VAR Name="pagination_bar"-->      
54             </div>
55             <p>
56                 <!-- TMPL_IF name="total" -->
57                     &nbsp;<b>Results <!-- TMPL_VAR NAME="from" --> to <!-- TMPL_VAR NAME="to" --> of <!-- TMPL_VAR NAME="total" --></b><br /><br />
58                 <!-- TMPL_ELSE -->
59                     &nbsp; No results found<br />
60                 <!-- /TMPL_IF -->
61             </p>
62         </div>
63         <div id="resultlist">
64             <table>
65                 <tr>
66                     <th class="authority">Summary</th>
67                     <th class="authority">Used</th>
68                     <th class="authority">Get It!</th>
69                 </tr>
70                 <!-- TMPL_LOOP NAME="result" -->
71                     <tr>
72                         <td><!-- TMPL_VAR NAME="summary" --></td>
73                         <td><!-- TMPL_VAR NAME="used" --> times</td>
74                         <td>
75                             <!-- TMPL_IF NAME="to_report" -->
76                             <a href="javascript:report('<!-- TMPL_VAR name="to_report" ESCAPE=JS -->')"><img alt="choose" src="<!-- TMPL_VAR NAME="interface" -->/<!-- TMPL_VAR NAME="theme" -->/images/arrow.gif" width="32" hspace="0" vspace="0" border="0"></a>
77                             <!-- /TMPL_IF -->
78                         </td>
79                     </tr>
80                 <!-- /TMPL_LOOP -->
81             </table>
82     
83         </div>
84         <div>
85             <div class="paginationBar">
86               <!--TMPL_VAR Name="pagination_bar"-->      
87             </div>
88         </div>
89     </div>
90 </div>
91
92 <script language="JavaScript" type="text/javascript">
93
94 function report(summary)
95 {    
96     var doc   = opener.document; 
97     var field = doc.getElementById('<!-- TMPL_VAR NAME="index" -->');
98
99     field.value = summary;
100     self.close();
101 }
102 </script>
103 <!-- TMPL_INCLUDE NAME="popup-bottom.inc" -->