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