4 [% PROCESS 'authorities.inc' %]
5 [% INCLUDE 'doc-head-open.inc' %]
6 <title>Koha › Authorities ›
7 [% IF ( unknownauthid ) %]
8 Unknown authority record
10 Details for authority #[% authid | html %] ([% authtypetext | html %])
13 [% INCLUDE 'doc-head-close.inc' %]
14 [% Asset.css("css/addbiblio.css") | $raw %]
17 <body id="auth_detail" class="auth">
18 [% INCLUDE 'header.inc' %]
19 [% INCLUDE 'authorities-search.inc' %]
20 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/authorities/authorities-home.pl">Authorities</a> ›
21 [% IF ( unknownauthid ) %]
22 Unknown authority record
24 Details for authority #[% authid | html %] ([% authtypetext | html %])
28 <div class="main container-fluid">
30 <div class="col-md-8 col-md-offset-2">
32 [% INCLUDE 'authorities-toolbar.inc' %]
34 [% IF ( displayhierarchy ) %]
35 <div id="hierarchies">
36 [% PROCESS showhierarchy trees = loophierarchies %]
41 [% IF ( unknownauthid ) %]
42 <div class="dialog message">The authority record you requested does not exist ([% errauthid | html %]).</div>
44 <h1>Authority #[% authid | html %] ([% authtypetext | html %])</h1>
48 Used in <a href="/cgi-bin/koha/catalogue/search.pl?type=intranet&op=do_search&q=an=[% authid | uri %]">[% count | html %] record(s)</a>
50 This authority is not used in any records.
54 <div id="authoritiestabs" class="toptabs numbered">
56 [% FOREACH BIG_LOO IN BIG_LOOP %]
58 <a href="#tab[% BIG_LOO.number | uri %]XX">[% BIG_LOO.number | html %]</a>
63 [% FOREACH BIG_LOO IN BIG_LOOP %]
64 <div id="tab[% BIG_LOO.number | html %]XX">
65 [% FOREACH innerloo IN BIG_LOO.innerloop %]
66 [% IF ( innerloo.tag_number ) %]
68 <div class="tag_title">
69 <span class="tag_num marc_field">[% innerloo.tag_number | html %]</span>
70 [% IF (innerloo.defined("ind1") ) %]
71 <span class="tag_ind1">[% innerloo.ind1 | html %]</span><span class="tag_ind2">[% innerloo.ind2 | html %]</span>
73 [% IF (innerloo.tag_desc) %]
74 <span class="dashwrapper"> -</span> <span class="tag_desc marc_field">[% innerloo.tag_desc | html %]</span>
80 [% FOREACH subfiel IN innerloo.subfield %]
81 <div class="auth_subfield">
82 <div class="subfield_info marc_field">
83 [% UNLESS ( subfiel.hide_marc ) %]
84 <span class="marc_subfield">[% subfiel.marc_subfield | html %]</span>
86 <span class="marc_subfield_desc">[% subfiel.long_desc | html %]</span>
87 </div> <!-- /.subfield_info.marc_field -->
88 <div class="subfield_content marc_field">
89 <span class="subfield_value">
90 [% IF ( subfiel.is_url ) %]
91 <a href="[% subfiel.marc_value | url %]">[% subfiel.marc_value | html %]</a>
93 [% subfiel.marc_value | html %]
96 [% IF ( subfiel.link ) %]
97 <a href="/cgi-bin/koha/catalogue/search.pl?op=do_search&marclist=[% subfiel.link | uri %]&operator==&type=intranet&value=[% subfiel.marc_value |url %]">
98 <img src="[% interface | html %]/[% theme | html %]/images/filefind.png" height="15" title="Search on [% subfiel.marc_value | html %]">
101 [% IF ( subfiel.authority ) %]
102 <a href="/cgi-bin/koha/authorities/detail.pl?authid=[% subfiel.authority | uri %]" class="button">Auth</a>
104 </div> <!-- /.subfield_content.marc_field -->
105 </div> <!-- /.auth_subfield -->
116 [% MACRO jsinclude BLOCK %]
117 [% INCLUDE 'authorities_js.inc' %]
118 [% IF ( displayhierarchy ) %]
119 [% Asset.js("lib/jquery/plugins/jquery.jstree.js") | $raw %]
122 $(document).ready(function() {
123 var editAuth = $("#editAuth");
124 var editAuthLink = editAuth.attr("href");
125 $('#authoritiestabs').tabs({
126 activate: function( event, ui ){
127 editAuth.attr("href", editAuthLink + "#" + ui.newPanel.attr('id') );
130 [% IF ( displayhierarchy ) %]
131 var current_nodes = [];
132 $('.currentauth').each(function() {
133 current_nodes.push('#' + $(this).parent().parents('li:first').attr('id'));
135 $('#hierarchies').jstree({
136 "plugins": [ "themes", "html_data"],
137 "themes": { "theme": "classic",
139 "core": { "initially_open": current_nodes }
146 [% INCLUDE 'intranet-bottom.inc' %]