Fixing nomenclature and tmpl_process3.pl bugs
[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 <script type="text/javascript">
5
6 //<![CDATA[
7
8          $(document).ready(function() {
9                 $('#authoritiestabs').tabs();
10          });
11
12 function confirm_deletion() {
13         var is_confirmed = confirm('Are you sure you want to delete this authority?');
14         if (is_confirmed) {
15                 window.location="authorities-home.pl?op=delete&amp;authid=<!-- TMPL_VAR NAME="authid" -->";
16         }
17 }
18 function Dopop(link) {
19         newin=window.open(link,'width=500,height=400,toolbar=false,scrollbars=yes');
20 }
21 </script>
22 <!-- TMPL_IF Name="displayhierarchy"-->
23 <link rel="stylesheet" type="text/css" href="<!-- TMPL_VAR NAME="themelang" -->/css/hierarchy.css" />
24 <script type="text/javascript">
25 function showParents(mynumber) {
26   var parents=document.getElementsByName(mynumber+'p')
27   for(i=0;i<parents.length;i++){
28     if (parents[i].style.display == "none") {
29       parents[i].style.display ="block";
30     } else {
31       parents[i].style.display ="none";
32     }
33   } 
34 }
35 function showChildren(mynumber) {
36   var children=document.getElementsByName(mynumber+'c')
37   for(i=0;i<children.length;i++){
38     if (children[i].style.display == "none") {
39       children[i].style.display = "block";
40     } else {
41       children[i].style.display = "none";
42     }
43   }
44 }
45 </script>
46  <!--/TMPL_IF -->
47 </head>
48 <body>
49 <!-- TMPL_INCLUDE NAME="header.inc" -->
50
51 <script language="JavaScript" type="text/javascript">
52 function Help() {
53     newin=window.open("/cgi-bin/koha/help.pl","Koha Help",'width=600,height=600,toolbar=false,scrollbars=yes');
54 }
55
56 function addauthority() {
57     X = document.forms[0].authtype.value;
58     window.location="/cgi-bin/koha/authorities/authorities.pl?authtypecode="+X;
59 }
60 function searchauthority() {
61     X = document.forms[0].authtype2.value;
62     Y = document.forms[0].value.value;
63     window.location="/cgi-bin/koha/authorities/authorities-home.pl?op=do_search&type=intranet&authtypecode="+X+"&value="+Y+"&marclist=&and_or=and&excluding=&operator=contains";
64 }
65 </script>
66
67 <div id="doc3" class="yui-t2">
68    
69    <div id="bd">
70         <div id="yui-main">
71         <div class="yui-b"><div class="yui-g">
72
73 <!-- TMPL_IF Name="displayhierarchy"-->
74
75 <div class="hierarchies">
76 <!--TMPL_LOOP Name="loophierarchies" -->
77   <div class="hierarchy">
78   <!--TMPL_LOOP Name="loopelement" -->
79     <div id="<!--TMPL_VAR Name="loopauthid" -->" class="<!--TMPL_VAR Name="class" -->">
80     <!--TMPL_IF Name="ifparents" -->
81       <!--TMPL_LOOP Name="loopparents" -->
82         <div name="<!--TMPL_VAR Name="loopauthid" -->p" class="parent"> <a href="detail.pl?authid=<!--TMPL_VAR Name="parentauthid" -->"><!--TMPL_VAR Name="parentvalue" --></a></div>
83       <!--/TMPL_LOOP-->
84     <!--/TMPL_IF -->
85     <!-- TMPL_IF name="current_value" -->
86         <!--TMPL_VAR Name="value" -->
87     <!-- TMPL_ELSE -->
88         <a href="detail.pl?authid=<!--TMPL_VAR Name="loopauthid" -->" title="Term"><!--TMPL_VAR Name="value" --></a>
89     <!-- /TMPL_IF -->
90     <!--TMPL_IF Name="ifchildren" -->
91       <sub><a class="parents" title="Narrower terms" href="JavaScript:showChildren('<!--TMPL_VAR Name="loopauthid" -->');">+</a></sub><br />
92       <!--TMPL_LOOP Name="loopchildren" -->
93         <div name="<!--TMPL_VAR Name="loopauthid" -->c" class="child"> <a href="detail.pl?authid=<!--TMPL_VAR Name="childauthid" -->"><!--TMPL_VAR Name="childvalue" --></a></div>
94       <!--/TMPL_LOOP-->
95     <!-- /TMPL_IF -->
96     </div>
97   <!--/TMPL_LOOP-->
98     
99   </div>
100 <!--/TMPL_LOOP-->
101 </div>
102 <!-- /TMPL_IF -->
103
104 <h1>Authority #<!-- TMPL_VAR NAME="authid" --> (<!-- TMPL_VAR name="authtypetext" -->)</h1>
105
106 <div id="action">
107     <a href="authorities.pl?authid=<!-- TMPL_VAR NAME="authid" -->">Edit</a>
108     
109     <!-- TMPL_UNLESS name="count" -->
110     <a href="javascript:confirm_deletion()">Delete</a>
111     <!-- /TMPL_UNLESS -->
112     
113     <a href="../catalogue/search.pl?type=intranet&amp;op=do_search&amp;q=an=<!--TMPL_VAR Name="authid" -->" class="button"><!-- TMPL_VAR name="count" --> biblio(s)</a>
114 </div>
115
116 <div id="authoritiestabs" class="toptabs numbered">
117     <ul>
118         <!-- TMPL_LOOP name="BIG_LOOP" -->
119             <li>
120                 <a href="/cgi-bin/koha/cataloguing/addbiblio.pl#tab<!-- TMPL_VAR name="number" -->XX"><!-- TMPL_VAR name="number"--></a>
121             </li>
122         <!-- /TMPL_LOOP -->
123     </ul>
124
125 <!-- TMPL_LOOP name="BIG_LOOP" -->
126     <div id="tab<!-- TMPL_VAR name="number" -->XX">
127     <!-- TMPL_LOOP NAME="innerloop" -->
128         <!-- TMPL_IF name="tag" -->
129             <div class="tag">
130             <div class="tag_title">
131                 <!-- TMPL_VAR NAME="tag" -->
132             </div>
133         <!-- TMPL_ELSE -->
134             <div class="tag">
135         <!-- /TMPL_IF -->
136         <!-- TMPL_LOOP NAME="subfield" -->
137             <p>
138                 <label class="labelsubfield">&nbsp;
139                 <!-- TMPL_UNLESS name="hide_marc" --><b><!-- TMPL_VAR NAME="marc_subfield" --></b><!-- /TMPL_UNLESS -->
140                 <span title="<!-- TMPL_VAR name="long_desc" -->"><!-- TMPL_VAR NAME="short_desc" --></span></label>
141                 <!-- TMPL_VAR NAME="marc_value" -->
142                 <!-- TMPL_IF name="link" -->
143                     <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" -->">
144                         <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" -->">
145                     </a>
146                 <!-- /TMPL_IF -->
147                 <!-- TMPL_IF NAME="authority" -->
148                     <a href="/cgi-bin/koha/authorities/detail.pl?authid=<!-- TMPL_VAR name="authority" -->" class="button">Auth</a>
149                 <!-- /TMPL_IF -->
150             </p>
151         <!-- /TMPL_LOOP -->
152         </div>
153     <!-- /TMPL_LOOP -->
154     </div>
155 <!-- /TMPL_LOOP -->
156 </div>
157 </div>
158 </div>
159 </div>
160
161 <!-- TMPL_INCLUDE NAME="mainmenu.inc" -->
162 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->