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 ) %]<strong>[% subfiel.marc_subfield | html %]</strong>[% END %]
81 <span title="[% subfiel.long_desc | html %]" class="desc">[% subfiel.short_desc | html %]</span></label>
82 [% IF ( subfiel.is_url ) %]
83 <a href="[% subfiel.marc_value | url %]">[% subfiel.marc_value | html %]</a>
85 [% subfiel.marc_value | html %]
87 [% IF ( subfiel.link ) %]
88 <a href="/cgi-bin/koha/catalogue/search.pl?op=do_search&marclist=[% subfiel.link | uri %]&operator==&type=intranet&value=[% subfiel.marc_value |url %]">
89 <img src="[% interface | html %]/[% theme | html %]/images/filefind.png" height="15" title="Search on [% subfiel.marc_value | html %]">
92 [% IF ( subfiel.authority ) %]
93 <a href="/cgi-bin/koha/authorities/detail.pl?authid=[% subfiel.authority | uri %]" class="button">Auth</a>
106 [% MACRO jsinclude BLOCK %]
107 [% INCLUDE 'authorities_js.inc' %]
108 [% IF ( displayhierarchy ) %]
109 [% Asset.js("lib/jquery/plugins/jquery.jstree.js") | $raw %]
112 $(document).ready(function() {
113 var editAuth = $("#editAuth");
114 var editAuthLink = editAuth.attr("href");
115 $('#authoritiestabs').tabs({
116 activate: function( event, ui ){
117 editAuth.attr("href", editAuthLink + "#" + ui.newPanel.attr('id') );
120 [% IF ( displayhierarchy ) %]
121 var current_nodes = [];
122 $('.currentauth').each(function() {
123 current_nodes.push('#' + $(this).parent().parents('li:first').attr('id'));
125 $('#hierarchies').jstree({
126 "plugins": [ "themes", "html_data"],
127 "themes": { "theme": "classic",
129 "core": { "initially_open": current_nodes }
136 [% INCLUDE 'intranet-bottom.inc' %]