From cc9daa0a5e40067aa41989b7ecc70d35ca00326c Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Tue, 19 Apr 2011 20:48:33 -0400 Subject: [PATCH] Follow-up fix for Bug 5897 - Hide name of comment writer in OPAC Correcting 'recent comments' view to obey ShowReviewer pref Signed-off-by: Nicole C. Engard Signed-off-by: Chris Cormack --- koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tt | 6 +++--- koha-tmpl/opac-tmpl/prog/en/modules/opac-showreviews.tt | 8 +++++--- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tt b/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tt index 92a8dd365a..740f394f95 100644 --- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tt +++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tt @@ -669,12 +669,12 @@ YAHOO.util.Event.onContentReady("furtherm", function () { [% review.datereviewed %]

- [% review.review |0 %] + [% review.review %] Edit

[% ELSE %]
- [% IF ( review.ShowReviewer ) %] + [% IF ( ShowReviewer ) %]
Comment by [% review.title %] @@ -684,7 +684,7 @@ YAHOO.util.Event.onContentReady("furtherm", function () { [% END %] [% review.datereviewed %]

- [% review.review |0 %] + [% review.review %]

[% END %] [% END %] diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-showreviews.tt b/koha-tmpl/opac-tmpl/prog/en/modules/opac-showreviews.tt index b16b219358..e64fcae855 100644 --- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-showreviews.tt +++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-showreviews.tt @@ -22,9 +22,9 @@ $(document).ready(function(){ [% UNLESS ( loop.odd ) %][% ELSE %][% END %] -

[% IF ( review.BiblioDefaultViewmarc ) %] +

[% IF ( BiblioDefaultViewmarc ) %] [% ELSE %] - [% IF ( review.BiblioDefaultViewisbd ) %] + [% IF ( BiblioDefaultViewisbd ) %] [% ELSE %] [% END %] [% END %] @@ -47,7 +47,9 @@ $(document).ready(function(){ [% IF ( review.copyrightdate ) %]Date:[% review.copyrightdate %][% END %]

[% review.review |html %] - Added [% review.datereviewed %] by [% IF ( review.your_comment ) %]you[% ELSE %][% review.firstname %] [% review.surname %][% END %]

+ Added [% review.datereviewed %] [% IF ( review.your_comment ) %] by you[% ELSE %] + [% IF ( ShowReviewer ) %] by + [% review.firstname %] [% review.surname %][% END %][% END %]