From 5bf590e6c9602afa3206852795037416eacf7a20 Mon Sep 17 00:00:00 2001 From: Magnus Enger Date: Fri, 7 Mar 2014 09:10:49 +0100 Subject: [PATCH] Bug 10647 - Make OPAC MARC plain view work for all flavours of MARC On "MARC view" in the OPAC, clicking on "Plain view" does not work for UNIMARC and NORMARC. To test: - Make sure you have a UNIMARC or NORMARC setup and OPACXSLTDetailsDisplay not empty - Go to the "MARC view" of a record in the OPAC - Click on "view plain" and observe the "Sorry, plain view is temporarily unavailable." error message - Apply the patch - Click on "view plain" and observe that a plain view of the MARC record is now displayed - Sign off I have only tested this on NORMARC, it might be good if someone can test on UNIMARC. Signed-off-by: Fridolin Somers --- .../xslt/{MARC21slim2OPACMARCdetail.xsl => MARCslim2OPACMARCdetail.xsl} | 0 opac/opac-showmarc.pl | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) rename koha-tmpl/opac-tmpl/prog/en/xslt/{MARC21slim2OPACMARCdetail.xsl => MARCslim2OPACMARCdetail.xsl} (100%) diff --git a/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACMARCdetail.xsl b/koha-tmpl/opac-tmpl/prog/en/xslt/MARCslim2OPACMARCdetail.xsl similarity index 100% rename from koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACMARCdetail.xsl rename to koha-tmpl/opac-tmpl/prog/en/xslt/MARCslim2OPACMARCdetail.xsl diff --git a/opac/opac-showmarc.pl b/opac/opac-showmarc.pl index 27ab61c..626f09c 100755 --- a/opac/opac-showmarc.pl +++ b/opac/opac-showmarc.pl @@ -71,7 +71,7 @@ if ($view eq 'card' || $view eq 'html') { $xslfile = "compact.xsl"; } else { # must be html - $xslfile = C4::Context->preference('marcflavour') . "slim2OPACMARCdetail.xsl"; + $xslfile = 'MARCslim2OPACMARCdetail.xsl'; } $xslfilename = "$htdocs/$theme/$lang/xslt/$xslfile"; $xslfilename = "$htdocs/$theme/en/xslt/$xslfile" unless ( $lang ne 'en' && -f $xslfilename ); -- 1.8.3.2