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