[Koha-patches] (BUG #4903) oai.pl: OAI doesn't work out of the box - XSL path
Galen Charlton
gmcharlt at gmail.com
Fri Jun 25 02:49:57 CEST 2010
Hi,
On Thu, Jun 24, 2010 at 7:15 PM, Tomas Cohen Arazi <tomascohen at gmail.com> wrote:
> diff --git a/opac/oai.pl b/opac/oai.pl
> index 546623e..1d189c1 100755
> --- a/opac/oai.pl
> +++ b/opac/oai.pl
> @@ -463,7 +463,7 @@ sub oai_dc_stylesheet {
>
> unless ( $self->{ oai_dc_stylesheet } ) {
> my $xslt_file = C4::Context->config('intranetdir') .
> - "/koha-tmpl/intranet-tmpl/prog/en/xslt/" .
> + "/../htdocs/intranet-tmpl/prog/en/xslt/" .
This won't work across all installation modes. dev-mode installation,
for example, does not define a directory called htdocs. Instead, try
using C4::Context->config('intrahtdocs') . '/prog/en/xslt' and see if
that resolves the problem. If so, please submit a revised patch.
Regards,
Galen
--
Galen Charlton
gmcharlt at gmail.com
More information about the Koha-patches
mailing list