@@ -, +, @@ --- C4/Record.pm | 2 +- opac/opac-export.pl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) --- a/C4/Record.pm +++ a/C4/Record.pm @@ -294,7 +294,7 @@ sub marc2dcxml { }; } elsif ( $record =~ /^MARC::Record/ ) { # if OK makes xslt transformation my $xslt_engine = Koha::XSLT_Handler->new; - if ( $format =~ /oaidc|srwdc|rdfdc/ ) { + if ( $format =~ /^(dc|oaidc|srwdc|rdfdc)$/i ) { $output = $xslt_engine->transform( $marcxml, $xsl ); } else { croak "The format argument ($format) not accepted.\n" . --- a/opac/opac-export.pl +++ a/opac/opac-export.pl @@ -78,7 +78,7 @@ elsif ($format =~ /bibtex/) { $marc = marc2bibtex($marc,$biblionumber); $format = 'bibtex'; } -elsif ($format =~ /dc$/) { +elsif ($format =~ /^(dc|oaidc|srwdc|rdfdc)$/i ) { # TODO: Dublin Core leaks fields marked hidden by framework. $marc = marc2dcxml($marc, undef, $biblionumber, $format); $format = "dublin-core.xml"; --