Bug 27742: Page titles have unique info first
[koha.git] / koha-tmpl / opac-tmpl / bootstrap / en / modules / opac-auth-MARCdetail.tt
1 [% USE raw %]
2 [% USE Asset %]
3 [% USE Koha %]
4 [% PROCESS 'opac-authorities.inc' %]
5 [% INCLUDE 'doc-head-open.inc' %]
6 <title>Entry [% authtypetext | html %] &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="#">Entry [% authtypetext | html %]</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-lg-2">
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="userauthMARCdetails" class="maincontent">
41                         <div id="views">
42                             <span class="view">
43                                 <a id="Normalview" href="/cgi-bin/koha/opac-authoritiesdetail.pl?authid=[% authid | html %]">Normal view</a>
44                             </span>
45                             <span class="view">
46                                 <span id="MARCview">MARC view</span>
47                             </span>
48                         </div>
49
50                         [% IF ( displayhierarchy ) %]
51                             <div id="hierarchies">
52                                 [% PROCESS showhierarchy trees = loophierarchies %]
53                             </div>
54                         [% END %]
55
56                         <h1>Entry [% authtypetext | html %]</h1>
57                         <p><a href="opac-search.pl?type=opac&amp;q=[% authid | uri %]&amp;idx=an,phr">Number of records used in: [% count | html %]</a></p>
58                             [% FOREACH Tag0X IN Tab0XX %]
59                                 <p><strong>[% Tag0X.tag | html %]</strong></p>
60                                 <ul>
61                                 [% FOREACH subfiel IN Tag0X.subfield %]
62                                     <li><strong>[% subfiel.marc_lib | $raw %]:</strong>
63                                     [% IF subfiel.isurl %]<a href="[% subfiel.marc_value | url %]">[% subfiel.marc_value | html %]</a>
64                                     [% ELSE %][% subfiel.marc_value | html %][% END %]</li>
65                                 [% END %]
66                                 </ul>
67                             [% END %]
68                     </div> <!-- / #userauthMARCdetails -->
69                 </div> <!-- / .col-lg-10/12 -->
70             </div> <!-- / .row -->
71         </div> <!-- / .container-fluid -->
72     </div> <!-- / .main -->
73
74 [% INCLUDE 'opac-bottom.inc' %]
75 [% BLOCK jsinclude %]
76     [% Asset.js("lib/jquery/plugins/jquery.jstree.js") | $raw %]
77     <script>
78         $(document).ready(function() {
79             [% IF ( displayhierarchy ) %]
80                 var current_nodes = [];
81                 $('.currentauth').each(function() {
82                     current_nodes.push('#' + $(this).parent().parents('li:first').attr('id'));
83                     });
84                 $('#hierarchies').jstree({
85                         "plugins": [ "themes", "html_data"],
86                         "themes": { "theme": "classic",
87                                     "icons": false },
88                         "core": { "initially_open": current_nodes }
89                     });
90             [% END %]
91         });
92     </script>
93 [% END %]