7 use CGI
::Cookie
; # need to check cookies before CGI parses the POST request
11 use C4
::Auth qw
/check_cookie_auth/;
12 use C4
::AuthoritiesMarc
;
14 my %cookies = CGI
::Cookie
->fetch;
15 my ($auth_status, $sessionID) = check_cookie_auth
($cookies{'CGISESSID'}->value, { editcatalogue
=> 'edit_catalogue' });
17 if ($auth_status ne "ok") {
18 print $reply->header(-type
=> 'text/html');
22 my $framework = $reply->param('frameworkcode');
23 my $tagslib = GetTagsLabels
(1, $framework);
24 print $reply->header(-type
=> 'text/html');
25 print encode_json
$tagslib;