[Koha-cvs] koha koha-tmpl/opac-tmpl/prog/en/opac-detail.tm... [rel_3_0]
Antoine Farnault
antoine at koha-fr.org
Wed Dec 20 17:21:08 CET 2006
CVSROOT: /sources/koha
Module name: koha
Branch: rel_3_0
Changes by: Antoine Farnault <toins> 06/12/20 16:21:08
Modified files:
koha-tmpl/opac-tmpl/prog/en: opac-detail.tmpl
opac : opac-detail.pl
Log message:
display reviews only if system pref "reviewson" is set to YES.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/koha/koha-tmpl/opac-tmpl/prog/en/opac-detail.tmpl?cvsroot=koha&only_with_tag=rel_3_0&r1=1.1.2.9&r2=1.1.2.10
http://cvs.savannah.gnu.org/viewcvs/koha/opac/opac-detail.pl?cvsroot=koha&only_with_tag=rel_3_0&r1=1.32.2.7&r2=1.32.2.8
Patches:
Index: koha-tmpl/opac-tmpl/prog/en/opac-detail.tmpl
===================================================================
RCS file: /sources/koha/koha/koha-tmpl/opac-tmpl/prog/en/opac-detail.tmpl,v
retrieving revision 1.1.2.9
retrieving revision 1.1.2.10
diff -u -b -r1.1.2.9 -r1.1.2.10
--- koha-tmpl/opac-tmpl/prog/en/opac-detail.tmpl 8 Dec 2006 17:55:45 -0000 1.1.2.9
+++ koha-tmpl/opac-tmpl/prog/en/opac-detail.tmpl 20 Dec 2006 16:21:08 -0000 1.1.2.10
@@ -245,8 +245,9 @@
</div>
<!-- /TMPL_IF -->
-<!-- TMPL_IF NAME="reviews" -->
-<h2>Reviews by members:</h2>
+<!-- TMPL_IF NAME="reviewson" -->
+ <!-- TMPL_IF NAME="reviews" -->
+ <h2>Reviews by members:</h2>
<!--TMPL_LOOP NAME="reviews"-->
<p>
<b>
@@ -264,16 +265,18 @@
<!--TMPL_VAR NAME="review"-->
</p>
<!--/TMPL_LOOP-->
-<!-- TMPL_ELSE -->
+ <!-- TMPL_ELSE -->
<b>No reviews has been writed on this biblio.</b>
-<!-- /TMPL_IF -->
-<!-- TMPL_IF NAME="loggedinusername" -->
+ <!-- /TMPL_IF -->
+ <!-- TMPL_IF NAME="loggedinusername" -->
<a href="javascript:Dopop('/cgi-bin/koha/opac-review.pl?biblionumber=<!-- TMPL_VAR NAME="biblionumber"-->');">
Write or modify your reviews on this biblio.
</a>
-<!-- TMPL_ELSE -->
+ <!-- TMPL_ELSE -->
<br /><a href="/cgi-bin/koha/opac-user.pl">Log in to your account</a> to write a review here.
+ <!-- /TMPL_IF -->
<!-- /TMPL_IF -->
+
<!-- TMPL_IF NAME="AmazonContent" -->
<!-- Amazon Reviews -->
<div id="itemReviews">
Index: opac/opac-detail.pl
===================================================================
RCS file: /sources/koha/koha/opac/opac-detail.pl,v
retrieving revision 1.32.2.7
retrieving revision 1.32.2.8
diff -u -b -r1.32.2.7 -r1.32.2.8
--- opac/opac-detail.pl 8 Dec 2006 11:24:58 -0000 1.32.2.7
+++ opac/opac-detail.pl 20 Dec 2006 16:21:08 -0000 1.32.2.8
@@ -17,7 +17,7 @@
# Koha; if not, write to the Free Software Foundation, Inc., 59 Temple Place,
# Suite 330, Boston, MA 02111-1307 USA
-# $Id: opac-detail.pl,v 1.32.2.7 2006/12/08 11:24:58 toins Exp $
+# $Id: opac-detail.pl,v 1.32.2.8 2006/12/20 16:21:08 toins Exp $
use strict;
require Exporter;
@@ -118,6 +118,7 @@
LibraryName => C4::Context->preference("LibraryName"),
suggestion => C4::Context->preference("suggestion"),
virtualshelves => C4::Context->preference("virtualshelves"),
+ reviewson => C4::Context->preference("reviewson"),
reviews => $reviews
);
## Amazon.com stuff
More information about the Koha-cvs
mailing list