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