Bug 11529: Add templates for biblio title display. Unify display.
[koha.git] / koha-tmpl / opac-tmpl / bootstrap / en / modules / opac-showreviews-rss.tt
1 [% USE KohaDates # XML declaration should have no white space before it %][% USE Koha %]<?xml version="1.0" encoding="utf-8"?>
2 <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
3 <channel>
4      <title><![CDATA[[% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Koha online[% END %] Catalog Recent Comments]]></title>
5      <link>[% OPACBaseURL | html %]/cgi-bin/koha/opac-showreviews.pl&amp;format=rss2</link>
6      <description><![CDATA[ The most recent comments from [% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Koha online[% END %] Catalog. Comments can be made by logged in users and are moderated by library staff.]]></description>
7      <atom:link href="[% OPACBaseURL | url %]/cgi-bin/koha/opac-showreviews.pl&amp;format=rss2" rel="self" type="application/rss+xml" />
8      <lastBuildDate>[% timestamp | html %]</lastBuildDate>
9      [% SET AdlibrisEnabled = Koha.Preference('AdlibrisCoversEnabled') %]
10      [% SET AdlibrisURL = Koha.Preference('AdlibrisCoversURL') %]
11          [% FOREACH review IN reviews %]
12      <item>
13        <title>New comment on [% INCLUDE 'biblio-title-head.inc' biblio=review %]</title>
14        <link>[% OPACBaseURL | html %]/cgi-bin/koha/opac-detail.pl?biblionumber=[% review.biblionumber | html %]#comments</link>
15        <description><![CDATA[
16 [% IF ( AdlibrisEnabled && review.normalized_isbn ) %]
17     <img src="[% AdlibrisURL | html %]?isbn=[% review.normalized_isbn | html %]" alt="Adlibris cover image" />
18 [% END %]
19 [% IF ( OPACAmazonCoverImages ) %][% IF ( review.normalized_isbn ) %]<img src="https://images-na.ssl-images-amazon.com/images/P/[% review.normalized_isbn | html %].01.TZZZZZZZ.jpg" alt="" />[% END %][% END %]
20
21 [% IF ( SyndeticsEnabled ) %][% IF ( SyndeticsCoverImages ) %][% IF ( review.content_identifier_exists ) %]<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="" />
22 [% END %][% END %][% END %]
23
24 [% bt_id = ( review.normalized_upc || review.normalized_isbn ) %]
25 [% IF ( BakerTaylorEnabled && bt_id ) %]<a href="https://[% BakerTaylorBookstoreURL | uri %][% bt_id | uri %]"><img alt="See Baker &amp; Taylor" src="[% BakerTaylorImageURL | html %][% bt_id | html %]" /></a>[% END %]
26         [% IF ( review.author ) %]<p>By [% review.author | html %].</p> [% END %]
27         <p>[% IF ( review.place ) %][% review.place | html %] [% END %][% IF ( review.publishercode ) %][% review.publishercode | html %][% END %][% IF ( review.publicationyear ) %] [% review.publicationyear | html %]
28                     [% ELSE %][% IF ( review.copyrightdate ) %] [% review.copyrightdate | html %][% END %][% END %]
29                         [% IF ( review.pages ) %]. [% review.pages | html %][% END %]
30                         [% IF ( review.notes ) %], [% review.notes | html %][% END %]
31                         [% IF ( review.size ) %] [% review.size | html %]. [% END %]
32                         [% IF ( review.isbn ) %] [% review.isbn | html %][% END %] </p>
33 <p>[% IF ( review.borrowernumber && ShowReviewer ) %][% review.firstname | html %] [% review.surname | html %] commented[% ELSE %]Comment[% END %] on [% review.datereviewed | $KohaDates %]: [% review.review | html %]</p>
34                                                 ]]></description>
35        <guid>[% OPACBaseURL | html %]/cgi-bin/koha/opac-detail.pl?biblionumber=[% review.biblionumber | html %]&amp;reviewid=[% review.reviewid | html %]</guid>
36        <pubDate>[% review.timestamp | html %]</pubDate>
37      </item>
38          [% END %]
39    </channel>
40 </rss>