Bug 14544: QA fixes - some minor bug fixes
[koha.git] / koha-tmpl / opac-tmpl / bootstrap / en / modules / opac-auth-MARCdetail.tt
1 [% USE Koha %]
2 [% PROCESS 'opac-authorities.inc' %]
3 [% INCLUDE 'doc-head-open.inc' %]
4 <title>[% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha online[% END %] catalog &rsaquo;  Entry [% authtypetext %]</title>
5 [% INCLUDE 'doc-head-close.inc' %]
6 [% BLOCK cssinclude %][% END %]
7 </head>
8 [% INCLUDE 'bodytag.inc' bodyid='opac-authoritiesdetail' bodyclass='scrollto' %]
9 [% INCLUDE 'masthead.inc' %]
10
11     <div class="main">
12         <ul class="breadcrumb">
13             <li><a href="/cgi-bin/koha/opac-main.pl">Home</a> <span class="divider">&rsaquo;</span></li>
14             <li><a href="/cgi-bin/koha/opac-authorities-home.pl">Authority search</a> <span class="divider">&rsaquo;</span></li>
15             <li><a href="#">Entry [% authtypetext %]</a></li>
16         </ul>
17
18         <div class="container-fluid">
19             <div class="row-fluid">
20                 [% IF ( OpacNav || OpacNavBottom ) %]
21                     <div class="span2">
22                         <div id="navigation">
23                             [% INCLUDE 'navigation.inc' %]
24                         </div>
25                     </div>
26                     <div class="span10">
27                 [% ELSE %]
28                     <div class="span12">
29                 [% END %]
30                     <div id="userauthMARCdetails" class="maincontent">
31                         <div id="views">
32                             <span class="view">
33                                 <a id="Normalview" href="/cgi-bin/koha/opac-authoritiesdetail.pl?authid=[% authid %]">Normal view</a>
34                             </span>
35                             <span class="view">
36                                 <span id="MARCview">MARC view</span>
37                             </span>
38                         </div>
39
40                         [% IF ( displayhierarchy ) %]
41                             <div id="hierarchies">
42                                 [% PROCESS showhierarchy trees = loophierarchies %]
43                             </div>
44                         [% END %]
45
46                         <h1>Entry [% authtypetext %]</h1>
47                         <p>Used in <a href="opac-search.pl?type=opac&amp;q=[% authid %]&amp;idx=an,phr">[% count %] records</a></p>
48                             [% FOREACH Tag0X IN Tab0XX %]
49                                 <p><b>[% Tag0X.tag %]</b></p>
50                                 <ul>
51                                 [% FOREACH subfiel IN Tag0X.subfield %]
52                                     <li><b>[% subfiel.marc_lib %]:</b>
53                                     [% IF subfiel.isurl %]<a href="[% subfiel.marc_value %]">[% subfiel.marc_value %]</a>
54                                     [% ELSE %][% subfiel.marc_value %][% END %]</li>
55                                 [% END %]
56                                 </ul>
57                             [% END %]
58                     </div> <!-- / #userauthMARCdetails -->
59                 </div> <!-- / .span10/12 -->
60             </div> <!-- / .row-fluid -->
61         </div> <!-- / .container-fluid -->
62     </div> <!-- / .main -->
63
64 [% INCLUDE 'opac-bottom.inc' %]
65 [% BLOCK jsinclude %]
66 <script type="text/javascript" src="/opac-tmpl/lib/jquery/plugins/jquery.jstree.js"></script>
67 <script type="text/javascript">
68     //<![CDATA[
69         $(document).ready(function() {
70             [% IF ( displayhierarchy ) %]
71                 var current_nodes = [];
72                 $('.currentauth').each(function() {
73                     current_nodes.push('#' + $(this).parent().parents('li:first').attr('id'));
74                     });
75                 $('#hierarchies').jstree({
76                         "plugins": [ "themes", "html_data"],
77                         "themes": { "theme": "classic",
78                                     "icons": false },
79                         "core": { "initially_open": current_nodes }
80                     });
81             [% END %]
82         });
83     //]]>
84 </script>
85 [% END %]