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 %]
12 [% IF ( displayhierarchy ) %]
13 [% Asset.css("lib/jquery/plugins/jstree/themes/default/style.min.css") | $raw %]
17 [% INCLUDE 'bodytag.inc' bodyid='opac-authoritiesdetail' bodyclass='scrollto' %]
18 [% INCLUDE 'masthead.inc' %]
21 <nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumbs">
22 <ol class="breadcrumb">
23 <li class="breadcrumb-item">
24 <a href="/cgi-bin/koha/opac-main.pl">Home</a>
26 <li class="breadcrumb-item">
27 <a href="/cgi-bin/koha/opac-authorities-home.pl">Authority search</a>
29 <li class="breadcrumb-item active">
30 <a href="#" aria-current="page">[% summary.mainentry | html %][% IF authtypetext %] ([% authtypetext | html %])[% END %]</a>
33 </nav> <!-- /#breadcrumbs -->
35 <div class="container-fluid">
37 [% IF ( OpacNav || OpacNavBottom ) %]
38 <div class="col col-lg-2 order-2 order-lg-1">
40 [% INCLUDE 'navigation.inc' %]
43 <div class="col-lg-10 order-first order-md-first order-lg-2">
45 <div class="col order-first order-md-first order-lg-2">
47 <div id="userauthdetails" class="maincontent">
50 <span id="Normalview">Normal view</span>
53 <a id="MARCview" href="/cgi-bin/koha/opac-authoritiesdetail.pl?authid=[% authid | html %]&marc=1">MARC view</a>
57 [% IF ( displayhierarchy ) %]
58 <div id="hierarchies">
59 [% PROCESS showhierarchy trees = loophierarchies %]
63 <h1>[% summary.mainentry | html %][% IF authtypetext %] ([% authtypetext | html %])[% END %]</h1>
66 [% 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 %]
69 <div class="authstanza">
70 [% FOREACH authorize IN summary.authorized %]
71 <div class="heading authorized auth[% seefro.field | html %]">
72 <span class="label">Preferred form: </span>
73 <span class="authorized">[% authorize.heading | html %]</span>
76 [% PROCESS otherscript headings=summary.otherscript wantcategory='preferred' %]
79 [% IF summary.seefrom.size %]
80 <div class="authstanza seefrom">
81 <div class="authstanzaheading">Used for/see from:</div>
83 [% FOREACH seefro IN summary.seefrom %]
84 <li class="heading seefrom auth[% seefro.field | html %]">
85 [% IF seefro.type && seefro.type != 'seefrom' %]
86 <span class="label">[% PROCESS authtypelabel type=seefro.type | trim %]:</span>
88 <span class="seefrom">[% PROCESS authheadingdisplay heading=seefro.heading search=seefrosearch authid=seefro.authid %]</span>
91 [% PROCESS otherscript headings=summary.otherscript wantcategory='seefrom' %]
96 [% IF summary.seealso.size %]
97 <div class="authstanza seealso">
98 <div class="authstanzaheading">See also:</div>
100 [% FOREACH seeals IN summary.seealso %]
101 <li class="heading seealso auth[% seeals.field | html %]">
102 [% IF seeals.type && seeals.type != 'seealso' %]
103 <span class="label">[% PROCESS authtypelabel type=seeals.type | trim %]:</span>
105 <span class="seealso">[% PROCESS authheadingdisplay heading=seeals.heading search=seeals.search authid=seeals.authid %]</span>
108 [% PROCESS otherscript headings=summary.otherscript wantcategory='seealso' %]
113 [% IF marcflavour == 'UNIMARC' && summary.otherscript %]
114 <div class="authstanza">
115 <div class="authstanzaheading">Other forms:</div>
117 [% FOREACH otherscrip IN summary.otherscript %]
119 [% PROCESS language lang=otherscrip.lang | trim %]:
120 <span class="otherscript">[% otherscrip.term | html %]</span>
127 [% IF ( MARCURLS ) %]
128 <div class="authstanza online_resources">
129 <span class="label">Online resources:</span>
131 [% FOREACH MARCurl IN MARCURLS %]
132 <li>[% IF ( MARCurl.part ) %][% MARCurl.part | html %]<br />[% END %]
133 [% IF ( Koha.Preference('OPACURLOpenInNewWindow') ) %]
134 <a href="[% MARCurl.MARCURL | url %]" title="[% MARCurl.MARCURL | html %]" target="_blank" rel="noreferrer">
136 <a href="[% MARCurl.MARCURL | url %]" title="[% MARCurl.MARCURL | html %]">
138 [% MARCurl.linktext | html %]</a>
139 [% IF ( MARCurl.notes ) %]
141 [% FOREACH note IN MARCurl.notes %]
142 <li>[% note.note | html %]</li>
147 [% END # /FOREACH MARCURLS %]
150 [% END # / IF MARCURLS %]
152 <div id="authdescriptions" class="toptabs">
154 <li id="tab_descriptions"><a href="#descriptions">Notes</a></li>
156 <div id="descriptions">
157 <div class="content_set">
158 [% FOREACH note IN summary.notes %]
159 <p class="note auth[% note.field | html %]">[% note.note | html %]</p>
164 </div> <!-- / .#userauthdetails -->
165 </div> <!-- / .col-lg-10/12 -->
166 </div> <!-- / .row -->
167 </div> <!-- / .container-fluid -->
168 </div> <!-- / .main -->
170 [% INCLUDE 'opac-bottom.inc' %]
171 [% BLOCK jsinclude %]
172 [% IF ( displayhierarchy ) %]
173 [% Asset.js("lib/jquery/plugins/jstree/jstree-3.3.12.min.js") | $raw %]
176 $(document).ready(function() {
177 $('#authdescriptions').tabs();
178 [% IF ( displayhierarchy ) %]
179 $('#hierarchies').jstree({
182 "icon" : "fa fa-file-o"
185 "plugins" : [ "types" ]
186 }).on('ready.jstree', function(){ $(this).jstree('open_all')
187 }).bind("select_node.jstree", function (e, data) {
189 document.location.href = data.node.a_attr.href;