[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Koha-cvs] koha/koha-tmpl/opac-tmpl/prog/en opac-authoriti...
From: |
Henri-Damien LAURENT |
Subject: |
[Koha-cvs] koha/koha-tmpl/opac-tmpl/prog/en opac-authoriti... |
Date: |
Thu, 28 Jun 2007 12:34:13 +0000 |
CVSROOT: /cvsroot/koha
Module name: koha
Changes by: Henri-Damien LAURENT <hdl> 07/06/28 12:34:13
Modified files:
koha-tmpl/opac-tmpl/prog/en: opac-authoritiesdetail.tmpl
Log message:
Bug Fixing :
Authorities display hierarchies is now OK (provided hierarchy.css is in
includes)
link with biblios OK.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/koha/koha-tmpl/opac-tmpl/prog/en/opac-authoritiesdetail.tmpl?cvsroot=koha&r1=1.2&r2=1.3
Patches:
Index: opac-authoritiesdetail.tmpl
===================================================================
RCS file:
/cvsroot/koha/koha/koha-tmpl/opac-tmpl/prog/en/opac-authoritiesdetail.tmpl,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -b -r1.2 -r1.3
--- opac-authoritiesdetail.tmpl 9 Mar 2007 15:43:15 -0000 1.2
+++ opac-authoritiesdetail.tmpl 28 Jun 2007 12:34:12 -0000 1.3
@@ -1,12 +1,63 @@
<!-- TMPL_INCLUDE NAME="doc-head-open.inc" --><!-- TMPL_VAR NAME="LibraryName"
--> Catalog -- Advanced Search
<!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
+<!-- TMPL_IF Name="displayhierarchy"-->
+<link rel="stylesheet" type="text/css" href="<!-- TMPL_VAR NAME="themelang"
-->/includes/hierarchy.css">
+<!--/TMPL_IF-->
<body<!-- TMPL_IF NAME="OpacNav" --> id="withnav"<!-- /TMPL_IF -->>
<!--TMPL_INCLUDE NAME="masthead.inc" -->
<div id="main">
+<!-- TMPL_IF Name="displayhierarchy"-->
+<link rel="stylesheet" type="text/css" href="<!-- TMPL_VAR NAME="themelang"
-->/includes/hierarchy.css">
+<script language="JavaScript" type="text/javascript">
+function showParents(mynumber) {
+ var parents=document.getElementsByName(mynumber+'p')
+ for(i=0;i<parents.length;i++){
+ if (parents[i].style.display == "none") {
+ parents[i].style.display ="block";
+ } else {
+ parents[i].style.display ="none";
+ }
+ }
+}
+function showChildren(mynumber) {
+ var children=document.getElementsByName(mynumber+'c')
+ for(i=0;i<children.length;i++){
+ if (children[i].style.display == "none") {
+ children[i].style.display = "block";
+ } else {
+ children[i].style.display = "none";
+ }
+ }
+}
+</script>
+
+<div class="hierarchies">
+<!--TMPL_LOOP Name="loophierarchies" -->
+ <div class="hierarchy">
+ <!--TMPL_LOOP Name="loopelement" -->
+ <div id="<!--TMPL_VAR Name="loopauthid" -->" class="<!--TMPL_VAR
Name="class" -->">
+ <!-- TMPL_IF name="current_value" -->
+ <!--TMPL_VAR Name="value" -->
+ <!-- TMPL_ELSE -->
+ <a href="opac-authoritiesdetail.pl?authid=<!--TMPL_VAR
Name="loopauthid" -->" title="Term"><!--TMPL_VAR Name="value" --></a>
+ <!-- /TMPL_IF -->
+ <!--TMPL_IF Name="ifchildren" -->
+ <sub><a class="parents" title="Narrower terms"
href="JavaScript:showChildren('<!--TMPL_VAR Name="loopauthid"
-->');">+</a></sub><br/>
+ <!--TMPL_LOOP Name="loopchildren" -->
+ <div name="<!--TMPL_VAR Name="loopauthid" -->c" class="child"> <a
href="opac-authoritiesdetail.pl?authid=<!--TMPL_VAR Name="childauthid"
-->"><!--TMPL_VAR Name="childvalue" --></a></div>
+ <!--/TMPL_LOOP-->
+ <!-- /TMPL_IF -->
+ </div>
+ <!--/TMPL_LOOP-->
+
+ </div>
+<!--/TMPL_LOOP-->
+</div>
+<!-- /TMPL_IF -->
<div class="tabbed">
<h1>Authority #<!-- TMPL_VAR NAME="authid" --> (<!-- TMPL_VAR
name="authtypetext" -->)</h1>
- <a href="opac-search.pl?type=opac&op=do_search&marclist=<!--
TMPL_VAR NAME="biblio_fields" -->&operator==&value=<!-- TMPL_VAR
NAME="authid" -->&and_or=and&excluding="><!-- TMPL_VAR name="count" -->
biblios</a>
+ <a href="opac-search.pl?type=opac&q=<!-- TMPL_VAR NAME="authid"
-->&idx=an"><!-- TMPL_VAR name="count" --> biblios</a>
</div>
<table border="0"><!-- TMPL_LOOP name="0XX" -->
<tr noborder ><td colspan="3" class="marctag"><b><!-- TMPL_VAR
name="tag" --></b></td></tr>
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Koha-cvs] koha/koha-tmpl/opac-tmpl/prog/en opac-authoriti...,
Henri-Damien LAURENT <=