Bug 17600: Standardize our EXPORT_OK
[srvgit] / Koha / OAI / Server / GetRecord.pm
index 30379c4..4e4985e 100644 (file)
@@ -20,8 +20,7 @@ package Koha::OAI::Server::GetRecord;
 
 use Modern::Perl;
 use HTTP::OAI;
-use C4::Biblio;
-use C4::OAI::Sets;
+use C4::OAI::Sets qw( GetOAISetsBiblio );
 use MARC::File::XML;
 
 use base ("HTTP::OAI::GetRecord");
@@ -92,7 +91,7 @@ sub new {
         {
             return HTTP::OAI::Response->new(
              requestURL  => $repository->self_url(),
-             errors      => [ new HTTP::OAI::Error(
+             errors      => [ HTTP::OAI::Error->new(
                 code    => 'idDoesNotExist',
                 message => "There is no biblio record with this identifier",
                 ) ],