#1444: Porting marcEditor to authorities (tab management)
[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
45 <script language="JavaScript" type="text/javascript">
46 function Help() {
47     newin=window.open("/cgi-bin/koha/help.pl","Koha Help",'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
61 <div id="doc3" class="yui-t2">
62    
63    <div id="bd">
64         <div id="yui-main">
65         <div class="yui-b"><div class="yui-g">
66
67 <!-- TMPL_IF Name="displayhierarchy"-->
68
69 <div class="hierarchies">
70 <!--TMPL_LOOP Name="loophierarchies" -->
71   <div class="hierarchy">
72   <!--TMPL_LOOP Name="loopelement" -->
73     <div id="<!--TMPL_VAR Name="loopauthid" -->" class="<!--TMPL_VAR Name="class" -->">
74     <!--TMPL_IF Name="ifparents" -->
75       <!--TMPL_LOOP Name="loopparents" -->
76         <div name="<!--TMPL_VAR Name="loopauthid" -->p" class="parent"> <a href="detail.pl?authid=<!--TMPL_VAR Name="parentauthid" -->"><!--TMPL_VAR Name="parentvalue" --></a></div>
77       <!--/TMPL_LOOP-->
78     <!--/TMPL_IF -->
79     <!-- TMPL_IF name="current_value" -->
80         <!--TMPL_VAR Name="value" -->
81     <!-- TMPL_ELSE -->
82         <a href="detail.pl?authid=<!--TMPL_VAR Name="loopauthid" -->" title="Term"><!--TMPL_VAR Name="value" --></a>
83     <!-- /TMPL_IF -->
84     <!--TMPL_IF Name="ifchildren" -->
85       <sub><a class="parents" title="Narrower terms" href="JavaScript:showChildren('<!--TMPL_VAR Name="loopauthid" -->');">+</a></sub><br />
86       <!--TMPL_LOOP Name="loopchildren" -->
87         <div name="<!--TMPL_VAR Name="loopauthid" -->c" class="child"> <a href="detail.pl?authid=<!--TMPL_VAR Name="childauthid" -->"><!--TMPL_VAR Name="childvalue" --></a></div>
88       <!--/TMPL_LOOP-->
89     <!-- /TMPL_IF -->
90     </div>
91   <!--/TMPL_LOOP-->
92     
93   </div>
94 <!--/TMPL_LOOP-->
95 </div>
96 <!-- /TMPL_IF -->
97
98 <h1>Authority #<!-- TMPL_VAR NAME="authid" --> (<!-- TMPL_VAR name="authtypetext" -->)</h1>
99
100 <div id="action">
101 <a href="authorities.pl?authid=<!-- TMPL_VAR NAME="authid" -->">Edit</a>
102
103 <!-- TMPL_UNLESS name="count" -->
104 <a href="javascript:confirm_deletion()">Delete</a>
105 <!-- /TMPL_UNLESS -->
106
107 <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>
108 </div>
109
110 <div id="authorities_detail_details">
111
112 <!--TMPL_UNLESS Name="singletab"-->
113     <div id="tabs">
114         <!-- TMPL_IF NAME="0XX" -->
115             <a href="javascript:active(0)" class="tab_active" id="link0">0</a>
116         <!-- /TMPL_IF -->
117         <!-- TMPL_IF NAME="1XX" -->
118             <a href="javascript:active(1)" class="tab_inactive" id="link1">1</a>
119         <!-- /TMPL_IF -->
120         <!-- TMPL_IF NAME="2XX" -->
121             <a href="javascript:active(2)" class="tab_inactive" id="link2">2</a>
122         <!-- /TMPL_IF -->
123         <!-- TMPL_IF NAME="3XX" -->
124             <a href="javascript:active(3)" class="tab_inactive" id="link3">3</a>
125         <!-- /TMPL_IF -->
126         <!-- TMPL_IF NAME="4XX" -->
127             <a href="javascript:active(4)" class="tab_inactive" id="link4">4</a>
128         <!-- /TMPL_IF -->
129         <!-- TMPL_IF NAME="5XX" -->
130             <a href="javascript:active(5)" class="tab_inactive" id="link5">5</a>
131         <!-- /TMPL_IF -->
132         <!-- TMPL_IF NAME="6XX" -->
133             <a href="javascript:active(6)" class="tab_inactive" id="link6">6</a>
134         <!-- /TMPL_IF -->
135         <!-- TMPL_IF NAME="7XX" -->
136             <a href="javascript:active(7)" class="tab_inactive" id="link7">7</a>
137         <!-- /TMPL_IF -->
138         <!-- TMPL_IF NAME="8XX" -->
139             <a href="javascript:active(8)" class="tab_inactive" id="link8">8</a>
140         <!-- /TMPL_IF -->
141         <!-- TMPL_IF NAME="9XX" -->
142             <a href="javascript:active(9)" class="tab_inactive" id="link9">9</a>
143         <!-- /TMPL_IF -->
144     </div>
145 <!--/TMPL_UNLESS-->
146
147 <!-- TMPL_LOOP name="BIG_LOOP" -->
148 <!-- hide every tab except the 1st -->
149 <!--TMPL_UNLESS Name="singletab"-->
150   <!-- TMPL_IF name="number" -->
151     <div id="<!-- TMPL_VAR name="number" -->XX" class="content_hidden">
152   <!-- TMPL_ELSE -->
153     <div id="0XX" class="content_visible">
154   <!-- /TMPL_IF -->
155 <!-- /TMPL_UNLESS -->
156     
157     <!-- TMPL_LOOP NAME="innerloop" -->
158                 <!-- TMPL_IF name="tag" -->
159                     <div class="tag">
160                     <div class="tag_title">
161                         <!-- TMPL_VAR NAME="tag" -->
162                     </div>
163                 <!-- TMPL_ELSE -->
164                     <div class="tag">
165                 <!-- /TMPL_IF -->
166             <!-- TMPL_LOOP NAME="subfield" -->
167                 <p>
168                     <label class="labelsubfield">&nbsp;
169                     <!-- TMPL_UNLESS name="hide_marc" --><b><!-- TMPL_VAR NAME="marc_subfield" --></b><!-- /TMPL_UNLESS -->
170                     <span title="<!-- TMPL_VAR name="long_desc" -->"><!-- TMPL_VAR NAME="short_desc" --></span></label>
171                     <!-- TMPL_VAR NAME="marc_value" -->
172                     <!-- TMPL_IF name="link" -->
173                         <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" -->">
174                             <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" -->">
175                         </a>
176                     <!-- /TMPL_IF -->
177                     <!-- TMPL_IF NAME="authority" -->
178                         <a href="/cgi-bin/koha/authorities/detail.pl?authid=<!-- TMPL_VAR name="authority" -->" class="button">Auth</a>
179                     <!-- /TMPL_IF -->
180                 </p>
181             <!-- /TMPL_LOOP -->
182             </div>
183   
184     <!-- /TMPL_LOOP -->
185     </div>
186 <!-- /TMPL_LOOP -->
187     
188 </div>
189         
190
191
192 </div>
193 </div>
194 </div>
195
196 <!-- TMPL_INCLUDE NAME="mainmenu.inc" -->
197 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->