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/search.marc dict


From: Paul POULAIN
Subject: [Koha-cvs] CVS: koha/koha-tmpl/intranet-tmpl/default/en/search.marc dictionary.tmpl,NONE,1.5.2.2 search.tmpl,1.21.2.1,1.21.2.2
Date: Tue, 07 Jun 2005 03:02:03 -0700

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

Modified Files:
      Tag: rel_2_2
        search.tmpl 
Added Files:
      Tag: rel_2_2
        dictionary.tmpl 
Log Message:
porting dictionnary search from head to 2.2. there is now a ... facing titles, 
author & subject, to search in biblio & authorities existing values.

--- NEW FILE ---
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>KOHA: Dictionary</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">Dictionary Search</h1>
        
        <form name="f" method="post" 
action="/cgi-bin/koha/search.marc/dictionary.pl">
                <div class="bloc25">
                        <h2 class="catalogue">Search on</h2>
                        <p>
                                <input type="hidden" name="op" 
value="do_search">
                                <label class="label100" for="keyword"></label>
                                <input type="hidden" name="marclist" 
value="<!-- TMPL_VAR Name="marclist" -->">
                                <input type="text" name="search" value="<!-- 
TMPL_VAR Name="search" -->" size="35">
                                <input type="submit" value="Start search" 
class="button catalogue">
                                <input type="hidden" name="type" value="<!-- 
TMPL_VAR Name="type" -->">
                                <input type="hidden" name="index" value="<!-- 
TMPL_VAR Name="anindex" ESCAPE="URL" -->">
                        </p>
                </div>
        </form>

<!-- TMPL_IF Name=search -->
        <div class="bloc25">
        <h2 class="catalogue">Dictionary Search results</h2>
        <!-- TMPL_IF NAME="authresult" -->
                <div id="resultnumber">
                        <p><!-- TMPL_IF NAME="displayprev" --> 
                                        <a class="resultnumber" 
href="dictionary.pl?startfrom=<!-- TMPL_VAR NAME="startfromprev" 
-->&amp;marclist=<!-- TMPL_VAR NAME="marclist" 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="dictionary.pl?startfrom=<!-- TMPL_VAR NAME="startfrom" 
-->&amp;marclist=<!-- TMPL_VAR NAME="marclist" 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="dictionary.pl?startfrom=<!-- TMPL_VAR NAME="startfromnext" 
-->&amp;marclist=<!-- TMPL_VAR NAME="marclist" -->&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="nbresults" -->
                                        Results <!-- TMPL_VAR NAME="from" --> 
to <!-- TMPL_VAR NAME="to" --> of <!-- TMPL_VAR NAME="nbresults" --><!-- 
TMPL_ELSE -->No results found.
                        <!-- /TMPL_IF -->
                        </p>
                </div>
                <div id="resultlist">
                        <table>
                                <tr>
                                        <th colspan="3" 
class="catalogue">Authorities</th>
                                </tr>
                                <tr>
                                        <th class="catalogue">Summary</th>
                                        <th class="catalogue">Used in</th>
                                        <th class="catalogue">Select</th>
                                </tr>
                                <!-- TMPL_LOOP NAME="authresult" -->
                                        <tr>
                                                <!-- TMPL_IF NAME="even" -->
                                                        <td class="hilighted">
                                                <!-- TMPL_ELSE -->
                                                        <td>
                                                <!-- /TMPL_IF -->
                                                        <!-- TMPL_VAR 
NAME="summary" -->
                                                </td>
                                                <!-- TMPL_IF NAME="even" -->
                                                        <td class="hilighted">
                                                <!-- TMPL_ELSE -->
                                                        <td>
                                                <!-- /TMPL_IF -->
                                                        <!-- TMPL_VAR 
NAME="used" --> biblio(s)
                                                </td>
                                                <!-- TMPL_IF NAME="even" -->
                                                        <td class="hilighted">
                                                <!-- TMPL_ELSE -->
                                                        <td>
                                                <!-- /TMPL_IF -->
                                                        <a  
href="javascript:SelectEntry('<!-- TMPL_VAR NAME="mainentry" ESCAPE="URL" 
-->',<!-- TMPL_VAR NAME="anindex" ESCAPE="URL"  -->,0)" class="button 
catalogue">select</a>
                                                        <a  
href="javascript:SelectEntry('<!-- TMPL_VAR NAME="mainentry" ESCAPE="URL" 
-->',<!-- TMPL_VAR NAME="anindex" ESCAPE="URL"  -->,1)" class="button 
catalogue">sel&amp;close</a>
                                                </td>
                                        </tr>
                                <!-- /TMPL_LOOP -->
                        </table>
                </div>
                <!-- TMPL_ELSE -->
                        <h3 class="catalogue">No results in Authorities</h3>
        <!-- /TMPL_IF -->
                
                
        <!-- TMPL_IF Name=catresult --> 
                <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">Summary</th>
                                        <th class="catalogue">Used in</th>
                                        <th class="catalogue">Select</th>
                                </tr>
                                <!-- TMPL_LOOP NAME="catresult" -->
                                <tr>
                                        <!-- TMPL_IF NAME="even" -->
                                        <td class="hilighted">
                                        <!-- TMPL_ELSE -->
                                        <td>
                                        <!-- /TMPL_IF -->
                                                                <!-- TMPL_IF 
name="MARC_ON" -->
                                                                        <!-- 
TMPL_VAR NAME="value" -->
                                                                <!-- TMPL_ELSE 
-->
                                                                        <!-- 
TMPL_VAR NAME="value" -->
                                                                <!-- /TMPL_IF 
-->
                                        </td>
                                        <td align="center" <!-- TMPL_IF 
NAME="even" --> class="hilighted"<!-- /TMPL_IF -->>
                                                <!-- TMPL_VAR NAME="count" --> 
biblio(s)
                                        </td>
                                        <td <!-- TMPL_IF NAME="even" 
-->class="hilighted"<!-- /TMPL_IF -->>
                                                        <a  
href="javascript:SelectEntry('<!-- TMPL_VAR NAME="value" ESCAPE="URL" -->',<!-- 
TMPL_VAR NAME="anindex" ESCAPE="URL"  -->,0)" class="button 
catalogue">Select</a>
                                                        <a  
href="javascript:SelectEntry('<!-- TMPL_VAR NAME="value" ESCAPE="URL" -->',<!-- 
TMPL_VAR NAME="anindex" 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="dictionary.pl?startfrom=<!-- TMPL_VAR NAME="startfromprev" 
-->&amp;marclist=<!-- TMPL_VAR NAME="marclist" 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="dictionary.pl?startfrom=<!-- TMPL_VAR NAME="startfrom" 
-->&amp;marclist=<!-- TMPL_VAR NAME="marclist" 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="dictionary.pl?startfrom=<!-- TMPL_VAR NAME="startfromnext" 
-->&amp;marclist=<!-- TMPL_VAR NAME="marclist" -->&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>
        <!-- /TMPL_IF -->
        <script language="JavaScript" type="text/javascript">
        function SelectEntry(myentry, myindex, wclose){
                if (opener.document.f.value[myindex].value!=""){ 
                        
opener.document.f.value[myindex].value=opener.document.f.value[myindex].value+" 
"+myentry
                } else {
                        opener.document.f.value[myindex].value=myentry
                }
                if (wclose == 1) {
        //      alert("closing")
                        self.close();
                }
        }
        </script>
        </div>
<!-- /TMPL_IF -->
</div>
</body>
</html>
Index: search.tmpl
===================================================================
RCS file: 
/cvsroot/koha/koha/koha-tmpl/intranet-tmpl/default/en/search.marc/search.tmpl,v
retrieving revision 1.21.2.1
retrieving revision 1.21.2.2
diff -C2 -r1.21.2.1 -r1.21.2.2
*** search.tmpl 7 Mar 2005 09:49:07 -0000       1.21.2.1
--- search.tmpl 7 Jun 2005 10:02:01 -0000       1.21.2.2
***************
*** 31,34 ****
--- 31,37 ----
                        <input type="hidden" name="operator" value="contains">
                        <input type="text" name="value" id="title" 
onchange="sql_update()" size="35">
+                       <a 
href="javascript:Dopop('dictionary.pl?marclist=biblio.title&amp;type=intranet&amp;index=1',1)"
 class="button catalogue">
+                               ...
+                       </a>
                </p>
                <p>
***************
*** 38,41 ****
--- 41,47 ----
                        <input type="hidden" name="operator" value="contains">
                        <input type="text" name="value" id="author" 
onchange="sql_update()" size="35">
+                       <a 
href="javascript:Dopop('dictionary.pl?marclist=biblio.author&amp;type=intranet&amp;index=2',2)"
 class="button catalogue">
+                               ...
+                       </a>
                </p>
                <p>
***************
*** 46,49 ****
--- 52,58 ----
                        <input type="hidden" name="operator" value="contains">  
                        <input type="text" name="value" id="subject" 
onchange="sql_update()" size="35">
+                       <a 
href="javascript:Dopop('dictionary.pl?marclist=bibliosubject.subject&amp;type=intranet&amp;index=3',3)"
 class="button catalogue">
+                               ...
+                       </a>
                </p>
                <p>
***************
*** 151,155 ****
                <p>
                        <input type="submit" value="Start search" class="button 
catalogue">
!                       <a href="/cgi-bin/koha/search.marc/suggest.pl" 
onclick="PopupSuggestion(); return false;" class="button 
catalogue">Suggestions</a>
                </p>
        </div>
--- 160,164 ----
                <p>
                        <input type="submit" value="Start search" class="button 
catalogue">
!                       <a href="/cgi-bin/koha/search.marc/suggest.pl" 
onclick="PopupSuggestion(); return false;" class="button catalogue">Spelling 
suggestion</a>
                </p>
        </div>
***************
*** 177,180 ****
--- 186,195 ----
  }
  
+ function Dopop(link,i) {
+       var searchstring=document.forms[0].value[i].value;
+       
newin=window.open(link+'&amp;search='+searchstring,"popup",'width=700,height=550,toolbar=false,scrollbars=yes');
+ }
+ 
+ 
  function PopupSuggestion() {
      var strQuery="";




reply via email to

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