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