4 [% PROCESS 'opac-authorities.inc' %]
5 [% INCLUDE 'doc-head-open.inc' %]
6 <title>[% summary.mainentry | html %][% IF authtypetext %] ([% authtypetext | html %])[% END %] › Authority search › [% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Koha online[% END %] catalog</title>
7 [% INCLUDE 'doc-head-close.inc' %]
8 [% BLOCK cssinclude %][% END %]
10 [% INCLUDE 'bodytag.inc' bodyid='opac-authoritiesdetail' bodyclass='scrollto' %]
11 [% INCLUDE 'masthead.inc' %]
14 <nav aria-label="breadcrumb">
15 <ul class="breadcrumb">
16 <li class="breadcrumb-item">
17 <a href="/cgi-bin/koha/opac-main.pl">Home</a>
19 <li class="breadcrumb-item">
20 <a href="/cgi-bin/koha/opac-authorities-home.pl">Authority search</a>
22 <li class="breadcrumb-item" aria-current="page">
23 <a href="#">[% summary.mainentry | html %][% IF authtypetext %] ([% authtypetext | html %])[% END %]</a>
28 <div class="container-fluid">
30 [% IF ( OpacNav || OpacNavBottom ) %]
31 <div class="col col-lg-2 order-2 order-lg-1">
33 [% INCLUDE 'navigation.inc' %]
36 <div class="col-lg-10 order-first order-md-first order-lg-2">
38 <div class="col order-first order-md-first order-lg-2">
40 <div id="userauthdetails" class="maincontent">
43 <span id="Normalview">Normal view</span>
46 <a id="MARCview" href="/cgi-bin/koha/opac-authoritiesdetail.pl?authid=[% authid | html %]&marc=1">MARC view</a>
50 [% IF ( displayhierarchy ) %]
51 <div id="hierarchies">
52 [% PROCESS showhierarchy trees = loophierarchies %]
56 <h1>[% summary.mainentry | html %][% IF authtypetext %] ([% authtypetext | html %])[% END %]</h1>
59 [% IF count %]<a href="/cgi-bin/koha/opac-search.pl?type=opac&q=[% authid | uri %]&idx=an,phr">Number of records used in: [% count | html %]</a>[% ELSE %]This authority is not used in any records.[% END %]
62 <div class="authstanza">
63 [% FOREACH authorize IN summary.authorized %]
64 <div class="heading authorized auth[% seefro.field | html %]">
65 <span class="label">Preferred form: </span>
66 <span class="authorized">[% authorize.heading | html %]</span>
69 [% PROCESS otherscript headings=summary.otherscript wantcategory='preferred' %]
72 [% IF summary.seefrom.size %]
73 <div class="authstanza seefrom">
74 <div class="authstanzaheading">Used for/see from:</div>
76 [% FOREACH seefro IN summary.seefrom %]
77 <li class="heading seefrom auth[% seefro.field | html %]">
78 [% IF seefro.type && seefro.type != 'seefrom' %]
79 <span class="label">[% PROCESS authtypelabel type=seefro.type | trim %]:</span>
81 <span class="seefrom">[% PROCESS authheadingdisplay heading=seefro.heading search=seefrosearch authid=seefro.authid %]</span>
84 [% PROCESS otherscript headings=summary.otherscript wantcategory='seefrom' %]
89 [% IF summary.seealso.size %]
90 <div class="authstanza seealso">
91 <div class="authstanzaheading">See also:</div>
93 [% FOREACH seeals IN summary.seealso %]
94 <li class="heading seealso auth[% seeals.field | html %]">
95 [% IF seeals.type && seeals.type != 'seealso' %]
96 <span class="label">[% PROCESS authtypelabel type=seeals.type | trim %]:</span>
98 <span class="seealso">[% PROCESS authheadingdisplay heading=seeals.heading search=seeals.search authid=seeals.authid %]</span>
101 [% PROCESS otherscript headings=summary.otherscript wantcategory='seealso' %]
106 [% IF marcflavour == 'UNIMARC' && summary.otherscript %]
107 <div class="authstanza">
108 <div class="authstanzaheading">Other forms:</div>
110 [% FOREACH otherscrip IN summary.otherscript %]
112 [% PROCESS language lang=otherscrip.lang | trim %]:
113 <span class="otherscript">[% otherscrip.term | html %]</span>
120 [% IF ( MARCURLS ) %]
121 <div class="authstanza online_resources">
122 <span class="label">Online resources:</span>
124 [% FOREACH MARCurl IN MARCURLS %]
125 <li>[% IF ( MARCurl.part ) %][% MARCurl.part | html %]<br />[% END %]
126 [% IF ( Koha.Preference('OPACURLOpenInNewWindow') ) %]
127 <a href="[% MARCurl.MARCURL | url %]" title="[% MARCurl.MARCURL | html %]" target="_blank" rel="noreferrer">
129 <a href="[% MARCurl.MARCURL | url %]" title="[% MARCurl.MARCURL | html %]">
131 [% MARCurl.linktext | html %]</a>
132 [% IF ( MARCurl.notes ) %]
134 [% FOREACH note IN MARCurl.notes %]
135 <li>[% note.note | html %]</li>
140 [% END # /FOREACH MARCURLS %]
143 [% END # / IF MARCURLS %]
145 <div id="authdescriptions" class="toptabs">
147 <li id="tab_descriptions"><a href="#descriptions">Notes</a></li>
149 <div id="descriptions">
150 <div class="content_set">
151 [% FOREACH note IN summary.notes %]
152 <p class="note auth[% note.field | html %]">[% note.note | html %]</p>
157 </div> <!-- / .#userauthdetails -->
158 </div> <!-- / .col-lg-10/12 -->
159 </div> <!-- / .row -->
160 </div> <!-- / .container-fluid -->
161 </div> <!-- / .main -->
163 [% INCLUDE 'opac-bottom.inc' %]
164 [% BLOCK jsinclude %]
165 [% IF ( displayhierarchy ) %]
166 [% Asset.js("lib/jquery/plugins/jquery.jstree.js") | $raw %]
169 $(document).ready(function() {
170 $('#authdescriptions').tabs();
171 [% IF ( displayhierarchy ) %]
172 var current_nodes = [];
173 $('.currentauth').each(function() {
174 current_nodes.push('#' + $(this).parent().parents('li:first').attr('id'));
176 $('#hierarchies').jstree({
177 "plugins": [ "themes", "html_data"],
178 "themes": { "theme": "classic",
180 "core": { "initially_open": current_nodes }