Bug 27742: Page titles have unique info first
[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' %]
5 <title>Recent comments &rsaquo; [% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Koha online[% END %] catalog</title>
6 [% INCLUDE 'doc-head-close.inc' %]
7 [% BLOCK cssinclude %][% END %]
8 <link rel="alternate" type="application/rss+xml" title="[% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Koha online[% END %] catalog recent comments" href="[% OPACBaseURL | url %]/cgi-bin/koha/opac-showreviews.pl?format=rss" />
9 </head>
10 [% INCLUDE 'bodytag.inc' bodyid='opac-showreviews' bodyclass='scrollto' %]
11 [% INCLUDE 'masthead.inc' %]
12
13     <div class="main">
14         <nav aria-label="breadcrumb">
15             <ul class="breadcrumb">
16                 <li class="breadcrumb-item">
17                     <a href="/cgi-bin/koha/opac-main.pl">Home</a>
18                 </li>
19                 <li class="breadcrumb-item active" aria-current="page">
20                     <a href="#">Recent comments</a>
21                 </li>
22             </ul>
23         </nav>
24
25         <div class="container-fluid">
26             <div class="row">
27                 [% IF ( OpacNav || OpacNavBottom ) %]
28                     <div class="col-lg-2">
29                         <div id="navigation">
30                             [% INCLUDE 'navigation.inc' %]
31                         </div>
32                     </div>
33                     <div class="col-10 order-first order-md-first order-lg-2">
34                 [% ELSE %]
35                     <div class="col order-first order-md-first order-lg-2">
36                 [% END %]
37                    <div id="showreviews" class="searchresults maincontent">
38                         <h3>Recent comments <a href="[% OPACBaseURL | url %]/cgi-bin/koha/opac-showreviews.pl?format=rss" class="rsssearchlink" aria-label="Subscribe to recent comments"><i class="fa fa-rss rsssearchicon" aria-hidden="true" title="Subscribe to recent comments"></i></a></h3>
39                         <table class="table table-striped">
40                             [% SET AdlibrisEnabled = Koha.Preference('AdlibrisCoversEnabled') %]
41                             [% SET AdlibrisURL = Koha.Preference('AdlibrisCoversURL') %]
42                             [% FOREACH review IN reviews %]
43                                 <tr>
44                                     <td>
45                                         <p>
46                                             [% IF ( BiblioDefaultViewmarc ) %]
47                                                 <a class="title" href="/cgi-bin/koha/opac-MARCdetail.pl?biblionumber=[% review.biblionumber |url %]" title="View details for this title">
48                                             [% ELSE %]
49                                                 [% IF ( BiblioDefaultViewisbd ) %]
50                                                     <a class="title" href="/cgi-bin/koha/opac-ISBDdetail.pl?biblionumber=[% review.biblionumber |url %]" title="View details for this title">
51                                                 [% ELSE %]
52                                                     <a class="title" href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% review.biblionumber |url %]#comments" title="View details for this title">
53                                                 [% END %]
54                                             [% END %]
55                                             [% INCLUDE 'biblio-title.inc' biblio=review %]
56                                             </a>
57                                             [% IF ( review.author ) %]
58                                                 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 | html %]</a>
59                                             [% END %]
60                                         </p>
61                                         <p>
62                                             <span class="results_summary">
63                                                 <span class="label">Publication:</span>
64                                                 [% IF ( review.place ) %][% review.place | html %] [% END %]
65                                                 [% IF ( review.publishercode ) %][% review.publishercode | html %][% END %]
66                                                 [% IF ( review.publicationyear ) %]
67                                                     [% review.publicationyear | html %]
68                                                 [% ELSE %]
69                                                     [% IF ( review.copyrightdate ) %]
70                                                         [% review.copyrightdate | html %]
71                                                     [% END %]
72                                                 [% END %]
73                                                 [% IF ( review.pages ) %]. [% review.pages | html %][% END %]
74                                                 [% IF ( review.notes ) %], [% review.notes | html %][% END %]
75                                                 [% IF ( review.size ) %] [% review.size | html %][% END %]
76                                             </span>
77                                             [% IF ( review.summary ) %]
78                                                 <span class="result_summary">
79                                                     [% review.summary | html %]
80                                                 </span>
81                                             [% END %]
82                                             [% IF ( review.copyrightdate ) %]
83                                                 <span class="results_summary">
84                                                     <span class="label">Date:</span>
85                                                     [% review.copyrightdate | html %]</span>
86                                             [% END %]
87                                         </p>
88
89                                         <p class="commentline[% IF ( review.your_comment ) %] yours[% END %]">
90                                             [% IF ( review.avatarurl ) %]
91                                                 <img class="avatar" src="[% review.avatarurl | html %]" height="40" width="40" alt="" />
92                                             [% END %]
93                                             [% FILTER html_break %]
94                                                 [% review.review | html %]
95                                             [% END %]
96                                             <span class="commenter">
97                                                 [% IF review.your_comment %]
98                                                     Added [% review.datereviewed | $KohaDates %] by you
99                                                 [% ELSE %]
100                                                     [% IF ( review.borrowernumber && ShowReviewer != "none" ) %]
101                                                         Added [% review.datereviewed | $KohaDates %] by
102                                                         [% SWITCH ShowReviewer %]
103                                                             [% CASE 'full' %]
104                                                                 [% review.borrtitle | html %] [% review.firstname | html %] [% review.surname | html %]
105                                                             [% CASE 'first' %]
106                                                                 [% review.firstname | html %]
107                                                             [% CASE 'surname' %]
108                                                                 [% review.surname | html %]
109                                                             [% CASE 'firstandinitial' %]
110                                                                 [% review.firstname | html %] [% review.surname|truncate(2,'.') | html %]
111                                                             [% CASE 'username' %]
112                                                                 [% review.userid | html %]
113                                                         [% END %]
114                                                     [% END %]
115                                                 [% END %]
116                                             </span>
117                                         </p>
118                                     </td>
119                                     <td>
120                                         [% IF ( review.BiblioDefaultViewmarc ) %]
121                                             <a class="title" href="/cgi-bin/koha/opac-MARCdetail.pl?biblionumber=[% review.biblionumber |url %]" title="View details for this title">
122                                         [% ELSE %]
123                                             [% IF ( review.BiblioDefaultViewisbd ) %]
124                                                 <a class="title" href="/cgi-bin/koha/opac-ISBDdetail.pl?biblionumber=[% review.biblionumber |url %]" title="View details for this title">
125                                             [% ELSE %]
126                                                 <a class="title" href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% review.biblionumber |url %]#comments" title="View details for this title">
127                                             [% END %]
128                                         [% END %]
129                                         [% IF ( AdlibrisEnabled && review.normalized_isbn ) %]
130                                             <img src="[% AdlibrisURL | html %]?isbn=[% review.normalized_isbn | html %]" class="adlibris-cover" alt="Adlibris cover image" />
131                                         [% END %]
132                                         [% IF ( OPACAmazonCoverImages ) %]
133                                             [% IF ( review.normalized_isbn ) %]
134                                                 <img src="https://images-na.ssl-images-amazon.com/images/P/[% review.normalized_isbn | html %].01.TZZZZZZZ.jpg" alt="" class="thumbnail" />
135                                             [% ELSE %]
136                                                 <span class="no-image">No cover image available</span>
137                                             [% END %]
138                                         [% END %]
139                                         [% IF ( SyndeticsEnabled && SyndeticsCoverImages ) %]
140                                             <img src="https://secure.syndetics.com/index.aspx?isbn=[% review.normalized_isbn | html %]/SC.GIF&amp;client=[% SyndeticsClientCode | html %]&amp;type=xw10&amp;upc=[% review.normalized_upc | html %]&amp;oclc=[% review.normalized_oclc | html %]" alt="" class="thumbnail" />
141                                         [% END %]
142
143                                         [% IF ( GoogleJackets ) %]
144                                             [% IF ( review.normalized_isbn ) %]
145                                                 <div title="[% review.biblionumber |url %]" class="[% review.normalized_isbn | html %]" id="gbs-thumbnail[% loop.count | html %]"></div>
146                                             [% ELSE %]
147                                                 <span class="no-image">No cover image available</span>
148                                             [% END %]
149                                         [% END %]
150                                             </a>
151                                         [% bt_id = ( review.normalized_upc || review.normalized_isbn ) %]
152                                         [% IF ( BakerTaylorEnabled ) %]
153                                             [% IF ( bt_id ) %]
154                                                 <a href="https://[% review.BakerTaylorBookstoreURL | uri %][% bt_id | uri %]"><img alt="See Baker &amp; Taylor" src="[% review.BakerTaylorImageURL | html %][% bt_id | html %]" /></a>
155                                             [% ELSE %]
156                                                 <span class="no-image">No cover image available</span>
157                                             [% END %]
158                                         [% END %]
159
160                                         [% IF Koha.Preference('OPACCustomCoverImages') AND Koha.Preference('CustomCoverImagesURL') %]
161                                             [% SET custom_cover_image_url = review.biblio_object.custom_cover_image_url %]
162                                             [% IF custom_cover_image_url %]
163                                                 <a class="custom_cover_image" href="[% custom_cover_image_url | url %]"><img alt="Cover image" src="[% custom_cover_image_url | url %]" /></a>
164                                             [% END %]
165                                         [% END %]
166
167                                     </td>
168                                 </tr>
169                             [% END # / FOREACH review %]
170                         </table>
171
172                         [% IF ( PAGE_NUMBERS ) %]
173                             <div class="pages">
174                                 <!-- Row of numbers corresponding to showreviews result pages -->
175                                 [% IF ( previous_page_offset ) %]
176                                     <a class="nav" href="/cgi-bin/koha/opac-showreviews.pl?offset=[% previous_page_offset | html %]&count=[% results_per_page | html %]">&lt;&lt; Previous</a>
177                                 [% ELSE %]
178                                     [% IF ( previous_page_first ) %]
179                                         <a class="nav" href="/cgi-bin/koha/opac-showreviews.pl?offset=0&count=[% results_per_page | html %]">&lt;&lt; Previous</a>
180                                     [% END %]
181                                 [% END %]
182                                 [% FOREACH PAGE_NUMBER IN PAGE_NUMBERS %]
183                                     [% IF ( PAGE_NUMBER.highlight ) %]
184                                         <span class="currentPage">[% PAGE_NUMBER.pg | html %]</span>
185                                     [% ELSE %]
186                                         <a class="nav" href="/cgi-bin/koha/opac-showreviews.pl?offset=[% PAGE_NUMBER.offset | html %]&count=[% results_per_page | html %]">[% PAGE_NUMBER.pg | html %]</a>
187                                     [% END %]
188                                 [% END %]
189                                 [% IF ( next_page_offset ) %]
190                                     <a class="nav" href="/cgi-bin/koha/opac-showreviews.pl?offset=[% next_page_offset | html %]&count=[% results_per_page | html %]">Next &gt;&gt;</a>
191                                 [% END %]
192                             </div>
193                         [% END # / IF PAGE_NUMBERS %]
194                     </div> <!-- / #showreviews -->
195                 </div> <!-- / .col-lg-10/12 -->
196             </div> <!-- / .row -->
197         </div> <!-- / .container-fluid -->
198     </div> <!-- / .main -->
199
200 [% INCLUDE 'opac-bottom.inc' %]
201 [% BLOCK jsinclude %]
202     [% IF ( GoogleJackets ) %]
203         <script>
204             $(document).ready(function(){
205                 KOHA.Google.GetCoverFromIsbn();
206             });
207         </script>
208     [% END %]
209 [% END %]