Merge remote-tracking branch 'origin/new/bug_8092'
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / authorities / detail.tt
1 [% INCLUDE 'doc-head-open.inc' %]
2 <title>Koha &rsaquo; Authorities &rsaquo;
3     [% IF ( unknownauthid ) %]
4       Unknown authority record
5     [% ELSE %]
6       Details for authority #[% authid %] ([% authtypetext %])
7     [% END %]
8 </title>
9 [% INCLUDE 'doc-head-close.inc' %]
10 <script type="text/javascript">
11
12 //<![CDATA[
13
14          $(document).ready(function() {
15     $('#authoritiestabs').tabs();
16          });
17
18 function confirm_deletion() {
19         var is_confirmed = confirm('Are you sure you want to delete this authority?');
20         if (is_confirmed) {
21                 window.location="authorities-home.pl?op=delete&amp;authid=[% authid %]";
22         }
23 }
24 function Dopop(link) {
25         newin=window.open(link,'width=500,height=400,toolbar=false,scrollbars=yes');
26 }
27 //]]>
28 </script>
29 [% IF ( displayhierarchy ) %]
30 <link rel="stylesheet" type="text/css" href="[% themelang %]/css/hierarchy.css" />
31 <script type="text/javascript">
32 function showParents(mynumber) {
33   var parents=document.getElementsByName(mynumber+'p')
34   for(i=0;i<parents.length;i++){
35     if (parents[i].style.display == "none") {
36       parents[i].style.display ="block";
37     } else {
38       parents[i].style.display ="none";
39     }
40   } 
41 }
42 function showChildren(mynumber) {
43   var children=document.getElementsByName(mynumber+'c')
44   for(i=0;i<children.length;i++){
45     if (children[i].style.display == "none") {
46       children[i].style.display = "block";
47     } else {
48       children[i].style.display = "none";
49     }
50   }
51 }
52 function Help() {
53     newin=window.open("/cgi-bin/koha/help.pl","KohaHelp",'width=600,height=600,toolbar=false,scrollbars=yes');
54 }
55
56 function addauthority() {
57     X = document.forms[0].authtype.value;
58     window.location="/cgi-bin/koha/authorities/authorities.pl?authtypecode="+X;
59 }
60 function searchauthority() {
61     X = document.forms[0].authtype2.value;
62     Y = document.forms[0].value.value;
63     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";
64 }
65 </script>
66  [% END %]
67 </head>
68 <body id="auth_detail" class="auth">
69 [% INCLUDE 'header.inc' %]
70 [% INCLUDE 'authorities-search.inc' %]
71 <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;
72     [% IF ( unknownauthid ) %]
73       Unknown authority record
74     [% ELSE %]
75       Details for authority #[% authid %] ([% authtypetext %])
76     [% END %]
77 </div>
78
79 <div id="doc" class="yui-t7">
80
81 <div id="bd">
82         <div id="yui-main">
83         <div class="yui-g">
84
85     [% INCLUDE 'authorities-toolbar.inc' %]
86         
87 [% IF ( displayhierarchy ) %]
88
89 <div class="hierarchies">
90 [% FOREACH loophierarchie IN loophierarchies %]
91   <div class="hierarchy">
92   [% FOREACH loopelemen IN loophierarchie.loopelement %]
93     <div id="[% loopelemen.loopauthid %]" class="[% loopelemen.class %]">
94     [% IF ( loopelemen.ifparents ) %]
95       [% FOREACH loopparent IN loopelemen.loopparents %]
96         <div name="[% loopparent.loopauthid %]p" class="parent"> <a href="detail.pl?authid=[% loopparent.parentauthid %]">[% loopparent.parentvalue %]</a></div>
97       [% END %]
98     [% END %]
99     [% IF ( loopelemen.current_value ) %]
100         [% loopelemen.value %]
101     [% ELSE %]
102         <a href="detail.pl?authid=[% loopelemen.loopauthid %]" title="Term">[% loopelemen.value %]</a>
103     [% END %]
104     [% IF ( loopelemen.ifchildren ) %]
105       <sub><a class="parents" title="Narrower terms" href="JavaScript:showChildren('[% loopelemen.loopauthid %]');">+</a></sub><br />
106       [% FOREACH loopchildre IN loopelemen.loopchildren %]
107         <div name="[% loopchildre.loopauthid %]c" class="child"> <a href="detail.pl?authid=[% loopchildre.childauthid %]">[% loopchildre.childvalue %]</a></div>
108       [% END %]
109     [% END %]
110     </div>
111   [% END %]
112     
113   </div>
114 [% END %]
115 </div>
116 [% END %]
117
118
119 [% IF ( unknownauthid ) %]
120     <div class="dialog message">The authority record you requested does not exist ([% errauthid %]).</div>
121 [% ELSE %]
122 <h1>Authority #[% authid %] ([% authtypetext %])</h1>
123
124 <div id="action">
125     
126     
127     Used in <a href="/cgi-bin/koha/catalogue/search.pl?type=intranet&amp;op=do_search&amp;q=an=[% authid %]">[% count %] record(s)</a>
128 </div>
129
130 <div id="authoritiestabs" class="toptabs numbered">
131     <ul>
132         [% FOREACH BIG_LOO IN BIG_LOOP %]
133             <li>
134                 <a href="#tab[% BIG_LOO.number %]XX">[% BIG_LOO.number %]</a>
135             </li>
136         [% END %]
137     </ul>
138
139 [% FOREACH BIG_LOO IN BIG_LOOP %]
140     <div id="tab[% BIG_LOO.number %]XX">
141     [% FOREACH innerloo IN BIG_LOO.innerloop %]
142         [% IF ( innerloo.tag ) %]
143             <div class="tag">
144             <div class="tag_title">
145                 [% innerloo.tag %]
146             </div>
147         [% ELSE %]
148             <div class="tag">
149         [% END %]
150         [% FOREACH subfiel IN innerloo.subfield %]
151             <p>
152                 <label class="labelsubfield">&nbsp;
153                 [% UNLESS ( subfiel.hide_marc ) %]<b>[% subfiel.marc_subfield %]</b>[% END %]
154                 <span title="[% subfiel.long_desc %]">[% subfiel.short_desc %]</span></label>
155                 [% subfiel.marc_value %]
156                 [% IF ( subfiel.link ) %]
157                     <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 %]">
158                         <img border="0" src="[% interface %]/[% theme %]/images/filefind.png" height="15" title="Search on [% subfiel.marc_value %]">
159                     </a>
160                 [% END %]
161                 [% IF ( subfiel.authority ) %]
162                     <a href="/cgi-bin/koha/authorities/detail.pl?authid=[% subfiel.authority %]" class="button">Auth</a>
163                 [% END %]
164             </p>
165         [% END %]
166         </div>
167     [% END %]
168     </div>
169 [% END %]
170 </div>
171 </div>
172 </div>
173 [% END %]
174 </div>
175
176 [% INCLUDE 'intranet-bottom.inc' %]