Corrections for XHTML compliance, again.
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / authorities / detail.tmpl
1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
2 <title>Koha &rsaquo; Authority Details</title>
3 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
4
5 <!-- TMPL_INCLUDE NAME="menus.inc" -->
6 <!-- TMPL_INCLUDE NAME="menu-authorities.inc" -->
7
8 <!-- TMPL_IF Name="displayhierarchy"-->
9 <link rel="stylesheet" type="text/css" href="<!-- TMPL_VAR NAME="themelang" -->/css/hierarchy.css" />
10 <script language="JavaScript" type="text/javascript">
11 function showParents(mynumber) {
12   var parents=document.getElementsByName(mynumber+'p')
13   for(i=0;i<parents.length;i++){
14     if (parents[i].style.display == "none") {
15       parents[i].style.display ="block";
16     } else {
17       parents[i].style.display ="none";
18     }
19   } 
20 }
21 function showChildren(mynumber) {
22   var children=document.getElementsByName(mynumber+'c')
23   for(i=0;i<children.length;i++){
24     if (children[i].style.display == "none") {
25       children[i].style.display = "block";
26     } else {
27       children[i].style.display = "none";
28     }
29   }
30 }
31 </script>
32
33 <div class="hierarchies">
34 <!--TMPL_LOOP Name="loophierarchies" -->
35   <div class="hierarchy">
36   <!--TMPL_LOOP Name="loopelement" -->
37     <div id="<!--TMPL_VAR Name="loopauthid" -->" class="<!--TMPL_VAR Name="class" -->">
38     <!--TMPL_IF Name="ifparents" -->
39       <!--TMPL_LOOP Name="loopparents" -->
40         <div name="<!--TMPL_VAR Name="loopauthid" -->p" class="parent"> <a href="detail.pl?authid=<!--TMPL_VAR Name="parentauthid" -->"><!--TMPL_VAR Name="parentvalue" --></a></div>
41       <!--/TMPL_LOOP-->
42     <!--/TMPL_IF -->
43     <!-- TMPL_IF name="current_value" -->
44         <!--TMPL_VAR Name="value" -->
45     <!-- TMPL_ELSE -->
46         <a href="detail.pl?authid=<!--TMPL_VAR Name="loopauthid" -->" title="Term"><!--TMPL_VAR Name="value" --></a>
47     <!-- /TMPL_IF -->
48     <!--TMPL_IF Name="ifchildren" -->
49       <sub><a class="parents" title="Narrower terms" href="JavaScript:showChildren('<!--TMPL_VAR Name="loopauthid" -->');">+</a></sub><br />
50       <!--TMPL_LOOP Name="loopchildren" -->
51         <div name="<!--TMPL_VAR Name="loopauthid" -->c" class="child"> <a href="detail.pl?authid=<!--TMPL_VAR Name="childauthid" -->"><!--TMPL_VAR Name="childvalue" --></a></div>
52       <!--/TMPL_LOOP-->
53     <!-- /TMPL_IF -->
54     </div>
55   <!--/TMPL_LOOP-->
56     
57   </div>
58 <!--/TMPL_LOOP-->
59 </div>
60 <!-- /TMPL_IF -->
61
62 <h1 class="authority">Authority #<!-- TMPL_VAR NAME="authid" --> (<!-- TMPL_VAR name="authtypetext" -->)</h1>
63
64 <div id="action">
65 <a href="authorities.pl?authid=<!-- TMPL_VAR NAME="authid" -->">Edit</a>
66
67 <!-- TMPL_UNLESS name="count" -->
68 <a href="javascript:confirm_deletion()">Delete</a>
69 <!-- /TMPL_UNLESS -->
70
71 <a href="../catalogue/search.pl?type=intranet&amp;op=do_search&amp;q=an=<!--TMPL_VAR Name="authid" -->" class="button"><!-- TMPL_VAR name="count" --> biblios</a>
72 </div>
73
74 <div id="authorities_detail_details">
75 <!-- TMPL_LOOP NAME="0XX" -->
76                 <!-- TMPL_IF name="tag" -->
77                     <p class="tag">
78                         <!-- TMPL_VAR NAME="tag" -->
79                     </p>
80                 <!-- TMPL_ELSE -->
81                     <br />
82                 <!-- /TMPL_IF -->
83             <!-- TMPL_LOOP NAME="subfield" -->
84                 <p>
85                     <label>&nbsp;
86                     <!-- TMPL_UNLESS name="hide_marc" --><!-- TMPL_VAR NAME="marc_subfield" --><!-- /TMPL_UNLESS -->
87                     <span title="<!-- TMPL_VAR name="long_desc" -->"><!-- TMPL_VAR NAME="short_desc" --></span></label>
88                     <!-- TMPL_VAR NAME="marc_value" -->
89                     <!-- TMPL_IF name="link" -->
90                         <a href="/cgi-bin/koha/catalogue/search.pl?op=do_search&amp;marclist=<!-- TMPL_VAR NAME="link" -->&amp;operator==&amp;type=intranet&amp;value=<!-- TMPL_VAR NAME="marc_value" ESCAPE="URL" -->">
91                             <img border="0" src="<!-- TMPL_VAR NAME="interface" -->/<!-- TMPL_VAR NAME="theme" -->/images/filefind.png" height="15" title="Search on <!-- TMPL_VAR name="marc_value" -->">
92                         </a>
93                     <!-- /TMPL_IF -->
94                     <!-- TMPL_IF NAME="authority" -->
95                         <a href="/cgi-bin/koha/authorities/detail.pl?authid=<!-- TMPL_VAR name="authority" -->" class="button">Auth</a>
96                     <!-- /TMPL_IF -->
97                 </p>
98              <!-- /TMPL_LOOP -->
99
100 <!-- /TMPL_LOOP --> <!-- tag -->
101 </div>
102         
103 <script language="JavaScript" type="text/javascript">
104
105 function confirm_deletion() {
106         var is_confirmed = confirm('Are you sure you want to delete this authority?');
107         if (is_confirmed) {
108                 window.location="authorities-home.pl?op=delete&amp;authid=<!-- TMPL_VAR NAME="authid" -->";
109         }
110 }
111 function Dopop(link) {
112         newin=window.open(link,'width=500,height=400,toolbar=false,scrollbars=yes');
113 }
114 </script>
115
116 <!-- TMPL_INCLUDE name="intranet-bottom.inc" -->