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' %]
16 <body id="auth_detail" class="auth">
17 [% INCLUDE 'header.inc' %]
18 [% INCLUDE 'authorities-search.inc' %]
19 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/authorities/authorities-home.pl">Authorities</a> ›
20 [% IF ( unknownauthid ) %]
21 Unknown authority record
23 Details for authority #[% authid | html %] ([% authtypetext | html %])
27 <div class="main container-fluid">
29 <div class="col-md-8 col-md-offset-2">
31 [% INCLUDE 'authorities-toolbar.inc' %]
33 [% IF ( displayhierarchy ) %]
34 <div id="hierarchies">
35 [% PROCESS showhierarchy trees = loophierarchies %]
40 [% IF ( unknownauthid ) %]
41 <div class="dialog message">The authority record you requested does not exist ([% errauthid | html %]).</div>
43 <h1>Authority #[% authid | html %] ([% authtypetext | html %])</h1>
47 Used in <a href="/cgi-bin/koha/catalogue/search.pl?type=intranet&op=do_search&q=an=[% authid | uri %]">[% count | html %] record(s)</a>
49 This authority is not used in any records.
53 <div id="authoritiestabs" class="toptabs numbered">
55 [% FOREACH BIG_LOO IN BIG_LOOP %]
57 <a href="#tab[% BIG_LOO.number | uri %]XX">[% BIG_LOO.number | html %]</a>
62 [% FOREACH BIG_LOO IN BIG_LOOP %]
63 <div id="tab[% BIG_LOO.number | html %]XX">
64 [% FOREACH innerloo IN BIG_LOO.innerloop %]
65 [% IF ( innerloo.tag_number ) %]
67 <div class="tag_title">
68 <span class="tag_num">[% innerloo.tag_number | html %]</span>
69 [% IF (innerloo.defined("ind1") ) %]
70 <span class="tag_ind1">[% innerloo.ind1 | html %]</span><span class="tag_ind2">[% innerloo.ind2 | html %]</span>
72 [% IF (innerloo.tag_desc) %]<span class="dashwrapper"> -</span> <span class="tag_desc">[% innerloo.tag_desc | html %]</span>[% END %]
77 [% FOREACH subfiel IN innerloo.subfield %]
79 <label class="labelsubfield">
80 [% UNLESS ( subfiel.hide_marc ) %]<b>[% subfiel.marc_subfield | html %]</b>[% END %]
81 <span title="[% subfiel.long_desc | html %]" class="desc">[% subfiel.short_desc | html %]</span></label>
82 [% subfiel.marc_value | html %]
83 [% IF ( subfiel.link ) %]
84 <a href="/cgi-bin/koha/catalogue/search.pl?op=do_search&marclist=[% subfiel.link | uri %]&operator==&type=intranet&value=[% subfiel.marc_value |url %]">
85 <img src="[% interface | html %]/[% theme | html %]/images/filefind.png" height="15" title="Search on [% subfiel.marc_value | html %]">
88 [% IF ( subfiel.authority ) %]
89 <a href="/cgi-bin/koha/authorities/detail.pl?authid=[% subfiel.authority | uri %]" class="button">Auth</a>
102 [% MACRO jsinclude BLOCK %]
103 [% INCLUDE 'authorities_js.inc' %]
104 [% IF ( displayhierarchy ) %]
105 [% Asset.js("lib/jquery/plugins/jquery.jstree.js") | $raw %]
108 $(document).ready(function() {
109 $('#authoritiestabs').tabs();
110 [% IF ( displayhierarchy ) %]
111 var current_nodes = [];
112 $('.currentauth').each(function() {
113 current_nodes.push('#' + $(this).parent().parents('li:first').attr('id'));
115 $('#hierarchies').jstree({
116 "plugins": [ "themes", "html_data"],
117 "themes": { "theme": "classic",
119 "core": { "initially_open": current_nodes }
126 [% INCLUDE 'intranet-bottom.inc' %]