Merge remote-tracking branch 'origin/new/bug_8382'
[koha.git] / koha-tmpl / opac-tmpl / prog / en / modules / opac-auth-detail.tt
1 [% PROCESS 'opac-authorities.inc' %]
2 [% INCLUDE 'doc-head-open.inc' %][% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha online[% END %] catalog ›  Entry
3 [% INCLUDE 'doc-head-close.inc' %]
4 [% IF ( displayhierarchy ) %]
5 <script language="javascript" type="text/javascript" src="/opac-tmpl/lib/jquery/plugins/jquery.jstree.js"></script>
6 [% END %]
7 <script language="javascript" type="text/javascript">
8 //<![CDATA[
9 $(document).ready(function() {
10     $('#authdescriptions').tabs();
11     [% IF ( displayhierarchy ) %]
12         var current_nodes = [];
13         $('.currentauth').each(function() {
14             current_nodes.push('#' + $(this).parent().parents('li:first').attr('id'));
15             });
16         $('#hierarchies').jstree({
17                 "plugins": [ "themes", "html_data"],
18                 "themes": { "theme": "classic",
19                             "icons": false },
20                 "core": { "initially_open": current_nodes }
21             });
22     [% END %]
23 });
24 //]]>
25 </script>
26 </head>
27 <body id="opac-authoritiesdetail">
28
29 <div id="doc3" class="yui-t7">
30    <div id="bd">
31 [% INCLUDE 'masthead.inc' %]
32     <div id="yui-main">
33     <div class="yui-b"><div class="yui-g">
34
35     <div id="views"><span class="view"><span id="Normalview">Normal view</span></span> <span class="view"><a id="MARCview" href="/cgi-bin/koha/opac-authoritiesdetail.pl?authid=[% authid %]&marc=1">MARC view</a></span></div>
36
37 <div id="userauthdetails" class="container">
38
39 [% IF ( displayhierarchy ) %]
40 <div id="hierarchies">
41 [% PROCESS showhierarchy trees = loophierarchies %]
42 </div>
43 [% END %]
44
45 <h1>[% summary.mainentry %][% IF authtypetext %]([% authtypetext %])[% END %]</h1>
46 <div class="usedin">Used in <a href="opac-search.pl?type=opac&amp;q=[% authid %]&amp;idx=an,phr">[% count %] records</a></div>
47 <div class="authstanza">
48 [% FOREACH authorize IN summary.authorized %]
49 <div class="heading authorized auth[% seefro.field %]"><span class="label">Preferred form: </span><span class="authorized">[% authorize.heading %]</span></div>
50 [% END %]
51 [% PROCESS otherscript headings=summary.otherscript wantcategory='preferred' %]
52 </div>
53 [% IF summary.seefrom.size %]
54     <div class="authstanza seefrom">
55     <div class="authstanzaheading">Used for/see from:</div>
56     <ul class="seefrom">
57     [% FOREACH seefro IN summary.seefrom %]
58         <li class="heading seefrom auth[% seefro.field %]">
59         [% IF seefro.type && seefro.type != 'seefrom' %]<span class="label">[% PROCESS authtypelabel type=seefro.type | trim %]:</span>[% END %]
60         <span class="seefrom">[% PROCESS authheadingdisplay heading=seefro.heading search=seefrosearch authid=seefro.authid %]</span>
61         </li>
62     [% END %]
63     [% PROCESS otherscript headings=summary.otherscript wantcategory='seefrom' %]
64     </div>
65 [% END %]
66 [% IF summary.seealso.size %]
67     <div class="authstanza seealso">
68     <div class="authstanzaheading">See also:</div>
69     <ul class="seelso">
70     [% FOREACH seeals IN summary.seealso %]
71         <li class="heading seealso auth[% seeals.field %]">[% IF seeals.type && seeals.type != 'seealso' %]<span class="label">[% PROCESS authtypelabel type=seeals.type | trim %]:</span>[% END %]
72         <span class="seealso">[% PROCESS authheadingdisplay heading=seeals.heading search=seeals.search authid=seeals.authid %]</span>
73         </li>
74     [% END %]
75     [% PROCESS otherscript headings=summary.otherscript wantcategory='seealso' %]
76     </div>
77 [% END %]
78 [% IF marcflavour == 'UNIMARC' && summary.otherscript %]
79     <div class="authstanza">
80     [% FOREACH otherscrip IN summary.otherscript %]
81         <div class="heading otherscript auth[% otherscrip.field %]"><span class="label">See also[% PROCESS language lang=otherscript.lang | trim %] term:</span>
82         <span class="otherscript">[% otherscrip.term %]</span>
83         </div>
84     [% END %]
85     </div>
86 [% END %]
87 <div id="authdescriptions" class="toptabs">
88 <ul>
89     <li id="tab_descriptions" class="ui-tabs-selected"><a href="#descriptions">Notes</a></li>
90 </ul>
91 <div id="descriptions">
92 <div class="content_set">
93 [% FOREACH note IN summary.notes %]
94 <p class="note auth[% note.field %]">[% note.note %]</p>
95 [% END %]
96 </div>
97 </div>
98 </div>
99 </div>
100 </div>
101
102 </div>
103 </div>
104 </div>
105 </div>
106 [% INCLUDE 'opac-bottom.inc' %]