From 6f14921479e2863d801ab3689c9301d8a88fbc65 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Thu, 10 Jun 2010 13:09:14 -0400 Subject: [PATCH] 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 --- koha-tmpl/opac-tmpl/prog/en/xslt/compact.xsl | 86 ++++++++++++++++++++ opac/opac-showmarc.pl | 2 +- 2 files changed, 87 insertions(+), 1 deletion(-) create mode 100644 koha-tmpl/opac-tmpl/prog/en/xslt/compact.xsl 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); -- 2.39.5