# Uncomment this section to enable the OAI2 provider service.
#<Location /opac/extras/oai>
# SetHandler perl-script
-# PerlHandler OpenILS::WWW::OAI
+# PerlHandler OpenILS::WWW::SuperCat::OAI
# Options +ExecCGI
# PerlSendHeader On
# Require all granted
use Unicode::Normalize;
use OpenILS::Utils::Fieldmapper;
use OpenILS::WWW::SuperCat::Feed;
+use OpenILS::WWW::SuperCat::OAI;
use OpenSRF::Utils::Logger qw/$logger/;
use OpenILS::Application::AppUtils;
use OpenILS::Utils::TagURI;
}
}
}
+
+ OpenILS::WWW::SuperCat::OAI::child_init();
+
return Apache2::Const::OK;
}
-# OpenILS::WWW::OAI manages OAI2 requests and responses.
+# OpenILS::WWW::SuperCat::OAI manages OAI2 requests and responses.
#
# Copyright (c) 2014-2017 International Institute of Social History
#
# Author: Lucien van Wouw <lwo@iisg.nl>
-package OpenILS::WWW::OAI;
+package OpenILS::WWW::SuperCat::OAI;
use strict; use warnings;
use Apache2::Const -compile => qw(OK REDIRECT DECLINED NOT_FOUND :log);
use CGI;
return Apache2::Const::DECLINED if (-e $apache->filename);
unless (defined $oai) {
- $logger->error('Application session variables not defined. Add \'PerlChildInitHandler OpenILS::WWW::OAI::child_init\' to the Apache virtual host configuration file.');
+ $logger->error('Application session variables not defined. Add \'PerlChildInitHandler OpenILS::WWW::SuperCat::OAI::child_init\' to the Apache virtual host configuration file.');
child_init();
}