Bug 5025: discrepancy between opac doc-head-open.inc and staff doc-head-open.inc
[koha.git] / koha-tmpl / opac-tmpl / bootstrap / en / modules / opac-auth-detail.tt
1 [% USE Koha %]
2 [% PROCESS 'opac-authorities.inc' %]
3 [% INCLUDE 'doc-head-open.inc' %]
4 <title>[% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha online[% END %] catalog &rsaquo; Authority search &rsaquo; [% summary.mainentry %][% IF authtypetext %] ([% authtypetext %])[% END %]</title>
5 [% INCLUDE 'doc-head-close.inc' %]
6 [% BLOCK cssinclude %][% END %]
7 </head>
8 [% INCLUDE 'bodytag.inc' bodyid='opac-authoritiesdetail' bodyclass='scrollto' %]
9 [% INCLUDE 'masthead.inc' %]
10
11     <div class="main">
12         <ul class="breadcrumb">
13             <li><a href="/cgi-bin/koha/opac-main.pl">Home</a> <span class="divider">&rsaquo;</span></li>
14             <li><a href="/cgi-bin/koha/opac-authorities-home.pl">Authority search</a> <span class="divider">&rsaquo;</span></li>
15             <li><a href="#">[% summary.mainentry %][% IF authtypetext %] ([% authtypetext %])[% END %]</a></li>
16         </ul>
17
18         <div class="container-fluid">
19             <div class="row-fluid">
20                 [% IF ( OpacNav || OpacNavBottom ) %]
21                     <div class="span2">
22                         <div id="navigation">
23                             [% INCLUDE 'navigation.inc' %]
24                         </div>
25                     </div>
26                     <div class="span10">
27                 [% ELSE %]
28                     <div class="span12">
29                 [% END %]
30                     <div id="userauthdetails" class="maincontent">
31                         <div id="views">
32                             <span class="view">
33                                 <span id="Normalview">Normal view</span>
34                             </span>
35                             <span class="view">
36                                 <a id="MARCview" href="/cgi-bin/koha/opac-authoritiesdetail.pl?authid=[% authid %]&amp;marc=1">MARC view</a>
37                             </span>
38                         </div>
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
48                         <div class="usedin">
49                             Used in <a href="opac-search.pl?type=opac&amp;q=[% authid %]&amp;idx=an,phr">[% count %] records</a>
50                         </div>
51
52                         <div class="authstanza">
53                             [% FOREACH authorize IN summary.authorized %]
54                                 <div class="heading authorized auth[% seefro.field %]">
55                                     <span class="label">Preferred form: </span>
56                                     <span class="authorized">[% authorize.heading %]</span>
57                                 </div>
58                             [% END %]
59                             [% PROCESS otherscript headings=summary.otherscript wantcategory='preferred' %]
60                         </div>
61
62                         [% IF summary.seefrom.size %]
63                             <div class="authstanza seefrom">
64                                 <div class="authstanzaheading">Used for/see from:</div>
65                                 <ul class="seefrom">
66                                     [% FOREACH seefro IN summary.seefrom %]
67                                         <li class="heading seefrom auth[% seefro.field %]">
68                                             [% IF seefro.type && seefro.type != 'seefrom' %]
69                                                 <span class="label">[% PROCESS authtypelabel type=seefro.type | trim %]:</span>
70                                             [% END %]
71                                             <span class="seefrom">[% PROCESS authheadingdisplay heading=seefro.heading search=seefrosearch authid=seefro.authid %]</span>
72                                         </li>
73                                     [% END %]
74                                     [% PROCESS otherscript headings=summary.otherscript wantcategory='seefrom' %]
75                                 </ul>
76                             </div>
77                         [% END %]
78
79                         [% IF summary.seealso.size %]
80                             <div class="authstanza seealso">
81                                 <div class="authstanzaheading">See also:</div>
82                                 <ul class="seelso">
83                                     [% FOREACH seeals IN summary.seealso %]
84                                         <li class="heading seealso auth[% seeals.field %]">
85                                             [% IF seeals.type && seeals.type != 'seealso' %]
86                                                 <span class="label">[% PROCESS authtypelabel type=seeals.type | trim %]:</span>
87                                             [% END %]
88                                             <span class="seealso">[% PROCESS authheadingdisplay heading=seeals.heading search=seeals.search authid=seeals.authid %]</span>
89                                         </li>
90                                     [% END %]
91                                     [% PROCESS otherscript headings=summary.otherscript wantcategory='seealso' %]
92                                 </ul>
93                             </div>
94                         [% END %]
95
96                         [% IF marcflavour == 'UNIMARC' && summary.otherscript %]
97                             <div class="authstanza">
98                                 <div class="authstanzaheading">Other forms:</div>
99                                 <ul>
100                                     [% FOREACH otherscrip IN summary.otherscript %]
101                                         <li>
102                                             [% PROCESS language lang=otherscrip.lang | trim %]:
103                                             <span class="otherscript">[% otherscrip.term %]</span>
104                                         </li>
105                                     [% END %]
106                                 </ul>
107                             </div>
108                         [% END %]
109
110                         <div id="authdescriptions" class="toptabs">
111                             <ul>
112                                 <li id="tab_descriptions"><a href="#descriptions">Notes</a></li>
113                             </ul>
114                             <div id="descriptions">
115                                 <div class="content_set">
116                                     [% FOREACH note IN summary.notes %]
117                                         <p class="note auth[% note.field %]">[% note.note %]</p>
118                                     [% END %]
119                                 </div>
120                             </div>
121                         </div>
122                     </div> <!-- / .#userauthdetails -->
123                 </div> <!-- / .span10/12 -->
124             </div> <!-- / .row-fluid -->
125         </div> <!-- / .container-fluid -->
126     </div> <!-- / .main -->
127
128 [% INCLUDE 'opac-bottom.inc' %]
129 [% BLOCK jsinclude %]
130 [% IF ( displayhierarchy ) %]
131     <script type="text/javascript" src="/opac-tmpl/lib/jquery/plugins/jquery.jstree.js"></script>
132 [% END %]
133 <script type="text/javascript">
134     //<![CDATA[
135         $(document).ready(function() {
136             $('#authdescriptions').tabs();
137             [% IF ( displayhierarchy ) %]
138                 var current_nodes = [];
139                 $('.currentauth').each(function() {
140                     current_nodes.push('#' + $(this).parent().parents('li:first').attr('id'));
141                     });
142                 $('#hierarchies').jstree({
143                         "plugins": [ "themes", "html_data"],
144                         "themes": { "theme": "classic",
145                                     "icons": false },
146                         "core": { "initially_open": current_nodes }
147                     });
148             [% END %]
149         });
150     //]]>
151 </script>
152 [% END %]