Bugzilla – Attachment 77470 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.44 KB, created by
Biblibre Sandboxes
on 2018-08-03 12:28:50 UTC
(
hide
)
Description:
Bug 19353: Ability to use xsl template on marc21 and marcxml metadataprefixes in OAI provider
Filename:
MIME Type:
Creator:
Biblibre Sandboxes
Created:
2018-08-03 12:28:50 UTC
Size:
1.44 KB
patch
obsolete
>From 2249869e0d2d513efa8308d05b921b1f41818842 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 Â357astný <martin.stastny@teamlibrary.cz> >Signed-off-by: Martin Â357astný <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 c0c4b4b..c9c889a 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.7.4
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