Bugzilla – Attachment 12938 Details for
Bug 8947
Search does not work with CCSR theme and language = nb-NO
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 8947: [SIGNED-OFF] XSLT fallback logic backwards
Bug-8947-SIGNED-OFF-XSLT-fallback-logic-backwards.patch (text/plain), 1.74 KB, created by
Magnus Enger
on 2012-10-19 12:57:28 UTC
(
hide
)
Description:
Bug 8947: [SIGNED-OFF] XSLT fallback logic backwards
Filename:
MIME Type:
Creator:
Magnus Enger
Created:
2012-10-19 12:57:28 UTC
Size:
1.74 KB
patch
obsolete
>From 359df2888fb4995c3dd570bd77a55676d3685757 Mon Sep 17 00:00:00 2001 >From: Jared Camins-Esakov <jcamins@cpbibliography.com> >Date: Fri, 19 Oct 2012 08:33:04 -0400 >Subject: [PATCH] Bug 8947: [SIGNED-OFF] XSLT fallback logic backwards > >The logic for the XSLT fallback was backwards, which meant that >non-English installations of the CCSR theme were unable to use XSLT >stylesheets. This patch corrects the logic. > >To test: >1) Switch to the ccsr OPAC theme. >2) Switch to a language other than English for the OPAC. >3) Turn on the default XSLT stylesheets for the OPAC. >4) Do a search or view a record that would result in something being > displayed with XSLT. This will work after the patch, but not before. > >Signed-off-by: Magnus Enger <magnus@enger.priv.no> >Works as advertised! >--- > C4/XSLT.pm | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > >diff --git a/C4/XSLT.pm b/C4/XSLT.pm >index d17b828..19ec162 100644 >--- a/C4/XSLT.pm >+++ b/C4/XSLT.pm >@@ -166,9 +166,9 @@ sub XSLTParse4Display { > "slim2OPACResults.xsl"; > } > $xslfilename = "$htdocs/$theme/$lang/xslt/$xslfile"; >- $xslfilename = "$htdocs/$theme/en/xslt/$xslfile" unless ( $lang ne 'en' && !-f $xslfilename ); >- $xslfilename = "$htdocs/prog/$lang/xslt/$xslfile" unless ( !-f $xslfilename ); >- $xslfilename = "$htdocs/prog/en/xslt/$xslfile" unless ( $lang ne 'en' && !-f $xslfilename ); >+ $xslfilename = "$htdocs/$theme/en/xslt/$xslfile" unless ( $lang ne 'en' && -f $xslfilename ); >+ $xslfilename = "$htdocs/prog/$lang/xslt/$xslfile" unless ( -f $xslfilename ); >+ $xslfilename = "$htdocs/prog/en/xslt/$xslfile" unless ( $lang ne 'en' && -f $xslfilename ); > } > > if ( $xslfilename =~ m/\{langcode\}/ ) { >-- >1.7.9.5
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 8947
:
12937
| 12938