[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Koha-cvs] koha/koha-tmpl/intranet-tmpl/default/en/authori... [rel_2_2]
From: |
Henri-Damien LAURENT |
Subject: |
[Koha-cvs] koha/koha-tmpl/intranet-tmpl/default/en/authori... [rel_2_2] |
Date: |
Mon, 31 Jul 2006 13:02:38 +0000 |
CVSROOT: /sources/koha
Module name: koha
Branch: rel_2_2
Changes by: Henri-Damien LAURENT <hdl> 06/07/31 13:02:37
Modified files:
koha-tmpl/intranet-tmpl/default/en/authorities: detail.tmpl
Log message:
Adding Authorities tress display facility.
Should have been included in the previous commit.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/koha/koha-tmpl/intranet-tmpl/default/en/authorities/detail.tmpl?cvsroot=koha&only_with_tag=rel_2_2&r1=1.3.2.4&r2=1.3.2.5
Patches:
Index: detail.tmpl
===================================================================
RCS file:
/sources/koha/koha/koha-tmpl/intranet-tmpl/default/en/authorities/detail.tmpl,v
retrieving revision 1.3.2.4
retrieving revision 1.3.2.5
diff -u -b -r1.3.2.4 -r1.3.2.5
--- detail.tmpl 15 Sep 2005 11:28:33 -0000 1.3.2.4
+++ detail.tmpl 31 Jul 2006 13:02:37 -0000 1.3.2.5
@@ -1,5 +1,55 @@
<!-- TMPL_INCLUDE NAME="auth-top.inc" -->
<link rel="stylesheet" type="text/css" href="<!-- TMPL_VAR NAME="themelang"
-->/includes/marc-editor.css">
+<!-- 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="authid" -->" class="<!--TMPL_VAR Name="class"
-->">
+ <!--TMPL_IF Name="ifparents" -->
+ <!--TMPL_LOOP Name="loopparents" -->
+ <div name="<!--TMPL_VAR Name="authid" -->p" class="parent"> <a
href="detail.pl?authid=<!--TMPL_VAR Name="parentauthid" -->"><!--TMPL_VAR
Name="parentvalue" --></a></div>
+ <!--/TMPL_LOOP-->
+ <sup><a class="parents" href="JavaScript:showParents('<!--TMPL_VAR
Name="authid" -->');">+</a></sup>
+ <!--/TMPL_IF -->
+ <a href="detail.pl?authid=<!--TMPL_VAR Name="authid" -->"><!--TMPL_VAR
Name="value" --></a>
+ <!--TMPL_IF Name="ifchildren" -->
+ <sub><a class="parents" href="JavaScript:showChildren('<!--TMPL_VAR
Name="authid" -->');">+</a></sub><br/>
+ <!--TMPL_LOOP Name="loopchildren" -->
+ <div name="<!--TMPL_VAR Name="authid" -->c" class="child"> <a
href="detail.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 class="authority">Authority #<!-- TMPL_VAR NAME="authid" --> (<!--
TMPL_VAR name="authtypetext" -->)</h1>
<a href="authorities.pl?authid=<!-- TMPL_VAR NAME="authid" -->">
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Koha-cvs] koha/koha-tmpl/intranet-tmpl/default/en/authori... [rel_2_2],
Henri-Damien LAURENT <=