Bug 11810: Input fields in OPAC suggestion form are a bit short (Bootstrap)
[koha.git] / koha-tmpl / opac-tmpl / bootstrap / en / modules / opac-MARCdetail.tt
1 [% USE Koha %]
2 [% INCLUDE 'doc-head-open.inc' %][% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha online[% END %] catalog ›  MARC details for record no. [% biblionumber %]
3 [% INCLUDE 'doc-head-close.inc' %]
4 [% BLOCK cssinclude %][% END %]
5 </head>
6 <body id="opac-marcdetail" class="scrollto">
7 [% INCLUDE 'masthead.inc' %]
8 <div class="main">
9     <ul class="breadcrumb">
10         <li><a href="/cgi-bin/koha/opac-main.pl">Home</a> <span class="divider">&rsaquo;</span></li>
11         <li><a href="#">MARC view: [% bibliotitle %]</a></li>
12     </ul>
13
14     <div class="container-fluid">
15         <div class="row-fluid">
16             <div class="span9">
17                 <div id="opac-detail" class="maincontent">
18                     <div id="usermarcdetail">
19                         <div id="catalogue_detail_biblio">
20
21                             <div id="views">
22                                 <span class="view"><a id="Normalview" href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% biblionumber %]">Normal view</a></span>
23                                 <span class="view"><span id="MARCview">MARC view</span></span>
24                                 [% IF ( ISBD ) %]<span class="view"><a id="ISBDview"  href="/cgi-bin/koha/opac-ISBDdetail.pl?biblionumber=[% biblionumber %]">ISBD view</a></span>[% END %]
25                             </div>
26                             <h1 class="title">[% bibliotitle %] (Record no. [% biblionumber %])</h1>
27
28                             [% IF ( OPACXSLTDetailsDisplay ) %]
29                                 <div id="switchview_div">[ <a id="switchview" href="/cgi-bin/koha/opac-showmarc.pl?id=[% biblionumber %]&amp;viewas=html">view plain</a> ]</div>
30                                 <div id="plainmarc"></div>
31                             [% END %]
32
33                             <div id="labeledmarc">
34                                 <table id="marc" class="table table-bordered table-striped">
35                                     [% FOREACH tab0X IN tab0XX %]
36                                     <tr><th colspan="2">[% tab0X.tag %]</th></tr>
37                                     [% FOREACH subfiel IN tab0X.subfield %]
38                                             <tr>
39                                                 <td>[% subfiel.marc_lib %]</td>
40                                                 <td>[% subfiel.marc_value %]</td>
41                                             </tr>
42                                         [% END %]
43                                     [% END %]
44                                     [% FOREACH tab1X IN tab1XX %]
45                                     <tr><th colspan="2">[% tab1X.tag %]</th></tr>
46                                     [% FOREACH subfiel IN tab1X.subfield %]
47                                             <tr>
48                                                 <td  >[% subfiel.marc_lib %]</td>
49                                                 <td  >[% subfiel.marc_value %]</td>
50                                             </tr>
51                                         [% END %]
52                                     [% END %]
53
54                                     [% FOREACH tab2X IN tab2XX %]
55                                     <tr><th colspan="2">[% tab2X.tag %]</th></tr>
56                                     [% FOREACH subfiel IN tab2X.subfield %]
57                                             <tr>
58                                                 <td>[% subfiel.marc_lib %]</td>
59                                                 <td>[% subfiel.marc_value %]</td>
60                                             </tr>
61                                         [% END %]
62                                     [% END %]
63
64                                     [% FOREACH tab3X IN tab3XX %]
65                                     <tr><th colspan="2">[% tab3X.tag %]</th></tr>
66                                     [% FOREACH subfiel IN tab3X.subfield %]
67                                             <tr>
68                                                 <td>[% subfiel.marc_lib %]</td>
69                                                 <td>[% subfiel.marc_value %]</td>
70                                             </tr>
71                                         [% END %]
72                                     [% END %]
73
74                                     [% FOREACH tab4X IN tab4XX %]
75                                     <tr><th colspan="2" >[% tab4X.tag %]</th></tr>
76                                     [% FOREACH subfiel IN tab4X.subfield %]
77                                             <tr>
78                                                 <td>[% subfiel.marc_lib %]</td>
79                                                 <td>[% subfiel.marc_value %]</td>
80                                             </tr>
81                                         [% END %]
82                                     [% END %]
83
84                                     [% FOREACH tab5X IN tab5XX %]
85                                     <tr><th colspan="2">[% tab5X.tag %]</th></tr>
86                                     [% FOREACH subfiel IN tab5X.subfield %]
87                                             <tr>
88                                                 <td>[% subfiel.marc_lib %]</td>
89                                                 <td>[% subfiel.marc_value %]</td>
90                                             </tr>
91                                         [% END %]
92                                     [% END %]
93
94                                     [% FOREACH tab6X IN tab6XX %]
95                                     <tr><th colspan="2">[% tab6X.tag %]</th></tr>
96                                     [% FOREACH subfiel IN tab6X.subfield %]
97                                             <tr>
98                                                 <td>[% subfiel.marc_lib %]</td>
99                                                 <td>[% subfiel.marc_value %]</td>
100                                             </tr>
101                                         [% END %]
102                                     [% END %]
103
104                                     [% FOREACH tab7X IN tab7XX %]
105                                     <tr><th colspan="2">[% tab7X.tag %]</th></tr>
106                                     [% FOREACH subfiel IN tab7X.subfield %]
107                                             <tr>
108                                                 <td>[% subfiel.marc_lib %]</td>
109                                                 <td>[% subfiel.marc_value %]</td>
110                                             </tr>
111                                         [% END %]
112                                     [% END %]
113
114                                     [% FOREACH tab8X IN tab8XX %]
115                                     <tr><th colspan="2">[% tab8X.tag %]</th></tr>
116                                     [% FOREACH subfiel IN tab8X.subfield %]
117                                             <tr>
118                                                 <td>[% subfiel.marc_lib %]</td>
119                                                 <td>[% subfiel.marc_value %]</td>
120                                             </tr>
121                                         [% END %]
122                                     [% END %]
123
124                                     [% FOREACH tab9X IN tab9XX %]
125                                     <tr><th colspan="2">[% tab9X.tag %]</th></tr>
126                                     [% FOREACH subfiel IN tab9X.subfield %]
127                                             <tr>
128                                                 <td>[% subfiel.marc_lib %]</td>
129                                                 <td>[% subfiel.marc_value %]</td>
130                                             </tr>
131                                         [% END %]
132                                     [% END %]
133                                 </table>
134                             </div>
135                             [% IF ( item_header_loop ) %]
136                                 <table id="items" class="table table-bordered table-condensed table-striped">
137                                     <caption>Holdings</caption>
138                                         <tr>
139                                             [% FOREACH item_header_loo IN item_header_loop %]
140                                                 <th>
141                                                     [% item_header_loo.header_value %]
142                                                 </th>
143                                             [% END %]
144                                         </tr>
145                                         [% FOREACH item_loo IN item_loop %]
146                                             <tr>
147                                                 [% item_loo.item_value %]
148                                             </tr>
149                                         [% END %]
150                                 </table>
151                             [% ELSE %]
152                                 <p>No items available.</p>
153                             [% END %]
154                         </div> <!-- / #catalogue_detail_biblio -->
155                     </div> <!-- / #usermarcdetail -->
156                 </div> <!-- / #opac-detail -->
157             </div> <!-- / .span9 -->
158             <div class="span3">
159                 [% INCLUDE 'opac-detail-sidebar.inc' %]
160             </div>
161         </div> <!-- / .row-fluid -->
162     </div>  <!-- / .container-fluid -->
163 </div> <!-- / .main -->
164
165 [% INCLUDE 'opac-bottom.inc' %]
166 [% BLOCK jsinclude %]
167 <script type="text/javascript">
168 //<![CDATA[
169 [% IF ( OPACXSLTDetailsDisplay ) %]
170 $(document).ready(function(){
171     $.ajaxSetup({
172         error:function(x,e){
173             switch (x.status) {
174                 case 200: break;
175                 default:
176                 $('#switchview').parent().html("<div class=\"dialog alert\">"+_("Sorry, plain view is temporarily unavailable")+".</div>");
177                 $("#plainmarc").hide();
178                 $("#labeledmarc").show();
179                 break;
180             }
181         }
182     });
183
184     var loaded = 0;
185     var toggle = 0;
186     $("#switchview").on("click",function(e){
187         e.preventDefault();
188         if( toggle == 0){
189             $(this).text(_("view labeled"));
190             $("#labeledmarc").hide();
191             if(!loaded){
192                 $("#plainmarc").show().html("<div style=\"margin:1em;padding:1em;border:1px solid #EEE;font-size:150%;\"><img src=\"[% interface %]/[% theme %]/images/loading.gif\" /> "+_("Loading")+"...</div>").load("/cgi-bin/koha/opac-showmarc.pl","id=[% biblionumber %]&viewas=html");
193                 loaded = 1;
194             } else {
195                 $("#plainmarc").show();
196             }
197             toggle = 1;
198         } else {
199             $(this).text(_("view plain"));
200             $("#labeledmarc").show();
201             $("#plainmarc").hide();
202             toggle = 0;
203         }
204     });
205 });
206 [% END %]
207 //]]>
208 </script>
209 [% END %]