4 [% USE AdditionalContents %]
5 [% PROCESS 'opac-authorities.inc' %]
6 [% SET OpacNav = AdditionalContents.get( location => "OpacNav", lang => lang, library => logged_in_user.branchcode, blocktitle => 0 ) %]
7 [% SET OpacNavBottom = AdditionalContents.get( location => "OpacNavBottom", lang => lang, library => logged_in_user.branchcode, blocktitle => 0 ) %]
8 [% INCLUDE 'doc-head-open.inc' %]
9 <title>[% summary.mainentry | html %][% IF authtypetext %] ([% authtypetext | html %])[% END %] › Authority search › [% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Koha online[% END %] catalog</title>
10 [% INCLUDE 'doc-head-close.inc' %]
11 [% BLOCK cssinclude %][% END %]
13 [% INCLUDE 'bodytag.inc' bodyid='opac-authoritiesdetail' bodyclass='scrollto' %]
14 [% INCLUDE 'masthead.inc' %]
17 <nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumbs">
18 <ol class="breadcrumb">
19 <li class="breadcrumb-item">
20 <a href="/cgi-bin/koha/opac-main.pl">Home</a>
22 <li class="breadcrumb-item">
23 <a href="/cgi-bin/koha/opac-authorities-home.pl">Authority search</a>
25 <li class="breadcrumb-item active">
26 <a href="#" aria-current="page">[% summary.mainentry | html %][% IF authtypetext %] ([% authtypetext | html %])[% END %]</a>
29 </nav> <!-- /#breadcrumbs -->
31 <div class="container-fluid">
33 [% IF ( OpacNav || OpacNavBottom ) %]
34 <div class="col col-lg-2 order-2 order-lg-1">
36 [% INCLUDE 'navigation.inc' %]
39 <div class="col-lg-10 order-first order-md-first order-lg-2">
41 <div class="col order-first order-md-first order-lg-2">
43 <div id="userauthdetails" class="maincontent">
46 <span id="Normalview">Normal view</span>
49 <a id="MARCview" href="/cgi-bin/koha/opac-authoritiesdetail.pl?authid=[% authid | html %]&marc=1">MARC view</a>
53 [% IF ( displayhierarchy ) %]
54 <div id="hierarchies">
55 [% PROCESS showhierarchy trees = loophierarchies %]
59 <h1>[% summary.mainentry | html %][% IF authtypetext %] ([% authtypetext | html %])[% END %]</h1>
62 [% 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 %]
65 <div class="authstanza">
66 [% FOREACH authorize IN summary.authorized %]
67 <div class="heading authorized auth[% seefro.field | html %]">
68 <span class="label">Preferred form: </span>
69 <span class="authorized">[% authorize.heading | html %]</span>
72 [% PROCESS otherscript headings=summary.otherscript wantcategory='preferred' %]
75 [% IF summary.seefrom.size %]
76 <div class="authstanza seefrom">
77 <div class="authstanzaheading">Used for/see from:</div>
79 [% FOREACH seefro IN summary.seefrom %]
80 <li class="heading seefrom auth[% seefro.field | html %]">
81 [% IF seefro.type && seefro.type != 'seefrom' %]
82 <span class="label">[% PROCESS authtypelabel type=seefro.type | trim %]:</span>
84 <span class="seefrom">[% PROCESS authheadingdisplay heading=seefro.heading search=seefrosearch authid=seefro.authid %]</span>
87 [% PROCESS otherscript headings=summary.otherscript wantcategory='seefrom' %]
92 [% IF summary.seealso.size %]
93 <div class="authstanza seealso">
94 <div class="authstanzaheading">See also:</div>
96 [% FOREACH seeals IN summary.seealso %]
97 <li class="heading seealso auth[% seeals.field | html %]">
98 [% IF seeals.type && seeals.type != 'seealso' %]
99 <span class="label">[% PROCESS authtypelabel type=seeals.type | trim %]:</span>
101 <span class="seealso">[% PROCESS authheadingdisplay heading=seeals.heading search=seeals.search authid=seeals.authid %]</span>
104 [% PROCESS otherscript headings=summary.otherscript wantcategory='seealso' %]
109 [% IF marcflavour == 'UNIMARC' && summary.otherscript %]
110 <div class="authstanza">
111 <div class="authstanzaheading">Other forms:</div>
113 [% FOREACH otherscrip IN summary.otherscript %]
115 [% PROCESS language lang=otherscrip.lang | trim %]:
116 <span class="otherscript">[% otherscrip.term | html %]</span>
123 [% IF ( MARCURLS ) %]
124 <div class="authstanza online_resources">
125 <span class="label">Online resources:</span>
127 [% FOREACH MARCurl IN MARCURLS %]
128 <li>[% IF ( MARCurl.part ) %][% MARCurl.part | html %]<br />[% END %]
129 [% IF ( Koha.Preference('OPACURLOpenInNewWindow') ) %]
130 <a href="[% MARCurl.MARCURL | url %]" title="[% MARCurl.MARCURL | html %]" target="_blank" rel="noreferrer">
132 <a href="[% MARCurl.MARCURL | url %]" title="[% MARCurl.MARCURL | html %]">
134 [% MARCurl.linktext | html %]</a>
135 [% IF ( MARCurl.notes ) %]
137 [% FOREACH note IN MARCurl.notes %]
138 <li>[% note.note | html %]</li>
143 [% END # /FOREACH MARCURLS %]
146 [% END # / IF MARCURLS %]
148 <div id="authdescriptions" class="toptabs">
150 <li id="tab_descriptions"><a href="#descriptions">Notes</a></li>
152 <div id="descriptions">
153 <div class="content_set">
154 [% FOREACH note IN summary.notes %]
155 <p class="note auth[% note.field | html %]">[% note.note | html %]</p>
160 </div> <!-- / .#userauthdetails -->
161 </div> <!-- / .col-lg-10/12 -->
162 </div> <!-- / .row -->
163 </div> <!-- / .container-fluid -->
164 </div> <!-- / .main -->
166 [% INCLUDE 'opac-bottom.inc' %]
167 [% BLOCK jsinclude %]
168 [% IF ( displayhierarchy ) %]
169 [% Asset.js("lib/jquery/plugins/jquery.jstree.js") | $raw %]
172 $(document).ready(function() {
173 $('#authdescriptions').tabs();
174 [% IF ( displayhierarchy ) %]
175 var current_nodes = [];
176 $('.currentauth').each(function() {
177 current_nodes.push('#' + $(this).parent().parents('li:first').attr('id'));
179 $('#hierarchies').jstree({
180 "plugins": [ "themes", "html_data"],
181 "themes": { "theme": "classic",
183 "core": { "initially_open": current_nodes }