Bugzilla – Attachment 111006 Details for
Bug 19353
Make possible to have custom XSL template for marcxml and marc21 metadata prefixes in OAI server
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 19353: Ability to use xsl template on marc21 and marcxml metadataprefixes in OAI provider
Bug-19353-Ability-to-use-xsl-template-on-marc21-an.patch (text/plain), 1.38 KB, created by
Josef Moravec
on 2020-09-30 17:53:08 UTC
(
hide
)
Description:
Bug 19353: Ability to use xsl template on marc21 and marcxml metadataprefixes in OAI provider
Filename:
MIME Type:
Creator:
Josef Moravec
Created:
2020-09-30 17:53:08 UTC
Size:
1.38 KB
patch
obsolete
>From 31116c7076c05c1ed476c608d3faf2a5f930ef01 Mon Sep 17 00:00:00 2001 >From: Josef Moravec <josef.moravec@gmail.com> >Date: Tue, 7 Nov 2017 11:51:20 +0000 >Subject: [PATCH] Bug 19353: Ability to use xsl template on marc21 and marcxml > metadataprefixes in OAI provider >MIME-Version: 1.0 >Content-Type: text/plain; charset=UTF-8 >Content-Transfer-Encoding: 8bit > >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> >--- > Koha/OAI/Server/Record.pm | 7 ++++++- > 1 file changed, 6 insertions(+), 1 deletion(-) > >diff --git a/Koha/OAI/Server/Record.pm b/Koha/OAI/Server/Record.pm >index 57bc67a665..a916da411c 100644 >--- a/Koha/OAI/Server/Record.pm >+++ b/Koha/OAI/Server/Record.pm >@@ -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') . "'" > }; >-- >2.11.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 19353
:
69530
|
69531
|
72553
|
72554
|
76331
|
76332
|
77469
|
77470
|
111005
|
111006
|
111007
|
111009
|
111524
|
111525
|
111526
|
111527