koha-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Koha-cvs] CVS: koha/koha-tmpl/intranet-tmpl/default/en/value_builder la


From: Henri-Damien LAURENT
Subject: [Koha-cvs] CVS: koha/koha-tmpl/intranet-tmpl/default/en/value_builder labs_theses.tmpl,NONE,1.1.2.1
Date: Fri, 30 Sep 2005 06:01:23 -0700

Update of /cvsroot/koha/koha/koha-tmpl/intranet-tmpl/default/en/value_builder
In directory 
sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9314/koha-tmpl/intranet-tmpl/default/en/value_builder

Added Files:
      Tag: rel_2_2
        labs_theses.tmpl 
Log Message:
Adding a plugin to select multiple authorised_values.
Beware, It works only for one authorised_value category at the moment but would 
be easy to change to support any category if add_biblio.pl would be change to 
take plugin before authorised values into account.


--- NEW FILE ---
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>KOHA: Labs Thesis Selection plugin</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

<script language="JavaScript" type="text/javascript">
<!-- Hide from old browsers
function openWindow(targeturl, windowname) {
        newwin =
window.open(targeturl,windowname,"height=480,width=640,scrollbars,resizable")
}
function Help() {
        newin=window.open("/cgi-bin/koha/help.pl","Koha 
Help",'width=600,height=600,toolbar=false,scrollbars=yes');
}
// end hiding -->
</script>

<link rel="stylesheet" type="text/css" 
href="/intranet-tmpl/default/en/includes/common-style.css">
<style type="text/css">
.catalogue {
        background-color:#ad11ad;
        color:#FFFFFF;
        background-image:none;
        text-decoration: normal;
        }
a.catalogue:hover {
        background-color: #ad11ad;
        color: #FFFFFF;
        text-decoration: none;
        }
</style>
</head>

<body>
<div id="mainbloc">
        <h1 class="catalogue">Laboratory Search</h1>
        
        <form name="f" method="post" action="/cgi-bin/koha/plugin_launcher.pl">
                <div class="bloc25">
                        <h2 class="catalogue">Search on</h2>
                        <p>
                                <input type="hidden" name="plugin_name" 
value="labs_theses.pl">
                                <input type="hidden" name="index" 
value="<!--TMPL_VAR Name="index" -->">
                                <input type="hidden" name="result" 
value="unimarc field 328 <!--TMPL_VAR Name="index" -->">
                                <input type="hidden" name="op" 
value="do_search">
                                <input type="hidden" name="cat_auth" 
value="<!--TMPL_VAR Name="cat_auth" -->" >
                                <input type="text" name="search" value="<!-- 
TMPL_VAR Name="search" -->" size="35">
                                
                                <input type="submit" value="Start search" 
class="button catalogue">
                        </p>
                </div>
        </form>

<!-- TMPL_IF Name="resultlist" -->
        <div class="bloc25">
        <h2 class="catalogue">Laboratory Search results</h2>
                <div id="resultnumber">
                        <p class="resultcount">
                        <!-- TMPL_IF NAME="total" -->
                                        Results <!-- TMPL_VAR NAME="from" --> 
to <!-- TMPL_VAR NAME="to" --> of <!-- TMPL_VAR NAME="total" --><!-- TMPL_ELSE 
-->No results found.
                        <!-- /TMPL_IF -->
                        </p>
                </div>
                <div id="resultlist">
                        <table>
                                <tr>
                                        <th class="catalogue">Laboratory</th>
                                        <th class="catalogue">Select</th>
                                </tr>
                                <!-- TMPL_LOOP NAME="catresult" -->
                                        <!-- TMPL_IF NAME="even" -->
                                        <tr class="hilighted">
                                        <!-- TMPL_ELSE -->
                                        <tr>
                                        <!-- /TMPL_IF -->
                                                <td>
                                                <!-- TMPL_VAR NAME="lib" -->
                                                </td>
                                                <td>
                                                        <a  
href="javascript:SelectEntry('<!-- TMPL_VAR NAME="libjs" ESCAPE="URL" 
-->','<!-- TMPL_VAR NAME="auth_value" ESCAPE="URL" -->',<!-- TMPL_VAR 
NAME="index" ESCAPE="URL"  -->,0)" class="button catalogue">Select</a>
                                                        <a  
href="javascript:SelectEntry('<!-- TMPL_VAR NAME="libjs" ESCAPE="URL" 
-->','<!-- TMPL_VAR NAME="auth_value" ESCAPE="URL" -->',<!-- TMPL_VAR 
NAME="index" ESCAPE="URL"  -->,1)" class="button catalogue">Sel&amp;close</a>
                                                </td>
                                        </tr>
                                <!-- /TMPL_LOOP -->
                        </table>
                </div>
                <div id="resultnumber">
                        <p><!-- TMPL_IF NAME="displayprev" --> 
                                        <a class="resultnumber" 
href="/cgi-bin/koha/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>
                                <!-- /TMPL_IF -->
                                <!-- TMPL_LOOP NAME="numbers" -->
                                        <!-- TMPL_IF NAME="highlight" -->
                                                <span class="highlight"><!-- 
TMPL_VAR NAME="number" --></span>
                                        <!-- TMPL_ELSE --> 
                                                <a class="resultnumber" 
href="/cgi-bin/koha/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>
                                        <!-- /TMPL_IF -->
                                <!-- /TMPL_LOOP --> 
                                <!-- TMPL_IF NAME="displaynext" -->
                                        <a class="resultnumber" 
href="/cgi-bin/koha/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>
                                <!-- /TMPL_IF -->
                        </p>
                        <p class="resultcount">
                        <!-- TMPL_IF NAME="total" -->
                                        Results <!-- TMPL_VAR NAME="from" --> 
to <!-- TMPL_VAR NAME="to" --> of <!-- TMPL_VAR NAME="total" --><!-- TMPL_ELSE 
-->No results found.
                        <!-- /TMPL_IF -->
                        </p>
                </div>
        <script language="JavaScript" type="text/javascript">
        function SelectEntry(myentry, mycode, myindex, wclose){
                if (opener.document.f.field_value[myindex].value!=""){ 
                        
opener.document.f.field_value[myindex].value=opener.document.f.field_value[myindex].value+"|"+myentry
                } else {
                        opener.document.f.field_value[myindex].value=myentry
                }
                if (wclose == 1) {
        //      alert("closing")
                        self.close();
                }
        }
        </script>
        </div>
<!-- /TMPL_IF -->
</div>
</body>
</html>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]