[Koha-cvs] CVS: koha/koha-tmpl/opac-tmpl/npl/en opac-dictionary.tmpl,NONE,1.1.2.1 opac-search.tmpl,1.1.2.6,1.1.2.7
Owen Leonard
oleonard at users.sourceforge.net
Thu Jun 9 20:21:42 CEST 2005
Update of /cvsroot/koha/koha/koha-tmpl/opac-tmpl/npl/en
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27089/koha-tmpl/opac-tmpl/npl/en
Modified Files:
Tag: rel_2_2
opac-search.tmpl
Added Files:
Tag: rel_2_2
opac-dictionary.tmpl
Log Message:
Adding authority search functionality to OPAC advanced search page, to synch with default template
--- NEW FILE ---
<!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->Dictionary Search<!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
<div id="window">
<h1>Dictionary Search</h1>
<div class="content-block"><form name="f" method="post" action="opac-dictionary.pl">
<input type="hidden" name="op" value="do_search" />
<label for="keyword">Keyword(s): </label>
<input type="hidden" name="marclist" value="<!-- TMPL_VAR Name="marclist" -->" />
<input type="text" name="search" value="<!-- TMPL_VAR Name="search" -->" size="20" />
<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 class="pages">
<!-- TMPL_IF NAME="displayprev" -->
<a class="nav" href="opac-dictionary.pl?startfrom=<!-- TMPL_VAR NAME="startfromprev" -->&marclist=<!-- TMPL_VAR NAME="marclist" ESCAPE=URL-->&search=<!-- TMPL_VAR NAME="search" ESCAPE=URL-->&resultsperpage=<!-- TMPL_VAR NAME="resultsperpage" -->&type=intranet&op=do_search&index=<!-- TMPL_VAR Name="anindex" -->"><<Previous</a>
<!-- /TMPL_IF -->
<!-- TMPL_LOOP NAME="numbers" -->
<!-- TMPL_IF NAME="highlight" -->
<span class="current"><!-- TMPL_VAR NAME="number" --></span>
<!-- TMPL_ELSE -->
<a class="nav" href="opac-dictionary.pl?startfrom=<!-- TMPL_VAR NAME="startfrom" -->&marclist=<!-- TMPL_VAR NAME="marclist" ESCAPE=URL -->&search=<!-- TMPL_VAR NAME="search" ESCAPE=URL -->&resultsperpage=<!-- TMPL_VAR NAME="resultsperpage" -->&type=intranet&op=do_search&index=<!-- TMPL_VAR Name="anindex" -->"><!-- TMPL_VAR NAME="number" --></a>
<!-- /TMPL_IF -->
<!-- /TMPL_LOOP -->
<!-- TMPL_IF NAME="displaynext" -->
<a class="nav" href="opac-dictionary.pl?startfrom=<!-- TMPL_VAR NAME="startfromnext" -->&marclist=<!-- TMPL_VAR NAME="marclist" -->&search=<!-- TMPL_VAR NAME="search" -->&resultsperpage=<!-- TMPL_VAR NAME="resultsperpage" -->&type=intranet&op=do_search&index=<!-- TMPL_VAR Name="anindex" -->">Next>></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 in Authorities.
<!-- /TMPL_IF -->
</div>
<table>
<tr>
<th colspan="3">Authorities</th>
</tr>
<tr>
<th>Summary</th>
<th>Used in</th>
<th>Select</th>
</tr>
<!-- TMPL_LOOP NAME="authresult" -->
<!-- TMPL_IF NAME="even" --><tr class="highlight"><!-- TMPL_ELSE --><tr><!-- /TMPL_IF -->
<td>
<!-- TMPL_VAR NAME="summary" -->
</td>
<td>
<!-- TMPL_VAR NAME="used" --> record(s)
</td>
<td>
<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 & close</a>
</td>
</tr>
<!-- /TMPL_LOOP -->
</table>
<!-- TMPL_ELSE -->
<h4>No results in Authorities</h4>
<!-- /TMPL_IF -->
<!-- TMPL_IF Name=catresult -->
<h3>Catalog Search Results</h3>
<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 in the catalog.
<!-- /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 --><!-- /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" --> record(s)
</td>
<td>
<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 & close</a>
</td>
</tr>
<!-- /TMPL_LOOP -->
</table>
<div class="pages">
<!-- TMPL_IF NAME="displayprev" -->
<a class="nav" href="opac-dictionary.pl?startfrom=<!-- TMPL_VAR NAME="startfromprev" -->&marclist=<!-- TMPL_VAR NAME="marclist" ESCAPE=URL-->&search=<!-- TMPL_VAR NAME="search" ESCAPE=URL-->&resultsperpage=<!-- TMPL_VAR NAME="resultsperpage" -->&type=intranet&op=do_search&index=<!-- TMPL_VAR Name="anindex" -->"><<Previous</a>
<!-- /TMPL_IF -->
<!-- TMPL_LOOP NAME="numbers" -->
<!-- TMPL_IF NAME="highlight" -->
<span class="current"><!-- TMPL_VAR NAME="number" --></span>
<!-- TMPL_ELSE -->
<a class="nav" href="opac-dictionary.pl?startfrom=<!-- TMPL_VAR NAME="startfrom" -->&marclist=<!-- TMPL_VAR NAME="marclist" ESCAPE=URL -->&search=<!-- TMPL_VAR NAME="search" ESCAPE=URL -->&resultsperpage=<!-- TMPL_VAR NAME="resultsperpage" -->&type=intranet&op=do_search&index=<!-- TMPL_VAR Name="anindex" -->"><!-- TMPL_VAR NAME="number" --></a>
<!-- /TMPL_IF -->
<!-- /TMPL_LOOP -->
<!-- TMPL_IF NAME="displaynext" -->
<a class="nav" href="opac-dictionary.pl?startfrom=<!-- TMPL_VAR NAME="startfromnext" -->&marclist=<!-- TMPL_VAR NAME="marclist" -->&search=<!-- TMPL_VAR NAME="search" -->&resultsperpage=<!-- TMPL_VAR NAME="resultsperpage" -->&type=intranet&op=do_search&index=<!-- TMPL_VAR Name="anindex" -->">Next>></a>
<!-- /TMPL_IF -->
<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 in the catalog.
<!-- /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>
<!-- /TMPL_IF -->
</div>
</body>
</html>
Index: opac-search.tmpl
===================================================================
RCS file: /cvsroot/koha/koha/koha-tmpl/opac-tmpl/npl/en/opac-search.tmpl,v
retrieving revision 1.1.2.6
retrieving revision 1.1.2.7
diff -C2 -r1.1.2.6 -r1.1.2.7
*** opac-search.tmpl 21 Apr 2005 20:06:55 -0000 1.1.2.6
--- opac-search.tmpl 9 Jun 2005 18:21:40 -0000 1.1.2.7
***************
*** 51,60 ****
<input type="hidden" name="excluding" value="" />
<input type="hidden" name="operator" value="contains" />
! <input type="text" id="title" name="value" /></td></tr>
<tr><th><label for="author">Author</label></th><td><input type="hidden" name="marclist" value="biblio.author" />
<input type="hidden" name="and_or" value="and" />
<input type="hidden" name="excluding" value="" />
<input type="hidden" name="operator" value="contains" />
! <input type="text" id="author" name="value" /></td></tr>
<tr><th><label for="subject">Subject</label></th><td>
<input type="hidden" name="marclist" value="bibliosubject.subject" />
--- 51,60 ----
<input type="hidden" name="excluding" value="" />
<input type="hidden" name="operator" value="contains" />
! <input type="text" id="title" name="value" /><a href="javascript:Dopop('opac-dictionary.pl?marclist=biblio.title&type=intranet&index=1',1)"><strong>...</strong></a></td></tr>
<tr><th><label for="author">Author</label></th><td><input type="hidden" name="marclist" value="biblio.author" />
<input type="hidden" name="and_or" value="and" />
<input type="hidden" name="excluding" value="" />
<input type="hidden" name="operator" value="contains" />
! <input type="text" id="author" name="value" /><a href="javascript:Dopop('opac-dictionary.pl?marclist=biblio.author&type=intranet&index=2',2)"><strong>...</strong></a></td></tr>
<tr><th><label for="subject">Subject</label></th><td>
<input type="hidden" name="marclist" value="bibliosubject.subject" />
***************
*** 62,66 ****
<input type="hidden" name="excluding" value="" />
<input type="hidden" name="operator" value="contains" />
! <input type="text" id="subject" name="value" size="35" /></td></tr>
<tr><th><label for="seriestitle">Series title</label></th><td>
<input type="hidden" name="marclist" value="biblio.seriestitle" />
--- 62,66 ----
<input type="hidden" name="excluding" value="" />
<input type="hidden" name="operator" value="contains" />
! <input type="text" id="subject" name="value" size="35" /><a href="javascript:Dopop('opac-dictionary.pl?marclist=bibliosubject.subject&type=intranet&index=3',3)"><strong>...</strong></a></td></tr>
<tr><th><label for="seriestitle">Series title</label></th><td>
<input type="hidden" name="marclist" value="biblio.seriestitle" />
More information about the Koha-cvs
mailing list