<!-- define some hidden vars for ratings -->
<input type="hidden" name='biblionumber' value="[% biblionumber %]" />
<input type="hidden" name='borrowernumber' value="[% borrowernumber %]" />
<input type="hidden" name='rating_value' id='rating_value' value="[% rating_value %]" />
<input type="hidden" name='rating_total' id='rating_total' value="[% rating_total %]" />
<input type="hidden" name='rating_avg_int' id='rating_avg_int' value="[% rating_avg_int %]" />
use strict;
use warnings;
use CGI qw ( -utf8 );
use CGI::Cookie;
use C4::Auth qw(:DEFAULT check_cookie_auth);
use C4::Auth;
use C4::Context;
use C4::Output;
use C4::Dates qw(format_date);
use C4::Biblio;
use C4::Ratings;
use C4::Debug;
my $query = CGI->new();
my $a = $query->Vars;
#### $a
# auth required to add ratings
my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
my ($userid, $cookie, $sessionID) = checkauth( $query, 0, {}, 'opac' );
{
my $loggedinuser = C4::Context->userenv->{'number'};
template_name => "",
query => $query,
type => "opac",
authnotrequired => 0, # auth required to add tags
debug => 0,
}
);
my $biblionumber = $query->param('biblionumber');
my $rating_old_value = $query->param('rating_value');
-