Bugzilla – Attachment 34444 Details for
Bug 13469
Unapi path to XSLTs is wrong in OPAC
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 13469 - Unapi path to XSLTs is wrong in OPAC
Bug-13469---Unapi-path-to-XSLTs-is-wrong-in-OPAC.patch (text/plain), 1.66 KB, created by
David Cook
on 2014-12-16 02:04:23 UTC
(
hide
)
Description:
Bug 13469 - Unapi path to XSLTs is wrong in OPAC
Filename:
MIME Type:
Creator:
David Cook
Created:
2014-12-16 02:04:23 UTC
Size:
1.66 KB
patch
obsolete
>From 5bcd71130c3552e23ea166131763dc6fbc3e6874 Mon Sep 17 00:00:00 2001 >From: David Cook <dcook@prosentient.com.au> >Date: Tue, 16 Dec 2014 12:53:18 +1100 >Subject: [PATCH] Bug 13469 - Unapi path to XSLTs is wrong in OPAC > >The Unapi path to XSLTs is wrong in the OPAC. > >Unfortunately, it's coded to work just for Git installs, which makes it >tough to test. > >_TEST PLAN_ > >Before applying: >1) Go to >http://GIT-INSTALL/cgi-bin/koha/unapi?id=koha:biblionumber:1&format=oai_dc >2) If the biblionumber exists, it should show you the record in OAI_DC format. >3) Go to >http://REGULAR-INSTALL/cgi-bin/koha/unapi?id=koha:biblionumber:1&format=oai_dc >4) You should get a software error > >Apply the patch. > >After applying: >1) Refresh the page for >http://yourgitinstall/cgi-bin/koha/unapi?id=koha:biblionumber:1&format=oai_dc >2) It should work exactly the same as before. > >Thorough testers: >1) Push the code to that regular test install >2) Try the link again. It will properly show the converted record now. >--- > opac/unapi | 4 ++-- > 1 files changed, 2 insertions(+), 2 deletions(-) > >diff --git a/opac/unapi b/opac/unapi >index a074345..96076b6 100755 >--- a/opac/unapi >+++ b/opac/unapi >@@ -198,8 +198,8 @@ sub get_transformer { > my $marcflavour = uc(C4::Context->preference('marcflavour')); > return unless $format_to_stylesheet_map->{$marcflavour}->{$format}; > >- my $xslt_file = C4::Context->config('intranetdir') . >- "/koha-tmpl/intranet-tmpl/prog/en/xslt/" . >+ my $xslt_file = C4::Context->config('intrahtdocs') . >+ "/prog/en/xslt/" . > $format_to_stylesheet_map->{$marcflavour}->{$format}; > > my $parser = XML::LibXML->new(); >-- >1.7.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 13469
:
34444
|
34484
|
34530