4 [% PROCESS 'authorities.inc' %]
5 [% INCLUDE 'doc-head-open.inc' %]
7 [% IF ( unknownauthid ) %]
8 Unknown authority record
10 Details for authority #[% authid | html %] ([% authtypetext | html %])
11 [% END %] › Authorities › Koha
13 [% INCLUDE 'doc-head-close.inc' %]
14 [% Asset.css("css/addbiblio.css") | $raw %]
15 [% IF ( displayhierarchy ) %]
16 [% Asset.css("lib/jquery/plugins/jstree/themes/default/style.min.css") | $raw %]
20 <body id="auth_detail" class="auth">
21 [% INCLUDE 'header.inc' %]
22 [% INCLUDE 'authorities-search.inc' %]
24 <nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb">
27 <a href="/cgi-bin/koha/mainpage.pl">Home</a>
30 <a href="/cgi-bin/koha/authorities/authorities-home.pl">Authorities</a>
34 <a href="#" aria-current="page">
35 [% IF ( unknownauthid ) %]
36 Unknown authority record
38 Details for authority #[% authid | html %] ([% authtypetext | html %])
45 <div class="main container-fluid">
47 <div class="col-md-8 col-md-offset-2">
49 [% INCLUDE 'authorities-toolbar.inc' %]
51 [% IF ( displayhierarchy ) %]
52 <div id="hierarchies">
53 [% PROCESS showhierarchy trees = loophierarchies %]
58 [% IF ( unknownauthid ) %]
59 <h1>Authority does not exist</h1>
60 <div class="dialog message">The authority record you requested does not exist ([% errauthid | html %]).</div>
63 <h1>Authority #[% authid | html %] ([% authtypetext | html %])</h1>
67 Used in <a href="/cgi-bin/koha/catalogue/search.pl?type=intranet&op=do_search&q=an:[% authid | uri %]">[% count | html %] record(s)</a>
69 This authority is not used in any records.
73 <div id="authoritiestabs" class="toptabs numbered">
74 <ul class="nav nav-tabs" role="tablist">
75 [% FOREACH BIG_LOO IN BIG_LOOP %]
76 <li role="presentation">
77 <a href="#tab[% BIG_LOO.number | uri %]XX" aria-controls="tab[% BIG_LOO.number | uri %]XX" role="tab" data-toggle="tab">[% BIG_LOO.number | html %]</a>
81 <div class="tab-content">
82 [% FOREACH BIG_LOO IN BIG_LOOP %]
83 <div id="tab[% BIG_LOO.number | html %]XX" role="tabpanel" class="tab-pane">
84 [% FOREACH innerloo IN BIG_LOO.innerloop %]
85 [% IF ( innerloo.tag_number ) %]
87 <div class="tag_title">
88 <span class="tag_num marc_field">[% innerloo.tag_number | html %]</span>
89 [% IF (innerloo.defined("ind1") ) %]
90 <span class="tag_ind1">[% innerloo.ind1 | html %]</span><span class="tag_ind2">[% innerloo.ind2 | html %]</span>
92 [% IF (innerloo.tag_desc) %]
93 <span class="dashwrapper"> -</span> <span class="tag_desc marc_field">[% innerloo.tag_desc | html %]</span>
95 </div> <!-- /.tag_title -->
98 [% END # /IF ( innerloo.tag_number ) %]
100 [% FOREACH subfiel IN innerloo.subfield %]
101 <div class="auth_subfield">
102 <div class="subfield_info marc_field">
103 [% UNLESS ( subfiel.hide_marc ) %]
104 <span class="marc_subfield">[% subfiel.marc_subfield | html %]</span>
106 <span class="marc_subfield_desc">[% subfiel.long_desc | html %]</span>
107 </div> <!-- /.subfield_info.marc_field -->
108 <div class="subfield_content marc_field">
109 <span class="subfield_value">
110 [% IF ( subfiel.is_url ) %]
111 <a href="[% subfiel.marc_value | url %]">[% subfiel.marc_value | html %]</a>
113 [% subfiel.marc_value | html %]
116 </div> <!-- /.subfield_content.marc_field -->
117 </div> <!-- /.auth_subfield -->
118 [% END #/FOREACH subfiel %]
119 </div> <!-- /.tag -->
120 [% END # /FOREACH innerloo %]
121 </div> <!-- /.tab-pane -->
122 [% END # /FOREACH BIG_LOO %]
123 </div> <!-- /.tab-content -->
124 </div> <!-- /#authoritiestabs -->
125 [% END # /IF ( unknownauthid ) %]
126 </div> <!-- /.col-md-8 col-md-offset-2 -->
127 </div> <!-- /.row -->
129 [% MACRO jsinclude BLOCK %]
130 [% INCLUDE 'authorities_js.inc' %]
131 [% IF ( displayhierarchy ) %]
132 [% Asset.js("lib/jquery/plugins/jstree/jstree-3.3.12.min.js") | $raw %]
135 $(document).ready(function() {
136 if( $(".tab-pane.active").length < 1 ){
137 $("#authoritiestabs a:first").tab("show");
140 var editAuth = $("#editAuth");
141 var editAuthLink = editAuth.attr("href");
143 $("a[data-toggle='tab']").on("shown.bs.tab", function (e) {
144 var newTabId = $(this).attr("href");
145 editAuth.attr("href", editAuthLink + newTabId );
148 [% IF ( displayhierarchy ) %]
149 $('#hierarchies').jstree({
152 "icon" : "fa fa-file-o"
155 "plugins" : [ "types" ]
156 }).on('ready.jstree', function(){
157 $(this).jstree('open_all');
158 $("#hier"+[% authid | html %]+"_anchor").on("click",
159 function(e){e.preventDefault(); return false;}
160 ).css("text-decoration", "none").css("color", "#333");
161 $(".currentauth").css("text-decoration", "none").css("color", "#333");
162 }).bind("select_node.jstree", function (e, data) {
164 document.location.href = data.node.a_attr.href;
166 [% END # /IF ( displayhierarchy ) %]
171 [% INCLUDE 'intranet-bottom.inc' %]