From: Owen Leonard Date: Thu, 10 Jun 2010 17:09:14 +0000 (-0400) Subject: Fix for Bug 4884, opac-showmarc.pl can't find compact.xsl X-Git-Url: http://git.rot13.org/?a=commitdiff_plain;h=6f14921479e2863d801ab3689c9301d8a88fbc65;p=koha.git Fix for Bug 4884, opac-showmarc.pl can't find compact.xsl This patch implements Fridolyn SOMERS' suggested change to the .xsl file path but copies compact.xsl from the intranet template dir and points to that instead. Signed-off-by: Galen Charlton --- diff --git a/koha-tmpl/opac-tmpl/prog/en/xslt/compact.xsl b/koha-tmpl/opac-tmpl/prog/en/xslt/compact.xsl new file mode 100644 index 0000000000..43d7f537f0 --- /dev/null +++ b/koha-tmpl/opac-tmpl/prog/en/xslt/compact.xsl @@ -0,0 +1,86 @@ + + + + + + + + MARC Card View + + + + + + + + +
+ + + + + +
+
+ + + # + + + + +

+
+ + + + +
+
+ + + + +

+
+ +

+
+ + . + + + . + + + + + + LCCN: + + + + + +
+
+
+ + + + + + + + + + -- + + + +
diff --git a/opac/opac-showmarc.pl b/opac/opac-showmarc.pl index c2f1722476..7eb934e196 100755 --- a/opac/opac-showmarc.pl +++ b/opac/opac-showmarc.pl @@ -64,7 +64,7 @@ if ($importid) { if ($view eq 'card') { $xmlrecord = GetXmlBiblio($biblionumber) unless $xmlrecord; -my $xslfile = C4::Context->config('intranetdir')."/koha-tmpl/intranet-tmpl/prog/en/xslt/compact.xsl"; +my $xslfile = C4::Context->config('opachtdocs')."/prog/en/xslt/compact.xsl"; my $parser = XML::LibXML->new(); my $xslt = XML::LibXSLT->new(); my $source = $parser->parse_string($xmlrecord);