Bug 11810: Input fields in OPAC suggestion form are a bit short (Bootstrap)
[koha.git] / koha-tmpl / opac-tmpl / bootstrap / en / modules / opac-auth-detail.tt
1 [% USE Koha %]
2 [% PROCESS 'opac-authorities.inc' %]
3 [% INCLUDE 'doc-head-open.inc' %][% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha online[% END %] catalog › Authority search › [% summary.mainentry %][% IF authtypetext %] ([% authtypetext %])[% END %]
4 [% INCLUDE 'doc-head-close.inc' %]
5 [% BLOCK cssinclude %][% END %]
6 </head>
7 <body id="opac-authoritiesdetail" class="scrollto">
8 [% INCLUDE 'masthead.inc' %]
9
10     <div class="main">
11         <ul class="breadcrumb">
12             <li><a href="/cgi-bin/koha/opac-main.pl">Home</a> <span class="divider">&rsaquo;</span></li>
13             <li><a href="/cgi-bin/koha/opac-authorities-home.pl">Authority search</a> <span class="divider">&rsaquo;</span></li>
14             <li><a href="#">[% summary.mainentry %][% IF authtypetext %] ([% authtypetext %])[% END %]</a></li>
15         </ul>
16
17         <div class="container-fluid">
18             <div class="row-fluid">
19                 [% IF ( OpacNav || OpacNavBottom ) %]
20                     <div class="span2">
21                         <div id="navigation">
22                             [% INCLUDE 'navigation.inc' %]
23                         </div>
24                     </div>
25                     <div class="span10">
26                 [% ELSE %]
27                     <div class="span12">
28                 [% END %]
29                     <div id="userauthdetails" class="maincontent">
30                         <div id="views">
31                             <span class="view">
32                                 <span id="Normalview">Normal view</span>
33                             </span>
34                             <span class="view">
35                                 <a id="MARCview" href="/cgi-bin/koha/opac-authoritiesdetail.pl?authid=[% authid %]&amp;marc=1">MARC view</a>
36                             </span>
37                         </div>
38
39                         [% IF ( displayhierarchy ) %]
40                             <div id="hierarchies">
41                                 [% PROCESS showhierarchy trees = loophierarchies %]
42                             </div>
43                         [% END %]
44
45                         <h1>[% summary.mainentry %][% IF authtypetext %] ([% authtypetext %])[% END %]</h1>
46
47                         <div class="usedin">
48                             Used in <a href="opac-search.pl?type=opac&amp;q=[% authid %]&amp;idx=an,phr">[% count %] records</a>
49                         </div>
50
51                         <div class="authstanza">
52                             [% FOREACH authorize IN summary.authorized %]
53                                 <div class="heading authorized auth[% seefro.field %]">
54                                     <span class="label">Preferred form: </span>
55                                     <span class="authorized">[% authorize.heading %]</span>
56                                 </div>
57                             [% END %]
58                             [% PROCESS otherscript headings=summary.otherscript wantcategory='preferred' %]
59                         </div>
60
61                         [% IF summary.seefrom.size %]
62                             <div class="authstanza seefrom">
63                                 <div class="authstanzaheading">Used for/see from:</div>
64                                 <ul class="seefrom">
65                                     [% FOREACH seefro IN summary.seefrom %]
66                                         <li class="heading seefrom auth[% seefro.field %]">
67                                             [% IF seefro.type && seefro.type != 'seefrom' %]
68                                                 <span class="label">[% PROCESS authtypelabel type=seefro.type | trim %]:</span>
69                                             [% END %]
70                                             <span class="seefrom">[% PROCESS authheadingdisplay heading=seefro.heading search=seefrosearch authid=seefro.authid %]</span>
71                                         </li>
72                                     [% END %]
73                                     [% PROCESS otherscript headings=summary.otherscript wantcategory='seefrom' %]
74                                 </ul>
75                             </div>
76                         [% END %]
77
78                         [% IF summary.seealso.size %]
79                             <div class="authstanza seealso">
80                                 <div class="authstanzaheading">See also:</div>
81                                 <ul class="seelso">
82                                     [% FOREACH seeals IN summary.seealso %]
83                                         <li class="heading seealso auth[% seeals.field %]">
84                                             [% IF seeals.type && seeals.type != 'seealso' %]
85                                                 <span class="label">[% PROCESS authtypelabel type=seeals.type | trim %]:</span>
86                                             [% END %]
87                                             <span class="seealso">[% PROCESS authheadingdisplay heading=seeals.heading search=seeals.search authid=seeals.authid %]</span>
88                                         </li>
89                                     [% END %]
90                                     [% PROCESS otherscript headings=summary.otherscript wantcategory='seealso' %]
91                                 </ul>
92                             </div>
93                         [% END %]
94
95                         [% IF marcflavour == 'UNIMARC' && summary.otherscript %]
96                             <div class="authstanza">
97                                 <div class="authstanzaheading">Other forms:</div>
98                                 <ul>
99                                     [% FOREACH otherscrip IN summary.otherscript %]
100                                         <li>
101                                             [% PROCESS language lang=otherscrip.lang | trim %]:
102                                             <span class="otherscript">[% otherscrip.term %]</span>
103                                         </li>
104                                     [% END %]
105                                 </ul>
106                             </div>
107                         [% END %]
108
109                         <div id="authdescriptions" class="toptabs">
110                             <ul>
111                                 <li id="tab_descriptions"><a href="#descriptions">Notes</a></li>
112                             </ul>
113                             <div id="descriptions">
114                                 <div class="content_set">
115                                     [% FOREACH note IN summary.notes %]
116                                         <p class="note auth[% note.field %]">[% note.note %]</p>
117                                     [% END %]
118                                 </div>
119                             </div>
120                         </div>
121                     </div> <!-- / .#userauthdetails -->
122                 </div> <!-- / .span10/12 -->
123             </div> <!-- / .row-fluid -->
124         </div> <!-- / .container-fluid -->
125     </div> <!-- / .main -->
126
127 [% INCLUDE 'opac-bottom.inc' %]
128 [% BLOCK jsinclude %]
129 [% IF ( displayhierarchy ) %]
130     <script type="text/javascript" src="/opac-tmpl/lib/jquery/plugins/jquery.jstree.js"></script>
131 [% END %]
132 <script type="text/javascript">
133     //<![CDATA[
134         $(document).ready(function() {
135             $('#authdescriptions').tabs();
136             [% IF ( displayhierarchy ) %]
137                 var current_nodes = [];
138                 $('.currentauth').each(function() {
139                     current_nodes.push('#' + $(this).parent().parents('li:first').attr('id'));
140                     });
141                 $('#hierarchies').jstree({
142                         "plugins": [ "themes", "html_data"],
143                         "themes": { "theme": "classic",
144                                     "icons": false },
145                         "core": { "initially_open": current_nodes }
146                     });
147             [% END %]
148         });
149     //]]>
150 </script>
151 [% END %]