Moving inline script blocks to <head> where possible
[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 function confirm_deletion() {
7         var is_confirmed = confirm('Are you sure you want to delete this authority?');
8         if (is_confirmed) {
9                 window.location="authorities-home.pl?op=delete&amp;authid=<!-- TMPL_VAR NAME="authid" -->";
10         }
11 }
12 function Dopop(link) {
13         newin=window.open(link,'width=500,height=400,toolbar=false,scrollbars=yes');
14 }
15 </script>
16 <!-- TMPL_IF Name="displayhierarchy"-->
17 <link rel="stylesheet" type="text/css" href="<!-- TMPL_VAR NAME="themelang" -->/css/hierarchy.css" />
18 <script type="text/javascript">
19 function showParents(mynumber) {
20   var parents=document.getElementsByName(mynumber+'p')
21   for(i=0;i<parents.length;i++){
22     if (parents[i].style.display == "none") {
23       parents[i].style.display ="block";
24     } else {
25       parents[i].style.display ="none";
26     }
27   } 
28 }
29 function showChildren(mynumber) {
30   var children=document.getElementsByName(mynumber+'c')
31   for(i=0;i<children.length;i++){
32     if (children[i].style.display == "none") {
33       children[i].style.display = "block";
34     } else {
35       children[i].style.display = "none";
36     }
37   }
38 }
39 </script>
40  <!--/TMPL_IF -->
41 </head>
42 <body>
43 <!-- TMPL_INCLUDE NAME="header.inc" -->
44 <!-- TMPL_INCLUDE NAME="menu-authorities.inc" -->
45
46 <div id="doc3" class="yui-t2">
47    
48    <div id="bd">
49         <div id="yui-main">
50         <div class="yui-b"><div class="yui-g">
51
52 <!-- TMPL_IF Name="displayhierarchy"-->
53
54 <div class="hierarchies">
55 <!--TMPL_LOOP Name="loophierarchies" -->
56   <div class="hierarchy">
57   <!--TMPL_LOOP Name="loopelement" -->
58     <div id="<!--TMPL_VAR Name="loopauthid" -->" class="<!--TMPL_VAR Name="class" -->">
59     <!--TMPL_IF Name="ifparents" -->
60       <!--TMPL_LOOP Name="loopparents" -->
61         <div name="<!--TMPL_VAR Name="loopauthid" -->p" class="parent"> <a href="detail.pl?authid=<!--TMPL_VAR Name="parentauthid" -->"><!--TMPL_VAR Name="parentvalue" --></a></div>
62       <!--/TMPL_LOOP-->
63     <!--/TMPL_IF -->
64     <!-- TMPL_IF name="current_value" -->
65         <!--TMPL_VAR Name="value" -->
66     <!-- TMPL_ELSE -->
67         <a href="detail.pl?authid=<!--TMPL_VAR Name="loopauthid" -->" title="Term"><!--TMPL_VAR Name="value" --></a>
68     <!-- /TMPL_IF -->
69     <!--TMPL_IF Name="ifchildren" -->
70       <sub><a class="parents" title="Narrower terms" href="JavaScript:showChildren('<!--TMPL_VAR Name="loopauthid" -->');">+</a></sub><br />
71       <!--TMPL_LOOP Name="loopchildren" -->
72         <div name="<!--TMPL_VAR Name="loopauthid" -->c" class="child"> <a href="detail.pl?authid=<!--TMPL_VAR Name="childauthid" -->"><!--TMPL_VAR Name="childvalue" --></a></div>
73       <!--/TMPL_LOOP-->
74     <!-- /TMPL_IF -->
75     </div>
76   <!--/TMPL_LOOP-->
77     
78   </div>
79 <!--/TMPL_LOOP-->
80 </div>
81 <!-- /TMPL_IF -->
82
83 <h1>Authority #<!-- TMPL_VAR NAME="authid" --> (<!-- TMPL_VAR name="authtypetext" -->)</h1>
84
85 <div id="action">
86 <a href="authorities.pl?authid=<!-- TMPL_VAR NAME="authid" -->">Edit</a>
87
88 <!-- TMPL_UNLESS name="count" -->
89 <a href="javascript:confirm_deletion()">Delete</a>
90 <!-- /TMPL_UNLESS -->
91
92 <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>
93 </div>
94
95 <div id="authorities_detail_details">
96 <!-- TMPL_LOOP NAME="0XX" -->
97                 <!-- TMPL_IF name="tag" -->
98                     <p class="tag">
99                         <!-- TMPL_VAR NAME="tag" -->
100                     </p>
101                 <!-- TMPL_ELSE -->
102                     <br />
103                 <!-- /TMPL_IF -->
104             <!-- TMPL_LOOP NAME="subfield" -->
105                 <p>
106                     <label>&nbsp;
107                     <!-- TMPL_UNLESS name="hide_marc" --><!-- TMPL_VAR NAME="marc_subfield" --><!-- /TMPL_UNLESS -->
108                     <span title="<!-- TMPL_VAR name="long_desc" -->"><!-- TMPL_VAR NAME="short_desc" --></span></label>
109                     <!-- TMPL_VAR NAME="marc_value" -->
110                     <!-- TMPL_IF name="link" -->
111                         <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" -->">
112                             <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" -->">
113                         </a>
114                     <!-- /TMPL_IF -->
115                     <!-- TMPL_IF NAME="authority" -->
116                         <a href="/cgi-bin/koha/authorities/detail.pl?authid=<!-- TMPL_VAR name="authority" -->" class="button">Auth</a>
117                     <!-- /TMPL_IF -->
118                 </p>
119              <!-- /TMPL_LOOP -->
120
121 <!-- /TMPL_LOOP --> <!-- tag -->
122 </div>
123         
124
125
126 </div>
127 </div>
128 </div>
129
130 <!-- TMPL_INCLUDE NAME="mainmenu.inc" -->
131 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->