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