Bug 17807: [Follow-up] Use marcxml for marc21 prefix
authorMarcel de Rooy <m.de.rooy@rijksmuseum.nl>
Tue, 6 Jun 2017 11:31:29 +0000 (13:31 +0200)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Wed, 30 Aug 2017 18:06:40 +0000 (15:06 -0300)
Not sure what happened here, but this is an easy fix.

Test plan:
Try oai.pl with marcxml, marc21 and oai_dc again.

Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Koha/OAI/Server/Record.pm

index 7b1078b..c0c4b4b 100644 (file)
@@ -43,7 +43,7 @@ sub new {
 
     my $format = $args{metadataPrefix};
     my $record_dom;
-    if ( $format ne 'marcxml' ) {
+    if ( $format ne 'marcxml' && $format ne 'marc21' ) {
         my $args = {
             OPACBaseURL => "'" . C4::Context->preference('OPACBaseURL') . "'"
         };