4 [% USE AdditionalContents %]
5 [% PROCESS 'opac-authorities.inc' %]
6 [% SET OpacNav = AdditionalContents.get( location => "OpacNav", lang => lang, library => logged_in_user.branchcode || default_branch, blocktitle => 0 ) %]
7 [% SET OpacNavBottom = AdditionalContents.get( location => "OpacNavBottom", lang => lang, library => logged_in_user.branchcode || default_branch, 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 %]
16 [%# FIXME authid is modified when passed authheadingdisplay %]
17 [%# It's then wrong in the JS %]
18 [% SET original_authid = authid %]
20 [% INCLUDE 'bodytag.inc' bodyid='opac-authoritiesdetail' bodyclass='scrollto' %]
21 [% INCLUDE 'masthead.inc' %]
24 <nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumbs">
25 <ol class="breadcrumb">
26 <li class="breadcrumb-item">
27 <a href="/cgi-bin/koha/opac-main.pl">Home</a>
29 <li class="breadcrumb-item">
30 <a href="/cgi-bin/koha/opac-authorities-home.pl">Authority search</a>
32 <li class="breadcrumb-item active">
33 <a href="#" aria-current="page">[% summary.mainentry | html %][% IF authtypetext %] ([% authtypetext | html %])[% END %]</a>
36 </nav> <!-- /#breadcrumbs -->
38 <div class="container-fluid">
40 [% IF ( OpacNav || OpacNavBottom ) %]
41 <div class="col col-lg-2 order-2 order-lg-1">
43 [% INCLUDE 'navigation.inc' %]
46 <div class="col-lg-10 order-first order-md-first order-lg-2">
48 <div class="col order-first order-md-first order-lg-2">
50 <div id="userauthdetails" class="maincontent">
53 <span id="Normalview">Normal view</span>
56 <a id="MARCview" href="/cgi-bin/koha/opac-authoritiesdetail.pl?authid=[% authid | html %]&marc=1">MARC view</a>
60 [% IF ( displayhierarchy ) %]
61 <div id="hierarchies">
62 [% PROCESS showhierarchy trees = loophierarchies %]
66 <h1>[% summary.mainentry | html %][% IF authtypetext %] ([% authtypetext | html %])[% END %]</h1>
69 [% 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 %]
72 <div class="authstanza">
73 [% FOREACH authorize IN summary.authorized %]
74 <div class="heading authorized auth[% seefro.field | html %]">
75 <span class="label">Preferred form: </span>
76 <span class="authorized">[% authorize.heading | html %]</span>
79 [% PROCESS otherscript headings=summary.otherscript wantcategory='preferred' %]
82 [% IF summary.seefrom.size %]
83 <div class="authstanza seefrom">
84 <div class="authstanzaheading">Used for/see from:</div>
86 [% FOREACH seefro IN summary.seefrom %]
87 <li class="heading seefrom auth[% seefro.field | html %]">
88 [% IF seefro.type && seefro.type != 'seefrom' %]
89 <span class="label">[% PROCESS authtypelabel type=seefro.type | trim %]:</span>
91 <span class="seefrom">[% PROCESS authheadingdisplay heading=seefro.heading search=seefrosearch authid=seefro.authid %]</span>
94 [% PROCESS otherscript headings=summary.otherscript wantcategory='seefrom' %]
99 [% IF summary.seealso.size %]
100 <div class="authstanza seealso">
101 <div class="authstanzaheading">See also:</div>
103 [% FOREACH seeals IN summary.seealso %]
104 <li class="heading seealso auth[% seeals.field | html %]">
105 [% IF seeals.type && seeals.type != 'seealso' %]
106 <span class="label">[% PROCESS authtypelabel type=seeals.type | trim %]:</span>
108 <span class="seealso">[% PROCESS authheadingdisplay heading=seeals.heading search=seeals.search authid=seeals.authid %]</span>
111 [% PROCESS otherscript headings=summary.otherscript wantcategory='seealso' %]
116 [% IF marcflavour == 'UNIMARC' && summary.otherscript %]
117 <div class="authstanza">
118 <div class="authstanzaheading">Other forms:</div>
120 [% FOREACH otherscrip IN summary.otherscript %]
122 [% PROCESS language lang=otherscrip.lang | trim %]:
123 <span class="otherscript">[% otherscrip.term | html %]</span>
130 [% IF ( MARCURLS ) %]
131 <div class="authstanza online_resources">
132 <span class="label">Online resources:</span>
134 [% FOREACH MARCurl IN MARCURLS %]
135 <li>[% IF ( MARCurl.part ) %][% MARCurl.part | html %]<br />[% END %]
136 [% IF ( Koha.Preference('OPACURLOpenInNewWindow') ) %]
137 <a href="[% MARCurl.MARCURL | url %]" title="[% MARCurl.MARCURL | html %]" target="_blank" rel="noreferrer">
139 <a href="[% MARCurl.MARCURL | url %]" title="[% MARCurl.MARCURL | html %]">
141 [% MARCurl.linktext | html %]</a>
142 [% IF ( MARCurl.notes ) %]
144 [% FOREACH note IN MARCurl.notes %]
145 <li>[% note.note | html %]</li>
150 [% END # /FOREACH MARCURLS %]
153 [% END # / IF MARCURLS %]
155 <div id="authdescriptions" class="toptabs">
156 <ul class="nav nav-tabs" role="tablist">
157 <li id="tab_descriptions" class="nav-item" role="presentation">
158 <a class="nav-link active" id="descriptions-tab" data-toggle="tab" href="#descriptions" role="tab" aria-controls="descriptions" aria-selected="true" href="#descriptions">Notes</a>
161 <div class="tab-content">
162 <div class="tab-pane active" role="tabpanel" aria-labelledby="descriptions-tab" id="descriptions">
163 <div class="content_set">
164 [% FOREACH note IN summary.notes %]
165 <p class="note auth[% note.field | html %]">[% note.note | html %]</p>
169 </div> <!-- /.tab-content -->
171 </div> <!-- / .#userauthdetails -->
172 </div> <!-- / .col-lg-10/12 -->
173 </div> <!-- / .row -->
174 </div> <!-- / .container-fluid -->
175 </div> <!-- / .main -->
177 [% INCLUDE 'opac-bottom.inc' %]
178 [% BLOCK jsinclude %]
179 [% IF ( displayhierarchy ) %]
180 [% Asset.js("lib/jquery/plugins/jstree/jstree-3.3.12.min.js") | $raw %]
183 $(document).ready(function() {
184 [% IF ( displayhierarchy ) %]
185 $('#hierarchies').jstree({
188 "icon" : "fa fa-file-o"
191 "plugins" : [ "types" ]
192 }).on('ready.jstree', function(){
193 $(this).jstree('open_all');
194 $("#hier"+[% original_authid | html %]+"_anchor").on("click",
195 function(e){e.preventDefault(); return false;}
196 ).css("text-decoration", "none").css("color", "#333");
197 $(".currentauth").css("text-decoration", "none").css("color", "#333");
198 }).bind("select_node.jstree", function (e, data) {
200 document.location.href = data.node.a_attr.href;