X-Git-Url: http://koha-dev.rot13.org:8081/gitweb/?a=blobdiff_plain;f=opac%2Fopac-showreviews.pl;h=ac8343a41f568a5d5ce0cc8fedd547c46a2bd2fd;hb=21c7f786bf6b0d23fba69d9def05e1fe47010287;hp=8f52b9c1c46620ec3cd5d5f9de0c66cfbd27cc19;hpb=fc1342f73df868410e0ab670981f25ba2e1acd74;p=koha_gimpoz diff --git a/opac/opac-showreviews.pl b/opac/opac-showreviews.pl index 8f52b9c1c4..ac8343a41f 100755 --- a/opac/opac-showreviews.pl +++ b/opac/opac-showreviews.pl @@ -16,12 +16,13 @@ # Suite 330, Boston, MA 02111-1307 USA use strict; -require Exporter; +use warnings; + use CGI; use C4::Auth; use C4::Koha; -use C4::Interface::CGI::Output; -use C4::Circulation::Circ2; +use C4::Output; +use C4::Circulation; use C4::Review; use C4::Biblio; @@ -37,15 +38,12 @@ my ( $template, $borrowernumber, $cookie ) = &get_template_and_user( } ); -my $biblio = GetBiblioData( $biblionumber,'opac' ); +my $biblio = GetBiblioData( $biblionumber ); my $reviews = getreviews( $biblionumber, 1 ); $template->param( reviews => $reviews, title => $biblio->{'title'}, - OpacCloud => C4::Context->preference("OpacCloud"), - OpacTopissue => C4::Context->preference("OpacTopissue"), - OpacAuthorities => C4::Context->preference("OpacAuthorities"), ); output_html_with_http_headers $query, $cookie, $template->output;