fixed locating OPAC stylesheet in a "standard" install
authorGalen Charlton <galen.charlton@liblime.com>
Mon, 31 Mar 2008 22:08:55 +0000 (17:08 -0500)
committerJoshua Ferraro <jmf@liblime.com>
Tue, 1 Apr 2008 11:46:09 +0000 (06:46 -0500)
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
C4/XSLT.pm

index 52cb83c..1057685 100644 (file)
@@ -107,7 +107,7 @@ sub XSLTParse4Display {
     my $itemsxml  = buildKohaItemsNamespace($biblionumber);
     my $xmlrecord = $record->as_xml();
     $xmlrecord =~ s/\<\/record\>/$itemsxml\<\/record\>/;
-    my $xslfile = C4::Context->config('intranetdir')."/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPAC$type.xsl";
+    my $xslfile = C4::Context->config('opachtdocs')."/prog/en/xslt/MARC21slim2OPAC$type.xsl";
     my $parser = XML::LibXML->new();
     # don't die when you find &, >, etc
     $parser->recover_silently(1);