View | Details | Raw Unified | Return to bug 14440
Collapse All | Expand All

(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt (-1 lines)
Lines 485-491 Link Here
485
                                <!-- define some hidden vars for ratings -->
485
                                <!-- define some hidden vars for ratings -->
486
486
487
                                <input  type="hidden" name='biblionumber'  value="[% biblionumber %]" />
487
                                <input  type="hidden" name='biblionumber'  value="[% biblionumber %]" />
488
                                <input  type="hidden" name='borrowernumber'  value="[% borrowernumber %]" />
489
                                <input  type="hidden" name='rating_value' id='rating_value' value="[% rating_value %]" />
488
                                <input  type="hidden" name='rating_value' id='rating_value' value="[% rating_value %]" />
490
                                <input  type="hidden" name='rating_total' id='rating_total' value="[% rating_total %]" />
489
                                <input  type="hidden" name='rating_total' id='rating_total' value="[% rating_total %]" />
491
                                <input  type="hidden" name='rating_avg_int' id='rating_avg_int' value="[% rating_avg_int %]" />
490
                                <input  type="hidden" name='rating_avg_int' id='rating_avg_int' value="[% rating_avg_int %]" />
(-)a/opac/opac-ratings.pl (-14 / +5 lines)
Lines 28-35 note: there is currently no 'delete rating' functionality in this script Link Here
28
use strict;
28
use strict;
29
use warnings;
29
use warnings;
30
use CGI;
30
use CGI;
31
use CGI::Cookie;
31
use C4::Auth;
32
use C4::Auth qw(:DEFAULT check_cookie_auth);
33
use C4::Context;
32
use C4::Context;
34
use C4::Output;
33
use C4::Output;
35
use C4::Dates qw(format_date);
34
use C4::Dates qw(format_date);
Lines 38-54 use C4::Ratings; Link Here
38
use C4::Debug;
37
use C4::Debug;
39
38
40
my $query = CGI->new();
39
my $query = CGI->new();
41
my $a     = $query->Vars;
40
42
####  $a
41
# auth required to add ratings
43
my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
42
my ($userid, $cookie, $sessionID) = checkauth( $query, 0, {}, 'opac' );
44
    {
43
my $loggedinuser = C4::Context->userenv->{'number'};
45
        template_name   => "",
46
        query           => $query,
47
        type            => "opac",
48
        authnotrequired => 0,        # auth required to add tags
49
        debug           => 0,
50
    }
51
);
52
44
53
my $biblionumber     = $query->param('biblionumber');
45
my $biblionumber     = $query->param('biblionumber');
54
my $rating_old_value = $query->param('rating_value');
46
my $rating_old_value = $query->param('rating_value');
55
- 

Return to bug 14440