Bug 3128 - followup and correction
[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 </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 function Help() {
46     newin=window.open("/cgi-bin/koha/help.pl","KohaHelp",'width=600,height=600,toolbar=false,scrollbars=yes');
47 }
48
49 function addauthority() {
50     X = document.forms[0].authtype.value;
51     window.location="/cgi-bin/koha/authorities/authorities.pl?authtypecode="+X;
52 }
53 function searchauthority() {
54     X = document.forms[0].authtype2.value;
55     Y = document.forms[0].value.value;
56     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";
57 }
58 </script>
59  <!--/TMPL_IF -->
60 </head>
61 <body>
62 <!-- TMPL_INCLUDE NAME="header.inc" -->
63 <!-- TMPL_INCLUDE NAME="authorities-search.inc" -->
64 <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>
65
66 <div id="doc" class="yui-t7">
67
68 <div id="bd">
69         <div id="yui-main">
70         <div class="yui-g">
71
72     <!-- TMPL_INCLUDE NAME="authorities-toolbar.inc" -->
73         
74 <!-- TMPL_IF Name="displayhierarchy"-->
75
76 <div class="hierarchies">
77 <!--TMPL_LOOP Name="loophierarchies" -->
78   <div class="hierarchy">
79   <!--TMPL_LOOP Name="loopelement" -->
80     <div id="<!--TMPL_VAR Name="loopauthid" -->" class="<!--TMPL_VAR Name="class" -->">
81     <!--TMPL_IF Name="ifparents" -->
82       <!--TMPL_LOOP Name="loopparents" -->
83         <div name="<!--TMPL_VAR Name="loopauthid" -->p" class="parent"> <a href="detail.pl?authid=<!--TMPL_VAR Name="parentauthid" -->"><!--TMPL_VAR Name="parentvalue" --></a></div>
84       <!--/TMPL_LOOP-->
85     <!--/TMPL_IF -->
86     <!-- TMPL_IF name="current_value" -->
87         <!--TMPL_VAR Name="value" -->
88     <!-- TMPL_ELSE -->
89         <a href="detail.pl?authid=<!--TMPL_VAR Name="loopauthid" -->" title="Term"><!--TMPL_VAR Name="value" --></a>
90     <!-- /TMPL_IF -->
91     <!--TMPL_IF Name="ifchildren" -->
92       <sub><a class="parents" title="Narrower terms" href="JavaScript:showChildren('<!--TMPL_VAR Name="loopauthid" -->');">+</a></sub><br />
93       <!--TMPL_LOOP Name="loopchildren" -->
94         <div name="<!--TMPL_VAR Name="loopauthid" -->c" class="child"> <a href="detail.pl?authid=<!--TMPL_VAR Name="childauthid" -->"><!--TMPL_VAR Name="childvalue" --></a></div>
95       <!--/TMPL_LOOP-->
96     <!-- /TMPL_IF -->
97     </div>
98   <!--/TMPL_LOOP-->
99     
100   </div>
101 <!--/TMPL_LOOP-->
102 </div>
103 <!-- /TMPL_IF -->
104
105 <h1>Authority #<!-- TMPL_VAR NAME="authid" --> (<!-- TMPL_VAR name="authtypetext" -->)</h1>
106
107 <div id="action">
108     
109     
110     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>
111 </div>
112
113 <div id="authoritiestabs" class="toptabs numbered">
114     <ul>
115         <!-- TMPL_LOOP name="BIG_LOOP" -->
116             <li>
117                 <a href="/cgi-bin/koha/cataloguing/addbiblio.pl#tab<!-- TMPL_VAR name="number" -->XX"><!-- TMPL_VAR name="number"--></a>
118             </li>
119         <!-- /TMPL_LOOP -->
120     </ul>
121
122 <!-- TMPL_LOOP name="BIG_LOOP" -->
123     <div id="tab<!-- TMPL_VAR name="number" -->XX">
124     <!-- TMPL_LOOP NAME="innerloop" -->
125         <!-- TMPL_IF name="tag" -->
126             <div class="tag">
127             <div class="tag_title">
128                 <!-- TMPL_VAR NAME="tag" -->
129             </div>
130         <!-- TMPL_ELSE -->
131             <div class="tag">
132         <!-- /TMPL_IF -->
133         <!-- TMPL_LOOP NAME="subfield" -->
134             <p>
135                 <label class="labelsubfield">&nbsp;
136                 <!-- TMPL_UNLESS name="hide_marc" --><b><!-- TMPL_VAR NAME="marc_subfield" --></b><!-- /TMPL_UNLESS -->
137                 <span title="<!-- TMPL_VAR name="long_desc" -->"><!-- TMPL_VAR NAME="short_desc" --></span></label>
138                 <!-- TMPL_VAR NAME="marc_value" -->
139                 <!-- TMPL_IF name="link" -->
140                     <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" -->">
141                         <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" -->">
142                     </a>
143                 <!-- /TMPL_IF -->
144                 <!-- TMPL_IF NAME="authority" -->
145                     <a href="/cgi-bin/koha/authorities/detail.pl?authid=<!-- TMPL_VAR name="authority" -->" class="button">Auth</a>
146                 <!-- /TMPL_IF -->
147             </p>
148         <!-- /TMPL_LOOP -->
149         </div>
150     <!-- /TMPL_LOOP -->
151     </div>
152 <!-- /TMPL_LOOP -->
153 </div>
154 </div>
155 </div>
156 </div>
157
158 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->