From 46041a8fdc51c9c1173cd8cc343e6ac1f7bd46f6 Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Thu, 7 Apr 2011 09:57:45 +0200 Subject: [PATCH] bug 4903: enable OAI-DC output when install done in standard mode MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Based on patch by Tomás Cohen Arazi , revised to work regardless of the installation mode. Signed-off-by: Galen Charlton Signed-off-by: Magnus Enger Signed-off-by: Chris Cormack --- opac/oai.pl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/opac/oai.pl b/opac/oai.pl index b43498036f..038b6d1792 100755 --- a/opac/oai.pl +++ b/opac/oai.pl @@ -459,10 +459,10 @@ sub stylesheet { unless ( $stylesheet ) { my $xsl_file = $self->{ conf } ? $self->{ conf }->{ format }->{ $format }->{ xsl_file } - : ( C4::Context->config('intranetdir') . - "/koha-tmpl/intranet-tmpl/prog/en/xslt/" . + : ( C4::Context->config('intrahtdocs') . + '/prog/en/xslt/' . C4::Context->preference('marcflavour') . - "slim2OAIDC.xsl" ); + 'slim2OAIDC.xsl' ); my $parser = XML::LibXML->new(); my $xslt = XML::LibXSLT->new(); my $style_doc = $parser->parse_file( $xsl_file ); -- 2.39.5