4 #use warnings; FIXME - Bug 2505
6 # standard or CPAN modules used
12 use C4
::Auth qw
/check_cookie_auth/;
15 use CGI
::Cookie
; # need to check cookies before
16 # having CGI parse the POST request
18 my %cookies = fetch CGI
::Cookie
;
19 my ($auth_status, $sessionID) = check_cookie_auth
($cookies{'CGISESSID'}->value, { editcatalogue
=> 'edit_catalogue' });
20 if ($auth_status ne "ok") {
21 my $reply = CGI
->new("");
22 print $reply->header(-type
=> 'text/html');
27 my $framework = $reply->param('frameworkcode');
28 my $tagslib = GetMarcStructure
(1, $framework);
29 print $reply->header(-type
=> 'text/html');
30 print encode_json
$tagslib;