Merge remote branch 'kc/master'
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / cataloguing / value_builder / labs_theses.tmpl
1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
2 <title>KOHA:_Labs Thesis Selection plugin</title>
3 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
4 <script type="text/javascript">
5 //<![CDATA[
6 function openWindow(targeturl, windowname) {
7         newwin =
8 window.open(targeturl,windowname,"height=480,width=640,scrollbars,resizable")
9 }
10 function Help() {
11         newin=window.open("/cgi-bin/koha/help.pl","KohaHelp",'width=600,height=600,toolbar=false,scrollbars=yes');
12 }
13 //]]>
14 </script>
15
16 <link rel="stylesheet" type="text/css" href="/intranet-tmpl/default/en/includes/common-style.css" />
17 <style type="text/css">
18 .catalogue {
19         background-color:#ad11ad;
20         color:#FFFFFF;
21         background-image:none;
22         text-decoration: normal;
23         }
24 a.catalogue:hover {
25         background-color: #ad11ad;
26         color: #FFFFFF;
27         text-decoration: none;
28         }
29 </style>
30 </head>
31
32 <body style="padding:1em;">
33 <div id="mainbloc">
34         <h1>Laboratory Search</h1>
35         
36         <form name="f" method="post" action="/cgi-bin/koha/cataloguing/plugin_launcher.pl">
37                 <div class="bloc25">
38                         <h2>Search on</h2>
39                         <p>
40                                 <input type="hidden" name="plugin_name" value="labs_theses.pl">
41                                 <input type="hidden" name="index" value="<!--TMPL_VAR Name="index" -->">
42                                 <input type="hidden" name="result" value="unimarc field 328 <!--TMPL_VAR Name="index" -->">
43                                 <input type="hidden" name="op" value="do_search">
44                                 <input type="hidden" name="cat_auth" value="<!--TMPL_VAR Name="cat_auth" -->" >
45                                 <input type="text" name="search" value="<!-- TMPL_VAR Name="search" -->" size="35">
46                                 
47                                 <input type="submit" value="Start search" class="button">
48                         </p>
49                 </div>
50         </form>
51
52 <!-- TMPL_IF Name="resultlist" -->
53         <div class="bloc25">
54         <h2>Laboratory Search results</h2>
55                 <div id="resultnumber">
56                         <p class="resultcount">
57                         <!-- TMPL_IF NAME="total" -->
58                                         Results <!-- TMPL_VAR NAME="from" --> to <!-- TMPL_VAR NAME="to" --> of <!-- TMPL_VAR NAME="total" --><!-- TMPL_ELSE -->No results found
59                         <!-- /TMPL_IF -->
60                         </p>
61                 </div>
62                 <div id="resultlist">
63                         <table>
64                                 <tr>
65                                         <th>Laboratory</th>
66                                         <th>Select</th>
67                                 </tr>
68                                 <!-- TMPL_LOOP NAME="catresult" -->
69                                         <!-- TMPL_IF NAME="even" -->
70                                         <tr class="hilighted">
71                                         <!-- TMPL_ELSE -->
72                                         <tr>
73                                         <!-- /TMPL_IF -->
74                                                 <td>
75                                                 <!-- TMPL_VAR NAME="lib" -->
76                                                 </td>
77                                                 <td>
78                                                         <a  href="javascript:SelectEntry('<!-- TMPL_VAR NAME="libjs" ESCAPE="URL" -->','<!-- TMPL_VAR NAME="authjs" ESCAPE="URL" -->',<!-- TMPL_VAR NAME="index" ESCAPE="URL"  -->,0)" class="button">Select</a>
79                                                         <a  href="javascript:SelectEntry('<!-- TMPL_VAR NAME="libjs" ESCAPE="URL" -->','<!-- TMPL_VAR NAME="authjs" ESCAPE="URL" -->',<!-- TMPL_VAR NAME="index" ESCAPE="URL"  -->,1)" class="button">Sel&amp;close</a>
80                                                 </td>
81                                         </tr>
82                                 <!-- /TMPL_LOOP -->
83                         </table>
84                 </div>
85                 <div id="resultnumber">
86                         <p><!-- TMPL_IF NAME="displayprev" --> 
87                                         <a class="resultnumber" href="/cgi-bin/koha/cataloguing/plugin_launcher.pl?plugin_name=labs_theses.pl&amp;startfrom=<!-- TMPL_VAR NAME="startfromprev" -->&amp;cat_auth=<!-- TMPL_VAR NAME="cat_auth" ESCAPE="URL"-->&amp;search=<!-- TMPL_VAR NAME="search" ESCAPE="URL"-->&amp;resultsperpage=<!-- TMPL_VAR NAME="resultsperpage" -->&amp;type=intranet&amp;op=do_search&amp;index=<!-- TMPL_VAR Name="anindex" -->">&lt;&lt; Previous</a>
88                                 <!-- /TMPL_IF -->
89                                 <!-- TMPL_LOOP NAME="numbers" -->
90                                         <!-- TMPL_IF NAME="highlight" -->
91                                                 <span class="highlight"><!-- TMPL_VAR NAME="number" --></span>
92                                         <!-- TMPL_ELSE --> 
93                                                 <a class="resultnumber" href="/cgi-bin/koha/cataloguing/plugin_launcher.pl?plugin_name=labs_theses.pl&amp;startfrom=<!-- TMPL_VAR NAME="startfrom" -->&amp;cat_auth=<!-- TMPL_VAR NAME="cat_auth" ESCAPE="URL"-->&amp;search=<!-- TMPL_VAR NAME="search" ESCAPE="URL" -->&amp;resultsperpage=<!-- TMPL_VAR NAME="resultsperpage" -->&amp;type=intranet&amp;op=do_search&amp;index=<!-- TMPL_VAR Name="anindex" -->"><!-- TMPL_VAR NAME="number" --></a>
94                                         <!-- /TMPL_IF -->
95                                 <!-- /TMPL_LOOP --> 
96                                 <!-- TMPL_IF NAME="displaynext" -->
97                                         <a class="resultnumber" href="/cgi-bin/koha/cataloguing/plugin_launcher.pl?plugin_name=labs_theses.pl&amp;startfrom=<!-- TMPL_VAR NAME="startfromnext" -->&amp;cat_auth=<!-- TMPL_VAR NAME="cat_auth" ESCAPE="URL"-->&amp;search=<!-- TMPL_VAR NAME="search" -->&amp;resultsperpage=<!-- TMPL_VAR NAME="resultsperpage" -->&amp;type=intranet&amp;op=do_search&amp;index=<!-- TMPL_VAR Name="anindex" -->">Next&gt;&gt;</a>
98                                 <!-- /TMPL_IF -->
99                         </p>
100                         <p class="resultcount">
101                         <!-- TMPL_IF NAME="total" -->
102                                         Results <!-- TMPL_VAR NAME="from" --> to <!-- TMPL_VAR NAME="to" --> of <!-- TMPL_VAR NAME="total" --><!-- TMPL_ELSE -->No results found
103                         <!-- /TMPL_IF -->
104                         </p>
105                 </div>
106         <script language="JavaScript" type="text/javascript">
107         function SelectEntry(myentry, mycode, myindex, wclose){
108                 if (opener.document.f.field_value[myindex].value!=""){ 
109                         opener.document.f.field_value[myindex].value=opener.document.f.field_value[myindex].value+"|"+myentry
110                 } else {
111                         opener.document.f.field_value[myindex].value=myentry
112                 }
113                 if (wclose == 1) {
114         //      alert("closing")
115                         self.close();
116                 }
117         }
118         </script>
119         </div>
120 <!-- /TMPL_IF -->
121 </div>
122 <!-- TMPL_INCLUDE NAME="popup-bottom.inc" -->