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