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/npl/en/search.marc dictiona


From: Owen Leonard
Subject: [Koha-cvs] CVS: koha/koha-tmpl/intranet-tmpl/npl/en/search.marc dictionary.tmpl,NONE,1.1.2.1 search.tmpl,1.6.2.4,1.6.2.5
Date: Thu, 09 Jun 2005 09:19:21 -0700

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

Modified Files:
      Tag: rel_2_2
        search.tmpl 
Added Files:
      Tag: rel_2_2
        dictionary.tmpl 
Log Message:
Adding authority search functionality to intranet advanced search page, to 
synch with default template

--- NEW FILE ---
<!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->Koha -- Dictionary Search<!-- 
TMPL_INCLUDE NAME="doc-head-close.inc" -->
<!-- TMPL_INCLUDE NAME="masthead.inc" -->
<div id="main-compact">
        <h1>Dictionary Search</h1>
        <div class="form"><form name="f" method="post" 
action="/cgi-bin/koha/search.marc/dictionary.pl">
        <input type="hidden" name="op" value="do_search" />
                                <label for="keyword">Search for keyword(s): 
</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="submit" />
                                <input type="hidden" name="type" value="<!-- 
TMPL_VAR Name="type" -->" />
                                <input type="hidden" name="index" value="<!-- 
TMPL_VAR Name="anindex" ESCAPE="URL" -->" /></form></div>

<!-- TMPL_IF Name=search -->
        <!-- TMPL_IF NAME="authresult" -->
                <div id="pages">
                        <!-- TMPL_IF NAME="displayprev" --> 
                                        <a class="pages" 
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="current"><!-- 
TMPL_VAR NAME="number" --></span>
                                        <!-- TMPL_ELSE --> 
                                                <a class="pages" 
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="pages" 
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 -->
                        </div>
                        <div id="results">
                        <!-- TMPL_IF NAME="nbresults" -->
                                        Results <!-- TMPL_VAR NAME="from" --> 
to <!-- TMPL_VAR NAME="to" --> of <!-- TMPL_VAR NAME="nbresults" --> in 
Authorities<!-- TMPL_ELSE -->No results found.
                        <!-- /TMPL_IF -->
                        </div>
                
                <div id="resultlist">
                        <table>
                                <caption>Authority Results</caption>
                                <tr>
                                        <th>Summary</th>
                                        <th>Used in</th>
                                        <th>Select</th>
                                </tr>
                                <!-- TMPL_LOOP NAME="authresult" -->
                                        <!-- TMPL_IF NAME="even" --><tr 
class="hilighted"><!-- TMPL_ELSE --><tr><!-- /TMPL_IF -->
                                        <td>
                                                        <!-- TMPL_VAR 
NAME="summary" -->
                                                </td>
                                                <td>
                                                        <!-- TMPL_VAR 
NAME="used" --> records(s)
                                                </td>
                                                        <td>
                                                        <a  
href="javascript:SelectEntry('<!-- TMPL_VAR NAME="mainentry" ESCAPE="URL" 
-->',<!-- TMPL_VAR NAME="anindex" ESCAPE="URL"  -->,0)">Select</a> | 
                                                        <a  
href="javascript:SelectEntry('<!-- TMPL_VAR NAME="mainentry" ESCAPE="URL" 
-->',<!-- TMPL_VAR NAME="anindex" ESCAPE="URL"  -->,1)">Sel. &amp; close</a>
                                                </td>
                                        </tr>
                                <!-- /TMPL_LOOP -->
                        </table>
                </div>
                <!-- TMPL_ELSE -->
                        <h3>No results in Authorities</h3>
        <!-- /TMPL_IF -->
                
                
        <!-- TMPL_IF Name="catresult" -->
        <h2>Catalog Results</h2>
                        <div id="results">
                        <!-- TMPL_IF NAME="total" -->
                                        Results <!-- TMPL_VAR NAME="from" --> 
to <!-- TMPL_VAR NAME="to" --> of <!-- TMPL_VAR NAME="total" --> in the 
Catalog<!-- TMPL_ELSE -->No results found.
                        <!-- /TMPL_IF -->
                </div>
                        <table>
                                <tr>
                                        <th>Summary</th>
                                        <th>Used in</th>
                                        <th>Select</th>
                                </tr>
                                <!-- TMPL_LOOP NAME="catresult" -->
                                <!-- TMPL_IF NAME="even" --><tr 
class="highlight"><!-- TMPL_ELSE --><tr><!-- /TMPL_IF -->
                                <td>
                                        <!-- TMPL_IF name="MARC_ON" -->
                                                                        <!-- 
TMPL_VAR NAME="value" -->
                                                                <!-- TMPL_ELSE 
-->
                                                                        <!-- 
TMPL_VAR NAME="value" -->
                                                                <!-- /TMPL_IF 
-->
                                        </td>
                                        <td>
                                                <!-- TMPL_VAR NAME="count" --> 
records(s)
                                        </td>
                                        <td>
                                                        <a  
href="javascript:SelectEntry('<!-- TMPL_VAR NAME="value" ESCAPE="URL" -->',<!-- 
TMPL_VAR NAME="anindex" ESCAPE="URL"  -->,0)">Select</a> | 
                                                        <a  
href="javascript:SelectEntry('<!-- TMPL_VAR NAME="value" ESCAPE="URL" -->',<!-- 
TMPL_VAR NAME="anindex" ESCAPE="URL"  -->,1)">Sel. &amp; close</a>
                                        </td>
                                </tr>
                                <!-- /TMPL_LOOP -->
                        </table>
                <div id="pages">
                        <!-- TMPL_IF NAME="displayprev" --> 
                                        <a class="pages" 
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="current"><!-- 
TMPL_VAR NAME="number" --></span>
                                        <!-- TMPL_ELSE --> 
                                                <a class="pages" 
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="pages" 
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 -->
</div>
                        <div id="results">
                        <!-- TMPL_IF NAME="total" -->
                                        Results <!-- TMPL_VAR NAME="from" --> 
to <!-- TMPL_VAR NAME="to" --> of <!-- TMPL_VAR NAME="total" --> in the 
Catalog<!-- TMPL_ELSE -->No results found.
                        <!-- /TMPL_IF -->
                        </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/npl/en/search.marc/search.tmpl,v
retrieving revision 1.6.2.4
retrieving revision 1.6.2.5
diff -C2 -r1.6.2.4 -r1.6.2.5
*** search.tmpl 19 Apr 2005 19:31:16 -0000      1.6.2.4
--- search.tmpl 9 Jun 2005 16:19:19 -0000       1.6.2.5
***************
*** 28,32 ****
                        <input type="hidden" name="excluding" value="" />
                        <input type="hidden" name="operator" value="contains" />
!                       <input type="text" id="title" name="value" 
onchange="sql_update()" size="35" accesskey="t" /></td>
                </tr>
                <tr>
--- 28,34 ----
                        <input type="hidden" name="excluding" value="" />
                        <input type="hidden" name="operator" value="contains" />
!                       <input type="text" id="title" name="value" 
onchange="sql_update()" size="35" accesskey="t" />                   <a 
href="javascript:Dopop('dictionary.pl?marclist=biblio.title&amp;type=intranet&amp;index=1',1)"
 class="button catalogue">
!                               <strong>...</strong>
!                       </a></td>
                </tr>
                <tr>
***************
*** 36,40 ****
                        <input type="hidden" name="excluding" value="" />
                        <input type="hidden" name="operator" value="contains" />
!                       <input type="text" id="author" name="value" 
onchange="sql_update()" size="35" accesskey="a" /></td>
                </tr>
                <tr>
--- 38,44 ----
                        <input type="hidden" name="excluding" value="" />
                        <input type="hidden" name="operator" value="contains" />
!                       <input type="text" id="author" name="value" 
onchange="sql_update()" size="35" accesskey="a" />                  <a 
href="javascript:Dopop('dictionary.pl?marclist=biblio.author&amp;type=intranet&amp;index=2',2)"
 class="button catalogue">
!                               <strong>...</strong>
!                       </a></td>
                </tr>
                <tr>
***************
*** 44,48 ****
                        <input type="hidden" name="excluding" value="" />
                        <input type="hidden" name="operator" value="contains" 
/>  
!                       <input type="text" id="subject" name="value" 
onchange="sql_update()" size="35" accesskey="s" /></td>
                </tr>
  <tr><th><label for="seriestitle">Series title</label></th><td>                
        
--- 48,54 ----
                        <input type="hidden" name="excluding" value="" />
                        <input type="hidden" name="operator" value="contains" 
/>  
!                       <input type="text" id="subject" name="value" 
onchange="sql_update()" size="35" accesskey="s" />                 <a 
href="javascript:Dopop('dictionary.pl?marclist=bibliosubject.subject&amp;type=intranet&amp;index=3',3)"
 class="button catalogue">
!                               <strong>...</strong>
!                       </a></td>
                </tr>
  <tr><th><label for="seriestitle">Series title</label></th><td>                
        
***************
*** 189,192 ****
--- 195,203 ----
  }
  
+ function Dopop(link,i) {
+       var searchstring=document.forms[4].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]