Bug 27023: Add class names in acq suggestion table (suggestions column)
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / authorities / detail.tt
1 [% USE raw %]
2 [% USE Asset %]
3 [% SET footerjs = 1 %]
4 [% PROCESS 'authorities.inc' %]
5 [% INCLUDE 'doc-head-open.inc' %]
6 <title>Koha &rsaquo; Authorities &rsaquo;
7     [% IF ( unknownauthid ) %]
8       Unknown authority record
9     [% ELSE %]
10       Details for authority #[% authid | html %] ([% authtypetext | html %])
11     [% END %]
12 </title>
13 [% INCLUDE 'doc-head-close.inc' %]
14 [% Asset.css("css/addbiblio.css") | $raw %]
15 </head>
16
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> &rsaquo; <a href="/cgi-bin/koha/authorities/authorities-home.pl">Authorities</a> &rsaquo;
21     [% IF ( unknownauthid ) %]
22       Unknown authority record
23     [% ELSE %]
24       Details for authority #[% authid | html %] ([% authtypetext | html %])
25     [% END %]
26 </div>
27
28 <div class="main container-fluid">
29     <div class="row">
30         <div class="col-md-8 col-md-offset-2">
31
32     [% INCLUDE 'authorities-toolbar.inc' %]
33         
34 [% IF ( displayhierarchy ) %]
35 <div id="hierarchies">
36 [% PROCESS showhierarchy trees = loophierarchies %]
37 </div>
38 [% END %]
39
40
41 [% IF ( unknownauthid ) %]
42     <div class="dialog message">The authority record you requested does not exist ([% errauthid | html %]).</div>
43 [% ELSE %]
44 <h1>Authority #[% authid | html %] ([% authtypetext | html %])</h1>
45
46 <div id="action">
47     [% IF count %]
48         Used in <a href="/cgi-bin/koha/catalogue/search.pl?type=intranet&amp;op=do_search&amp;q=an=[% authid | uri %]">[% count | html %] record(s)</a>
49     [% ELSE %]
50         This authority is not used in any records.
51     [% END %]
52 </div>
53
54 <div id="authoritiestabs" class="toptabs numbered">
55     <ul>
56         [% FOREACH BIG_LOO IN BIG_LOOP %]
57             <li>
58                 <a href="#tab[% BIG_LOO.number | uri %]XX">[% BIG_LOO.number | html %]</a>
59             </li>
60         [% END %]
61     </ul>
62
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 ) %]
67             <div class="tag">
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>
72                     [% END %]
73                     [% IF (innerloo.tag_desc) %]
74                         <span class="dashwrapper"> -</span> <span class="tag_desc marc_field">[% innerloo.tag_desc | html %]</span>
75                     [% END %]
76                 </div>
77         [% ELSE %]
78             <div class="tag">
79         [% END %]
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>
85                     [% END %]
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>
92                         [% ELSE %]
93                             [% subfiel.marc_value | html %]
94                         [% END %]
95                     </span>
96                     [% IF ( subfiel.link ) %]
97                         <a href="/cgi-bin/koha/catalogue/search.pl?op=do_search&amp;marclist=[% subfiel.link | uri %]&amp;operator==&amp;type=intranet&amp;value=[% subfiel.marc_value |url %]">
98                             <img src="[% interface | html %]/[% theme | html %]/images/filefind.png" height="15" title="Search on [% subfiel.marc_value | html %]">
99                         </a>
100                     [% END %]
101                     [% IF ( subfiel.authority ) %]
102                         <a href="/cgi-bin/koha/authorities/detail.pl?authid=[% subfiel.authority | uri %]" class="button">Auth</a>
103                     [% END %]
104                 </div> <!-- /.subfield_content.marc_field -->
105             </div> <!-- /.auth_subfield -->
106         [% END %]
107         </div>
108     [% END %]
109     </div>
110 [% END %]
111 </div>
112 </div>
113 </div>
114 [% END %]
115
116 [% MACRO jsinclude BLOCK %]
117     [% INCLUDE 'authorities_js.inc' %]
118     [% IF ( displayhierarchy ) %]
119         [% Asset.js("lib/jquery/plugins/jquery.jstree.js") | $raw %]
120     [% END %]
121     <script>
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') );
128                 }
129             });
130             [% IF ( displayhierarchy ) %]
131                 var current_nodes = [];
132                 $('.currentauth').each(function() {
133                     current_nodes.push('#' + $(this).parent().parents('li:first').attr('id'));
134                     });
135                 $('#hierarchies').jstree({
136                         "plugins": [ "themes", "html_data"],
137                         "themes": { "theme": "classic",
138                                     "icons": false },
139                         "core": { "initially_open": current_nodes }
140                     });
141             [% END %]
142          });
143     </script>
144 [% END %]
145
146 [% INCLUDE 'intranet-bottom.inc' %]