X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=koha-tmpl%2Fopac-tmpl%2Fbootstrap%2Fen%2Fmodules%2Fopac-showreviews.tt;h=80d55effde775298ffcb02168c22440ed9b0e443;hb=cd81bdc6a0b0250d97cbb5c49bcb90290d29e34a;hp=3057b40667c08e687850258d2d8e21f6abcaaa9f;hpb=6246f2c70049baf86bc942c2473793c83057a64f;p=koha.git diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-showreviews.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-showreviews.tt index 3057b40667..80d55effde 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-showreviews.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-showreviews.tt @@ -1,10 +1,11 @@ [% USE Koha %] [% USE KohaDates %] -[% INCLUDE 'doc-head-open.inc' %][% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha online[% END %] catalog › Recent comments +[% INCLUDE 'doc-head-open.inc' %] +[% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Koha online[% END %] catalog › Recent comments [% INCLUDE 'doc-head-close.inc' %] [% BLOCK cssinclude %][% END %] - + [% INCLUDE 'bodytag.inc' bodyid='opac-showreviews' bodyclass='scrollto' %] [% INCLUDE 'masthead.inc' %] @@ -28,8 +29,10 @@
[% END %]
-

Recent comments

+

Recent comments Subscribe to recent comments

+ [% SET AdlibrisEnabled = Koha.Preference('AdlibrisCoversEnabled') %] + [% SET AdlibrisURL = Koha.Preference('AdlibrisCoversURL') %] [% FOREACH review IN reviews %] @@ -111,34 +118,32 @@ [% END %] [% END %] - + [% IF ( AdlibrisEnabled && review.normalized_isbn ) %] + Adlibris cover image + [% END %] [% IF ( OPACAmazonCoverImages ) %] [% IF ( review.normalized_isbn ) %] - + [% ELSE %] No cover image available [% END %] [% END %] - [% IF ( SyndeticsEnabled && SyndeticsCoverImages ) %] - [% IF ( using_https ) %] - - [% ELSE %] - - [% END %] + [% END %] [% IF ( GoogleJackets ) %] [% IF ( review.normalized_isbn ) %] -
+
[% ELSE %] No cover image available [% END %] [% END %]
+ [% bt_id = ( review.normalized_upc || review.normalized_isbn ) %] [% IF ( BakerTaylorEnabled ) %] - [% IF ( review.normalized_isbn ) %] - See Baker & Taylor + [% IF ( bt_id ) %] + See Baker & Taylor [% ELSE %] No cover image available [% END %] @@ -152,21 +157,21 @@
[% IF ( previous_page_offset ) %] - << Previous + << Previous [% ELSE %] [% IF ( previous_page_first ) %] - << Previous + << Previous [% END %] [% END %] [% FOREACH PAGE_NUMBER IN PAGE_NUMBERS %] [% IF ( PAGE_NUMBER.highlight ) %] - [% PAGE_NUMBER.pg %] + [% PAGE_NUMBER.pg | html %] [% ELSE %] - [% PAGE_NUMBER.pg %] + [% PAGE_NUMBER.pg | html %] [% END %] [% END %] [% IF ( next_page_offset ) %] - Next >> + Next >> [% END %]
[% END # / IF PAGE_NUMBERS %] @@ -178,7 +183,7 @@ [% INCLUDE 'opac-bottom.inc' %] [% BLOCK jsinclude %] -
@@ -43,61 +46,65 @@ [% END %] [% END %] - [% IF ( review.title ) %][% review.title %][% ELSE %]No title[% END %] - [% FOREACH subtitl IN review.subtitle %] [% subtitl.subfield |html %][% END %] + [% IF ( review.title ) %][% review.title | html %][% ELSE %]No title[% END %] + [% FOREACH subtitl IN review.subtitle %] [% subtitl.subfield | html %][% END %] [% IF ( review.author ) %] - by [% review.author %] + by [% review.author | html %] [% END %]

Publication: - [% IF ( review.place ) %][% review.place %] [% END %] - [% IF ( review.publishercode ) %][% review.publishercode %][% END %] + [% IF ( review.place ) %][% review.place | html %] [% END %] + [% IF ( review.publishercode ) %][% review.publishercode | html %][% END %] [% IF ( review.publicationyear ) %] - [% review.publicationyear %] + [% review.publicationyear | html %] [% ELSE %] [% IF ( review.copyrightdate ) %] - [% review.copyrightdate %] + [% review.copyrightdate | html %] [% END %] [% END %] - [% IF ( review.pages ) %]. [% review.pages %][% END %] - [% IF ( review.notes ) %], [% review.notes %][% END %] - [% IF ( review.size ) %] [% review.size %][% END %] + [% IF ( review.pages ) %]. [% review.pages | html %][% END %] + [% IF ( review.notes ) %], [% review.notes | html %][% END %] + [% IF ( review.size ) %] [% review.size | html %][% END %] [% IF ( review.summary ) %] - [% review.summary %] + [% review.summary | html %] [% END %] [% IF ( review.copyrightdate ) %] Date: - [% review.copyrightdate %] + [% review.copyrightdate | html %] [% END %]

[% IF ( review.avatarurl ) %] - + [% END %] [% FILTER html_break %] - [% review.review |html %] + [% review.review | html %] [% END %] - Added [% review.datereviewed | $KohaDates %] [% IF ( review.your_comment ) %] by you[% ELSE %] - [% IF ( review.borrowernumber && ShowReviewer != "none" ) %] by + + [% IF review.your_comment %] + Added [% review.datereviewed | $KohaDates %] by you + [% ELSE %] + [% IF ( review.borrowernumber && ShowReviewer != "none" ) %] + Added [% review.datereviewed | $KohaDates %] by [% SWITCH ShowReviewer %] [% CASE 'full' %] - [% review.borrtitle %] [% review.firstname %] [% review.surname %] + [% review.borrtitle | html %] [% review.firstname | html %] [% review.surname | html %] [% CASE 'first' %] - [% review.firstname %] + [% review.firstname | html %] [% CASE 'surname' %] - [% review.surname %] + [% review.surname | html %] [% CASE 'firstandinitial' %] - [% review.firstname %] [% review.surname|truncate(2,'.') %] + [% review.firstname | html %] [% review.surname|truncate(2,'.') | html %] [% CASE 'username' %] - [% review.userid %] + [% review.userid | html %] [% END %] [% END %][% END %]