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