0390cd9a341de10eb78ed91e91e0004ed5813073
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / authorities / detail.tt
1 [% INCLUDE 'doc-head-open.inc' %]
2 <title>Koha &rsaquo; Authorities &rsaquo; Details for Authority #[% authid %] ([% authtypetext %])</title>
3 [% INCLUDE '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=[% 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 [% IF ( displayhierarchy ) %]
24 <link rel="stylesheet" type="text/css" href="[% 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  [% END %]
61 </head>
62 <body>
63 [% INCLUDE 'header.inc' %]
64 [% INCLUDE '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 #[% authid %] ([% 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     [% INCLUDE 'authorities-toolbar.inc' %]
74         
75 [% IF ( displayhierarchy ) %]
76
77 <div class="hierarchies">
78 [% FOREACH loophierarchie IN loophierarchies %]
79   <div class="hierarchy">
80   [% FOREACH loopelemen IN loophierarchie.loopelement %]
81     <div id="[% loopelemen.loopauthid %]" class="[% loopelemen.class %]">
82     [% IF ( loopelemen.ifparents ) %]
83       [% FOREACH loopparent IN loopelemen.loopparents %]
84         <div name="[% loopparent.loopauthid %]p" class="parent"> <a href="detail.pl?authid=[% loopparent.parentauthid %]">[% loopparent.parentvalue %]</a></div>
85       [% END %]
86     [% END %]
87     [% IF ( loopelemen.current_value ) %]
88         [% loopelemen.value %]
89     [% ELSE %]
90         <a href="detail.pl?authid=[% loopelemen.loopauthid %]" title="Term">[% loopelemen.value %]</a>
91     [% END %]
92     [% IF ( loopelemen.ifchildren ) %]
93       <sub><a class="parents" title="Narrower terms" href="JavaScript:showChildren('[% loopelemen.loopauthid %]');">+</a></sub><br />
94       [% FOREACH loopchildre IN loopelemen.loopchildren %]
95         <div name="[% loopchildre.loopauthid %]c" class="child"> <a href="detail.pl?authid=[% loopchildre.childauthid %]">[% loopchildre.childvalue %]</a></div>
96       [% END %]
97     [% END %]
98     </div>
99   [% END %]
100     
101   </div>
102 [% END %]
103 </div>
104 [% END %]
105
106 <h1>Authority #[% authid %] ([% 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=[% authid %]">[% count %] record(s)</a>
112 </div>
113
114 <div id="authoritiestabs" class="toptabs numbered">
115     <ul>
116         [% FOREACH BIG_LOO IN BIG_LOOP %]
117             <li>
118                 <a href="/cgi-bin/koha/cataloguing/addbiblio.pl#tab[% BIG_LOO.number %]XX">[% BIG_LOO.number %]</a>
119             </li>
120         [% END %]
121     </ul>
122
123 [% FOREACH BIG_LOO IN BIG_LOOP %]
124     <div id="tab[% BIG_LOO.number %]XX">
125     [% FOREACH innerloo IN BIG_LOO.innerloop %]
126         [% IF ( innerloo.tag ) %]
127             <div class="tag">
128             <div class="tag_title">
129                 [% innerloo.tag %]
130             </div>
131         [% ELSE %]
132             <div class="tag">
133         [% END %]
134         [% FOREACH subfiel IN innerloo.subfield %]
135             <p>
136                 <label class="labelsubfield">&nbsp;
137                 [% UNLESS ( subfiel.hide_marc ) %]<b>[% subfiel.marc_subfield %]</b>[% END %]
138                 <span title="[% subfiel.long_desc %]">[% subfiel.short_desc %]</span></label>
139                 [% subfiel.marc_value %]
140                 [% IF ( subfiel.link ) %]
141                     <a href="/cgi-bin/koha/catalogue/search.pl?op=do_search&amp;marclist=[% subfiel.link %]&amp;operator==&amp;type=intranet&amp;value=[% subfiel.marc_value |url %]">
142                         <img border="0" src="[% subfiel.interface %]/[% subfiel.theme %]/images/filefind.png" height="15" title="Search on [% subfiel.marc_value %]">
143                     </a>
144                 [% END %]
145                 [% IF ( subfiel.authority ) %]
146                     <a href="/cgi-bin/koha/authorities/detail.pl?authid=[% subfiel.authority %]" class="button">Auth</a>
147                 [% END %]
148             </p>
149         [% END %]
150         </div>
151     [% END %]
152     </div>
153 [% END %]
154 </div>
155 </div>
156 </div>
157 </div>
158
159 [% INCLUDE 'intranet-bottom.inc' %]