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