Bug 14321: Integrate Upload.pm into Koha
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / cataloguing / value_builder / unimarc_field_210c.tt
1 [% PROCESS 'authorities-search-results.inc' %]
2 [% INCLUDE 'doc-head-open.inc' %]
3 <title>UNIMARC field 210c builder</title>
4 [% INCLUDE 'doc-head-close.inc' %]
5 </head>
6 <body id="cat_unimarc_field_210c" class="cat" style="padding:1em;">
7 <h3>UNIMARC field 210c builder</h3>
8     <h4>Search for authority type: EDITORS</h4>
9         <form name="f" method="post" action="plugin_launcher.pl">
10         <fieldset class="rows">
11             <input type="hidden" name="plugin_name" value="unimarc_field_210c.pl" />
12             <input type="hidden" name="op" value="do_search" />
13             <input type="hidden" name="type" value="intranet" />
14             <input type="hidden" name="nbstatements" value="[% nbstatements %]" />
15             <input type="hidden" name="index" value="[% index %]" />
16             <input type="hidden" name="authtypecode" value="EDITORS" />
17             <input type="hidden" name="q" value="[% index %]" />
18             <input type="hidden" name="marclist" value="all" />
19             <input type="hidden" name="and_or" value="and" />
20             <input type="hidden" name="excluding" value="" />
21                  <ol>
22                     <li>
23                                         <select name="orderby" id="orderby">
24                                 <option value="">None</option>
25                                 <option value="HeadingAsc" selected="selected">Heading A-Z</option>
26                                 <option value="HeadingDsc">Heading Z-A</option>
27                                 </select>
28                                         <select name="operator" id="operator">
29                                     <option value="contains">contains</option>
30                                     <option value="start">starts with</option>
31                                     <option value="is">is exactly</option>
32                                 </select>
33                     <input type="text" id="value" name="value" value="[% resultstring %]" />
34                     </li>
35                 </ol>
36                 </fieldset>
37                 <fieldset class="action">
38                 <input type="submit" value="Search" />
39                 </fieldset>
40         </form>
41             [% IF ( total ) %]
42             <h3>Authority search results</h3>
43             <div class="pages">
44                           [% pagination_bar %]      
45                         </div>[% END %]
46             <p>
47                 [% IF ( total ) %]
48                     &nbsp;<b>Results [% from %] to [% to %] of [% total %]</b><br /><br />
49                 [% ELSE %]
50                     &nbsp; No results found<br />
51                 [% END %]
52             </p>
53 [% IF ( total ) %]
54         <div id="resultlist">
55             <table>
56                 <tr>
57                     <th>Summary</th>
58                     <th>Used</th>
59                     <th>Get it!</th>
60                 </tr>
61                 [% FOREACH resul IN result %]
62                     <tr>
63                         <td>[% PROCESS authresult summary=resul.summary %]</td>
64                         <td>[% resul.used %] times</td>
65                         <td>
66                 [% IF ( resul.to_report ) %]
67                             <a href="javascript:report('[% resul.to_report |replace("'", "\'") |replace('"', '\"') |replace('\n', '\\n') |replace('\r', '\\r') %]')"><img alt="choose" src="[% interface %]/[% theme %]/images/arrow.gif" width="32" /></a>
68                 [% END %]
69                         </td>
70                     </tr>
71                 [% END %]
72             </table>
73         </div>
74 [% END %]
75
76             [% IF ( total ) %]<div class="pages">
77                           [% pagination_bar %]      
78                         </div>
79             [% END %]
80 <script type="text/javascript">
81 //<![CDATA[
82 function report(summary)
83 {    
84     var doc   = opener.document; 
85     var field = doc.getElementById('[% index %]');
86
87     field.value = summary;
88     self.close();
89 }
90 //]]>
91 </script>
92
93 [% INCLUDE 'popup-bottom.inc' %]