|
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 |
- |
|
|