(bug #2853) fix an error in returned string
[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 <div id="mainbloc">
5 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6     <h1 class="authority">Authority search results</h1>
7     <div id="bloc25">
8         <form name="f" method="post" action="plugin_launcher.pl">
9             <input type="hidden" name="plugin_name" value="unimarc_field_210c.pl">
10             <input type="hidden" name="op" value="do_search">
11             <input type="hidden" name="type" value="intranet">
12             <input type="hidden" name="nbstatements" value="<!-- TMPL_VAR NAME="nbstatements" -->">
13             <div id="bloc25">
14                 <h2 class="authority">Search on</h2>
15                 <p>
16                     <label class="label100">Authority type</label>
17                     EDITORS
18                 </p>
19                 <p>
20                     <label class="label100">Search value</label><input type="text" name="value" value="<!-- TMPL_VAR name="resultstring" -->">
21                     <input type="hidden" name="index" value="<!--TMPL_VAR Name="index"-->">
22                     <input type="hidden" name="authtypecode" value="EDITORS">
23                     <input type="hidden" name="q" value="<!-- TMPL_VAR NAME="index" -->">
24                 </p>
25                 <p>
26                 <input type="submit" value="Start search" class="button authority">
27                 </p>
28             </div>
29         </form>
30     </div>
31     <div id="bloc25">
32         <div id="resultnumber">
33             <div class="paginationBar">
34               <!--TMPL_VAR Name="pagination_bar"-->      
35             </div>
36             <p>
37                 <!-- TMPL_IF name="total" -->
38                     &nbsp;<b>Results <!-- TMPL_VAR NAME="from" --> to <!-- TMPL_VAR NAME="to" --> of <!-- TMPL_VAR NAME="total" --></b><br><br>
39                 <!-- TMPL_ELSE -->
40                     &nbsp; No results found<br>
41                 <!-- /TMPL_IF -->
42             </p>
43         </div>
44         <div id="resultlist">
45             <table>
46                 <tr>
47                     <th class="authority">Summary</th>
48                     <th class="authority">Used</th>
49                     <th class="authority">Get It!</th>
50                 </tr>
51                 <!-- TMPL_LOOP NAME="result" -->
52                     <tr>
53                         <td><!-- TMPL_VAR NAME="summary" --></td>
54                         <td><!-- TMPL_VAR NAME="used" --> times</td>
55                         <td>
56                             <a href="javascript:report('<!-- TMPL_VAR NAME="index" -->','<!-- TMPL_VAR name="summary" 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>
57                         </td>
58                     </tr>
59                 <!-- /TMPL_LOOP -->
60             </table>
61     
62         </div>
63         <div id="resultnumber">
64             <div class="paginationBar">
65               <!--TMPL_VAR Name="pagination_bar"-->      
66             </div>
67         </div>
68     </div>
69 </div>
70
71 <script language="JavaScript" type="text/javascript">
72
73 function report(index,summary)
74 {    
75     var regexp= /(\d* -+ *)(.*)/;
76     var result=summary.match(regexp);
77     var doc   = opener.document; 
78     var field = doc.getElementById(index);
79
80     field.value = result[2];
81     self.close();
82 }
83 </script>
84 <!-- TMPL_INCLUDE NAME="popup-bottom.inc" -->