3 [% USE AdditionalContents %]
4 [% SET OpacNav = AdditionalContents.get( location => "OpacNav", lang => lang, library => logged_in_user.branchcode || default_branch, blocktitle => 0 ) %]
5 [% SET OpacNavBottom = AdditionalContents.get( location => "OpacNavBottom", lang => lang, library => logged_in_user.branchcode || default_branch, blocktitle => 0 ) %]
6 [% INCLUDE 'doc-head-open.inc' %]
7 <title>Recent comments › [% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Koha online[% END %] catalog</title>
8 [% INCLUDE 'doc-head-close.inc' %]
9 [% BLOCK cssinclude %][% END %]
10 <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" />
12 [% INCLUDE 'bodytag.inc' bodyid='opac-showreviews' bodyclass='scrollto' %]
13 [% INCLUDE 'masthead.inc' %]
16 <nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumbs">
17 <ol class="breadcrumb">
18 <li class="breadcrumb-item">
19 <a href="/cgi-bin/koha/opac-main.pl">Home</a>
21 <li class="breadcrumb-item active">
22 <a href="#" aria-current="page">Recent comments</a>
25 </nav> <!-- /#breadcrumbs -->
27 <div class="container-fluid">
29 [% IF ( OpacNav || OpacNavBottom ) %]
30 <div class="col-lg-2">
32 [% INCLUDE 'navigation.inc' %]
35 <div class="col-10 order-first order-md-first order-lg-2">
37 <div class="col order-first order-md-first order-lg-2">
39 <div id="showreviews" class="searchresults maincontent">
40 <h1>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></h1>
41 <table class="table table-striped">
42 <caption class="sr-only">Comments</caption>
43 [% FOREACH review IN reviews %]
47 <a class="title" href="[% PROCESS biblio_a_href biblionumber => review.biblionumber %]" title="View details for this title">
48 [% INCLUDE 'biblio-title.inc' biblio=review %]
50 [% IF ( review.author ) %]
51 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>
55 <span class="results_summary">
56 <span class="label">Publication:</span>
57 [% IF ( review.place ) %][% review.place | html %] [% END %]
58 [% IF ( review.publishercode ) %][% review.publishercode | html %][% END %]
59 [% IF ( review.publicationyear ) %]
60 [% review.publicationyear | html %]
62 [% IF ( review.copyrightdate ) %]
63 [% review.copyrightdate | html %]
66 [% IF ( review.pages ) %]. [% review.pages | html %][% END %]
67 [% IF ( review.notes ) %], [% review.notes | html %][% END %]
68 [% IF ( review.size ) %] [% review.size | html %][% END %]
70 [% IF ( review.summary ) %]
71 <span class="result_summary">
72 [% review.summary | html %]
75 [% IF ( review.copyrightdate ) %]
76 <span class="results_summary">
77 <span class="label">Date:</span>
78 [% review.copyrightdate | html %]</span>
82 <p class="commentline[% IF ( review.your_comment ) %] yours[% END %]">
83 [% IF ( review.avatarurl ) %]
84 <img class="avatar" src="[% review.avatarurl | html %]" height="40" width="40" alt="" />
86 [% FILTER html_break %]
87 [% review.review | html %]
89 <span class="commenter">
90 [% IF review.your_comment %]
91 Added [% review.datereviewed | $KohaDates %] by you
93 [% IF ( review.borrowernumber && ShowReviewer != "none" ) %]
94 Added [% review.datereviewed | $KohaDates %] by
95 [% SWITCH ShowReviewer %]
97 [% review.borrtitle | html %] [% review.firstname | html %] [% review.surname | html %]
99 [% review.firstname | html %]
101 [% review.surname | html %]
102 [% CASE 'firstandinitial' %]
103 [% review.firstname | html %] [% review.surname|truncate(2,'.') | html %]
104 [% CASE 'username' %]
105 [% review.userid | html %]
113 <a class="title" href="[% PROCESS biblio_a_href biblionumber => review.biblionumber %]" title="View details for this title">
114 [% IF ( OPACAmazonCoverImages ) %]
115 [% IF ( review.normalized_isbn ) %]
116 <img src="https://images-na.ssl-images-amazon.com/images/P/[% review.normalized_isbn | html %].01.TZZZZZZZ.jpg" alt="" class="thumbnail" />
118 <span class="no-image">No cover image available</span>
121 [% IF ( SyndeticsEnabled && SyndeticsCoverImages ) %]
122 <img src="https://secure.syndetics.com/index.aspx?isbn=[% review.normalized_isbn | html %]/SC.GIF&client=[% SyndeticsClientCode | html %]&type=xw10&upc=[% review.normalized_upc | html %]&oclc=[% review.normalized_oclc | html %]" alt="" class="thumbnail" />
125 [% IF ( GoogleJackets ) %]
126 [% IF ( review.normalized_isbn ) %]
127 <div title="[% review.biblionumber |url %]" class="[% review.normalized_isbn | html %]" id="gbs-thumbnail[% loop.count | html %]"></div>
129 <span class="no-image">No cover image available</span>
133 [% bt_id = ( review.normalized_upc || review.normalized_isbn ) %]
134 [% IF ( BakerTaylorEnabled ) %]
136 <a href="https://[% review.BakerTaylorBookstoreURL | uri %][% bt_id | uri %]"><img alt="See Baker & Taylor" src="[% review.BakerTaylorImageURL | html %][% bt_id | html %]" /></a>
138 <span class="no-image">No cover image available</span>
142 [% IF Koha.Preference('OPACCustomCoverImages') AND Koha.Preference('CustomCoverImagesURL') %]
143 [% SET custom_cover_image_url = review.biblio_object.custom_cover_image_url %]
144 [% IF custom_cover_image_url %]
145 <a class="custom_cover_image" href="[% custom_cover_image_url | url %]"><img alt="Cover image" src="[% custom_cover_image_url | url %]" /></a>
151 [% END # / FOREACH review %]
154 [% IF ( PAGE_NUMBERS ) %]
156 <!-- Row of numbers corresponding to showreviews result pages -->
157 [% IF ( previous_page_offset ) %]
158 <a class="nav" href="/cgi-bin/koha/opac-showreviews.pl?offset=[% previous_page_offset | html %]&count=[% results_per_page | html %]"><< Previous</a>
160 [% IF ( previous_page_first ) %]
161 <a class="nav" href="/cgi-bin/koha/opac-showreviews.pl?offset=0&count=[% results_per_page | html %]"><< Previous</a>
164 [% FOREACH PAGE_NUMBER IN PAGE_NUMBERS %]
165 [% IF ( PAGE_NUMBER.highlight ) %]
166 <span class="currentPage">[% PAGE_NUMBER.pg | html %]</span>
168 <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>
171 [% IF ( next_page_offset ) %]
172 <a class="nav" href="/cgi-bin/koha/opac-showreviews.pl?offset=[% next_page_offset | html %]&count=[% results_per_page | html %]">Next >></a>
175 [% END # / IF PAGE_NUMBERS %]
176 </div> <!-- / #showreviews -->
177 </div> <!-- / .col-lg-10/12 -->
178 </div> <!-- / .row -->
179 </div> <!-- / .container-fluid -->
180 </div> <!-- / .main -->
182 [% INCLUDE 'opac-bottom.inc' %]
183 [% BLOCK jsinclude %]
184 [% IF ( GoogleJackets ) %]
186 $(document).ready(function(){
187 KOHA.Google.GetCoverFromIsbn();