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 498-504 Link Here
498
                                <!-- define some hidden vars for ratings -->
498
                                <!-- define some hidden vars for ratings -->
499
499
500
                                <input  type="hidden" name='biblionumber'  value="[% biblionumber %]" />
500
                                <input  type="hidden" name='biblionumber'  value="[% biblionumber %]" />
501
                                <input  type="hidden" name='borrowernumber'  value="[% borrowernumber %]" />
502
                                <input  type="hidden" name='rating_value' id='rating_value' value="[% rating_value %]" />
501
                                <input  type="hidden" name='rating_value' id='rating_value' value="[% rating_value %]" />
503
                                <input  type="hidden" name='rating_total' id='rating_total' value="[% rating_total %]" />
502
                                <input  type="hidden" name='rating_total' id='rating_total' value="[% rating_total %]" />
504
                                <input  type="hidden" name='rating_avg_int' id='rating_avg_int' value="[% rating_avg_int %]" />
503
                                <input  type="hidden" name='rating_avg_int' id='rating_avg_int' value="[% rating_avg_int %]" />
(-)a/opac/opac-ratings.pl (-17 / +6 lines)
Lines 28-54 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 qw ( -utf8 );
30
use CGI qw ( -utf8 );
31
use CGI::Cookie;
31
32
use C4::Auth qw(:DEFAULT check_cookie_auth);
32
use C4::Auth;
33
use C4::Context;
33
use C4::Context;
34
use C4::Output;
35
use C4::Dates qw(format_date);
36
use C4::Biblio;
37
use C4::Ratings;
34
use C4::Ratings;
38
use C4::Debug;
35
use C4::Debug;
39
36
40
my $query = CGI->new();
37
my $query = CGI->new();
41
my $a     = $query->Vars;
38
42
####  $a
39
# auth required to add ratings
43
my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
40
my ($userid, $cookie, $sessionID) = checkauth( $query, 0, {}, 'opac' );
44
    {
41
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
42
53
my $biblionumber     = $query->param('biblionumber');
43
my $biblionumber     = $query->param('biblionumber');
54
my $rating_old_value = $query->param('rating_value');
44
my $rating_old_value = $query->param('rating_value');
55
- 

Return to bug 14440