Bug 27742: Page titles have unique info first
[koha.git] / koha-tmpl / opac-tmpl / bootstrap / en / modules / opac-auth-detail.tt
1 [% USE raw %]
2 [% USE Asset %]
3 [% USE Koha %]
4 [% PROCESS 'opac-authorities.inc' %]
5 [% INCLUDE 'doc-head-open.inc' %]
6 <title>[% summary.mainentry | html %][% IF authtypetext %] ([% authtypetext | html %])[% END %] &rsaquo; Authority search &rsaquo; [% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Koha online[% END %] catalog</title>
7 [% INCLUDE 'doc-head-close.inc' %]
8 [% BLOCK cssinclude %][% END %]
9 </head>
10 [% INCLUDE 'bodytag.inc' bodyid='opac-authoritiesdetail' bodyclass='scrollto' %]
11 [% INCLUDE 'masthead.inc' %]
12
13     <div class="main">
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>
18                 </li>
19                 <li class="breadcrumb-item">
20                     <a href="/cgi-bin/koha/opac-authorities-home.pl">Authority search</a>
21                 </li>
22                 <li class="breadcrumb-item" aria-current="page">
23                     <a href="#">[% summary.mainentry | html %][% IF authtypetext %] ([% authtypetext | html %])[% END %]</a>
24                 </li>
25             </ul>
26         </nav>
27
28         <div class="container-fluid">
29             <div class="row">
30                 [% IF ( OpacNav || OpacNavBottom ) %]
31                     <div class="col col-lg-2 order-2 order-lg-1">
32                         <div id="navigation">
33                             [% INCLUDE 'navigation.inc' %]
34                         </div>
35                     </div>
36                     <div class="col-lg-10 order-first order-md-first order-lg-2">
37                 [% ELSE %]
38                     <div class="col order-first order-md-first order-lg-2">
39                 [% END %]
40                     <div id="userauthdetails" class="maincontent">
41                         <div id="views">
42                             <span class="view">
43                                 <span id="Normalview">Normal view</span>
44                             </span>
45                             <span class="view">
46                                 <a id="MARCview" href="/cgi-bin/koha/opac-authoritiesdetail.pl?authid=[% authid | html %]&amp;marc=1">MARC view</a>
47                             </span>
48                         </div>
49
50                         [% IF ( displayhierarchy ) %]
51                             <div id="hierarchies">
52                                 [% PROCESS showhierarchy trees = loophierarchies %]
53                             </div>
54                         [% END %]
55
56                         <h1>[% summary.mainentry | html %][% IF authtypetext %] ([% authtypetext | html %])[% END %]</h1>
57
58                         <div class="usedin">
59                             [% IF count %]<a href="/cgi-bin/koha/opac-search.pl?type=opac&amp;q=[% authid | uri %]&amp;idx=an,phr">Number of records used in: [% count | html %]</a>[% ELSE %]This authority is not used in any records.[% END %]
60                         </div>
61
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>
67                                 </div>
68                             [% END %]
69                             [% PROCESS otherscript headings=summary.otherscript wantcategory='preferred' %]
70                         </div>
71
72                         [% IF summary.seefrom.size %]
73                             <div class="authstanza seefrom">
74                                 <div class="authstanzaheading">Used for/see from:</div>
75                                 <ul class="seefrom">
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>
80                                             [% END %]
81                                             <span class="seefrom">[% PROCESS authheadingdisplay heading=seefro.heading search=seefrosearch authid=seefro.authid %]</span>
82                                         </li>
83                                     [% END %]
84                                     [% PROCESS otherscript headings=summary.otherscript wantcategory='seefrom' %]
85                                 </ul>
86                             </div>
87                         [% END %]
88
89                         [% IF summary.seealso.size %]
90                             <div class="authstanza seealso">
91                                 <div class="authstanzaheading">See also:</div>
92                                 <ul class="seelso">
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>
97                                             [% END %]
98                                             <span class="seealso">[% PROCESS authheadingdisplay heading=seeals.heading search=seeals.search authid=seeals.authid %]</span>
99                                         </li>
100                                     [% END %]
101                                     [% PROCESS otherscript headings=summary.otherscript wantcategory='seealso' %]
102                                 </ul>
103                             </div>
104                         [% END %]
105
106                         [% IF marcflavour == 'UNIMARC' && summary.otherscript %]
107                             <div class="authstanza">
108                                 <div class="authstanzaheading">Other forms:</div>
109                                 <ul>
110                                     [% FOREACH otherscrip IN summary.otherscript %]
111                                         <li>
112                                             [% PROCESS language lang=otherscrip.lang | trim %]:
113                                             <span class="otherscript">[% otherscrip.term | html %]</span>
114                                         </li>
115                                     [% END %]
116                                 </ul>
117                             </div>
118                         [% END %]
119
120                         [% IF ( MARCURLS ) %]
121                             <div class="authstanza online_resources">
122                                 <span class="label">Online resources:</span>
123                                 <ul>
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">
128                                             [% ELSE %]
129                                                 <a href="[% MARCurl.MARCURL | url %]" title="[% MARCurl.MARCURL | html %]">
130                                             [% END %]
131                                             [% MARCurl.linktext | html %]</a>
132                                             [% IF ( MARCurl.notes ) %]
133                                                 <ul>
134                                                     [% FOREACH note IN MARCurl.notes %]
135                                                         <li>[% note.note | html %]</li>
136                                                     [% END %]
137                                                 </ul>
138                                             [% END %]
139                                         </li>
140                                     [% END # /FOREACH MARCURLS %]
141                                 </ul>
142                             </div>
143                         [% END # / IF MARCURLS %]
144
145                         <div id="authdescriptions" class="toptabs">
146                             <ul>
147                                 <li id="tab_descriptions"><a href="#descriptions">Notes</a></li>
148                             </ul>
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>
153                                     [% END %]
154                                 </div>
155                             </div>
156                         </div>
157                     </div> <!-- / .#userauthdetails -->
158                 </div> <!-- / .col-lg-10/12 -->
159             </div> <!-- / .row -->
160         </div> <!-- / .container-fluid -->
161     </div> <!-- / .main -->
162
163 [% INCLUDE 'opac-bottom.inc' %]
164 [% BLOCK jsinclude %]
165 [% IF ( displayhierarchy ) %]
166     [% Asset.js("lib/jquery/plugins/jquery.jstree.js") | $raw %]
167 [% END %]
168 <script>
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'));
175                 });
176             $('#hierarchies').jstree({
177                     "plugins": [ "themes", "html_data"],
178                     "themes": { "theme": "classic",
179                                 "icons": false },
180                     "core": { "initially_open": current_nodes }
181                 });
182         [% END %]
183     });
184 </script>
185 [% END %]