Bug 19353: Ability to use xsl template on marc21 and marcxml metadataprefixes in OAI provider
Test plan: 0) apply the patchset 1) setup oai server with oaiconf file defining xsl_file for metadata format marcxml or marc21 2) play with your oai and confirm that records are transformed as expected 3) prove t/db_dependent/OAI/Server.t Signed-off-by: Martin Šťastný <martin.stastny@teamlibrary.cz> Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
parent
25e8b56b36
commit
7cd6fa6c6f
|
|
@ -43,7 +43,12 @@ sub new {
|
|||
|
||||
my $format = $args{metadataPrefix};
|
||||
my $record_dom;
|
||||
if ( $format ne 'marcxml' && $format ne 'marc21' ) {
|
||||
my $xsl_file = $repository->{conf} ?
|
||||
defined $repository->{conf}->{format}->{$format}->{xsl_file}
|
||||
: undef;
|
||||
if (($format ne 'marc21' && $format ne 'marcxml')
|
||||
|| $xsl_file
|
||||
) {
|
||||
my $args = {
|
||||
OPACBaseURL => "'" . C4::Context->preference('OPACBaseURL') . "'"
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in New Issue