Bug 11810: Input fields in OPAC suggestion form are a bit short (Bootstrap)
[koha.git] / koha-tmpl / opac-tmpl / bootstrap / en / modules / opac-showreviews.tt
1 [% USE Koha %]
2 [% USE KohaDates %]
3
4 [% INCLUDE 'doc-head-open.inc' %][% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha online[% END %] catalog › Recent comments
5 [% INCLUDE 'doc-head-close.inc' %]
6 [% BLOCK cssinclude %][% END %]
7 <link rel="alternate" type="application/rss+xml" title="[% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha online[% END %] catalog recent comments" href="[% OPACBaseURL %]/cgi-bin/koha/opac-showreviews.pl?format=rss" />
8 </head>
9 <body id="opac-showreviews" class="scrollto">
10 [% INCLUDE 'masthead.inc' %]
11
12     <div class="main">
13         <ul class="breadcrumb">
14             <li><a href="/cgi-bin/koha/opac-main.pl">Home</a> <span class="divider">&rsaquo;</span></li>
15             <li><a href="#">Recent comments</a></li>
16         </ul>
17
18         <div class="container-fluid">
19             <div class="row-fluid">
20                 [% IF ( OpacNav || OpacNavBottom ) %]
21                     <div class="span2">
22                         <div id="navigation">
23                             [% INCLUDE 'navigation.inc' %]
24                         </div>
25                     </div>
26                     <div class="span10">
27                 [% ELSE %]
28                     <div class="span12">
29                 [% END %]
30                    <div id="showreviews" class="searchresults maincontent">
31                         <h3>Recent comments</h3>
32                         <table class="table table-striped">
33                             [% FOREACH review IN reviews %]
34                                 <tr>
35                                     <td>
36                                         <p>
37                                             [% IF ( BiblioDefaultViewmarc ) %]
38                                                 <a class="title" href="/cgi-bin/koha/opac-MARCdetail.pl?biblionumber=[% review.biblionumber |url %]" title="View details for this title">
39                                             [% ELSE %]
40                                                 [% IF ( BiblioDefaultViewisbd ) %]
41                                                     <a class="title" href="/cgi-bin/koha/opac-ISBDdetail.pl?biblionumber=[% review.biblionumber |url %]" title="View details for this title">
42                                                 [% ELSE %]
43                                                     <a class="title" href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% review.biblionumber |url %]#comments" title="View details for this title">
44                                                 [% END %]
45                                             [% END %]
46                                             [% IF ( review.title ) %][% review.title %][% ELSE %]No title[% END %]
47                                             [% FOREACH subtitl IN review.subtitle %] [% subtitl.subfield |html %][% END %]
48                                             </a>
49                                             [% IF ( review.author ) %]
50                                                 by <a href="/cgi-bin/koha/opac-search.pl?q=au:[% review.author |url %]" title="Search for works by this author" class="author">[% review.author %]</a>
51                                             [% END %]
52                                         </p>
53                                         <p>
54                                             <span class="results_summary">
55                                                 <span class="label">Publication:</span>
56                                                 [% IF ( review.place ) %][% review.place %] [% END %]
57                                                 [% IF ( review.publishercode ) %][% review.publishercode %][% END %]
58                                                 [% IF ( review.publicationyear ) %]
59                                                     [% review.publicationyear %]
60                                                 [% ELSE %]
61                                                     [% IF ( review.copyrightdate ) %]
62                                                         [% review.copyrightdate %]
63                                                     [% END %]
64                                                 [% END %]
65                                                 [% IF ( review.pages ) %]. [% review.pages %][% END %]
66                                                 [% IF ( review.notes ) %], [% review.notes %][% END %]
67                                                 [% IF ( review.size ) %] [% review.size %][% END %]
68                                             </span>
69                                             [% IF ( review.summary ) %]
70                                                 <span class="result_summary">
71                                                     [% review.summary %]
72                                                 </span>
73                                             [% END %]
74                                             [% IF ( review.copyrightdate ) %]
75                                                 <span class="results_summary">
76                                                     <span class="label">Date:</span>
77                                                     [% review.copyrightdate %]</span>
78                                             [% END %]
79                                         </p>
80
81                                         <p class="commentline[% IF ( review.your_comment ) %] yours[% END %]">
82                                             [% IF ( review.avatarurl ) %]
83                                                 <img class="avatar" src="[% review.avatarurl %]" height="40" width="40" alt="" />
84                                             [% END %]
85                                             [% FILTER html_break %]
86                                                 [% review.review |html %]
87                                             [% END %]
88                                         <span style="font-size:87%;font-color:#CCC;">Added [% review.datereviewed | $KohaDates %] [% IF ( review.your_comment ) %] by <strong>you</strong>[% ELSE %]
89                                         [% IF ( review.borrowernumber && ShowReviewer != "none" ) %] by
90                                             [% SWITCH ShowReviewer %]
91                                             [% CASE 'full' %]
92                                                 [% review.borrtitle %] [% review.firstname %] [% review.surname %]
93                                             [% CASE 'first' %]
94                                                 [% review.firstname %]
95                                             [% CASE 'surname' %]
96                                                 [% review.surname %]
97                                             [% CASE 'firstandinitial' %]
98                                                 [% review.firstname %] [% review.surname|truncate(2,'.') %]
99                                             [% CASE 'username' %]
100                                                 [% review.userid %]
101                                             [% END %]
102                                         [% END %][% END %]</span></p>
103                                     </td>
104                                     <td>
105                                         [% IF ( review.BiblioDefaultViewmarc ) %]
106                                             <a class="title" href="/cgi-bin/koha/opac-MARCdetail.pl?biblionumber=[% review.biblionumber |url %]" title="View details for this title">
107                                         [% ELSE %]
108                                             [% IF ( review.BiblioDefaultViewisbd ) %]
109                                                 <a class="title" href="/cgi-bin/koha/opac-ISBDdetail.pl?biblionumber=[% review.biblionumber |url %]" title="View details for this title">
110                                             [% ELSE %]
111                                                 <a class="title" href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% review.biblionumber |url %]#comments" title="View details for this title">
112                                             [% END %]
113                                         [% END %]
114
115                                         [% IF ( OPACAmazonCoverImages ) %]
116                                             [% IF ( review.normalized_isbn ) %]
117                                                 <img src="http://images.amazon.com/images/P/[% review.normalized_isbn %].01.TZZZZZZZ.jpg" alt="" class="thumbnail" />
118                                             [% ELSE %]
119                                                 <span class="no-image">No cover image available</span>
120                                             [% END %]
121                                         [% END %]
122
123                                         [% IF ( SyndeticsEnabled && SyndeticsCoverImages ) %]
124                                             [% IF ( using_https ) %]
125                                                 <img src="https://secure.syndetics.com/index.aspx?isbn=[% review.normalized_isbn %]/SC.GIF&amp;client=[% SyndeticsClientCode %]&amp;type=xw10&amp;upc=[% review.normalized_upc %]&amp;oclc=[% review.normalized_oclc %]" alt="" class="thumbnail" />
126                                             [% ELSE %]
127                                                 <img src="http://www.syndetics.com/index.aspx?isbn=[% review.normalized_isbn %]/SC.GIF&amp;client=[% SyndeticsClientCode %]&amp;type=xw10&amp;upc=[% review.normalized_upc %]&amp;oclc=[% review.normalized_oclc %]" alt="" class="thumbnail" />
128                                             [% END %]
129                                         [% END %]
130
131                                         [% IF ( GoogleJackets ) %]
132                                             [% IF ( review.normalized_isbn ) %]
133                                                 <div style="block" title="[% review.biblionumber |url %]" class="[% review.normalized_isbn %]" id="gbs-thumbnail[% loop.count %]"></div>
134                                             [% ELSE %]
135                                                 <span class="no-image">No cover image available</span>
136                                             [% END %]
137                                         [% END %]
138                                             </a>
139                                         [% IF ( BakerTaylorEnabled ) %]
140                                             [% IF ( review.normalized_isbn ) %]
141                                                 <a href="https://[% review.BakerTaylorBookstoreURL |html %][% review.normalized_isbn %]"><img alt="See Baker &amp; Taylor" src="[% review.BakerTaylorImageURL |html %][% review.normalized_isbn %]" /></a>
142                                             [% ELSE %]
143                                                 <span class="no-image">No cover image available</span>
144                                             [% END %]
145                                         [% END %]
146                                     </td>
147                                 </tr>
148                             [% END # / FOREACH review %]
149                         </table>
150
151                         [% IF ( PAGE_NUMBERS ) %]
152                             <div class="pages">
153                                 <!-- Row of numbers corresponding to showreviews result pages -->
154                                 [% IF ( previous_page_offset ) %]
155                                     <a class="nav" href="/cgi-bin/koha/opac-showreviews.pl?offset=[% previous_page_offset %]">&lt;&lt; Previous</a>
156                                 [% ELSE %]
157                                     [% IF ( previous_page_first ) %]
158                                         <a class="nav" href="/cgi-bin/koha/opac-showreviews.pl?offset=0">&lt;&lt; Previous</a>
159                                     [% END %]
160                                 [% END %]
161                                 [% FOREACH PAGE_NUMBER IN PAGE_NUMBERS %]
162                                     [% IF ( PAGE_NUMBER.highlight ) %]
163                                         <span class="current">[% PAGE_NUMBER.pg %]</span>
164                                     [% ELSE %]
165                                         <a class="nav" href="/cgi-bin/koha/opac-showreviews.pl?offset=[% PAGE_NUMBER.offset %]">[% PAGE_NUMBER.pg %]</a>
166                                     [% END %]
167                                 [% END %]
168                                 [% IF ( next_page_offset ) %]
169                                     <a class="nav" href="/cgi-bin/koha/opac-showreviews.pl?offset=[% next_page_offset %]">Next &gt;&gt;</a>
170                                 [% END %]
171                             </div>
172                         [% END # / IF PAGE_NUMBERS %]
173                     </div> <!-- / #showreviews -->
174                 </div> <!-- / .span10/12 -->
175             </div> <!-- / .row-fluid -->
176         </div> <!-- / .container-fluid -->
177     </div> <!-- / .main -->
178
179 [% INCLUDE 'opac-bottom.inc' %]
180 [% BLOCK jsinclude %]
181 <script type="text/javascript">
182     //<![CDATA[
183         $(document).ready(function(){
184             [% IF ( GoogleJackets ) %]KOHA.Google.GetCoverFromIsbn();[% END %]
185         });
186     //]]>
187 </script>
188 [% END %]