Bugzilla – Attachment 3114 Details for
Bug 5727
Use of uninitialized value in concatenation (.) or string
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Warning from XSLT.pm
0001-Bug-5727-Warning-in-log-due-to-XSLT.pm.patch (text/plain), 1.21 KB, created by
Frédéric Demians
on 2011-02-09 17:43:35 UTC
(
hide
)
Description:
Warning from XSLT.pm
Filename:
MIME Type:
Creator:
Frédéric Demians
Created:
2011-02-09 17:43:35 UTC
Size:
1.21 KB
patch
obsolete
>From 1e11be8f47c9f3db5b4ca2715122fb8c5fae1531 Mon Sep 17 00:00:00 2001 >From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Demians?= <f.demians@tamil.fr> >Date: Wed, 9 Feb 2011 18:38:30 +0100 >Subject: [PATCH] Bug 5727 Warning in log due to XSLT.pm > >XSLT.pm add few syspref to MARCXML record send to be transformed by XSLT. If >one of those syspref doesn't exist, it generated a warning. >--- > C4/XSLT.pm | 6 +++--- > 1 files changed, 3 insertions(+), 3 deletions(-) > >diff --git a/C4/XSLT.pm b/C4/XSLT.pm >index 7844330..f1c5293 100644 >--- a/C4/XSLT.pm >+++ b/C4/XSLT.pm >@@ -129,9 +129,9 @@ sub XSLTParse4Display { > my $xmlrecord = $record->as_xml(C4::Context->preference('marcflavour')); > my $sysxml = "<sysprefs>\n"; > foreach my $syspref ( qw/OPACURLOpenInNewWindow DisplayOPACiconsXSLT URLLinkText viewISBD OPACBaseURL/ ) { >- $sysxml .= "<syspref name=\"$syspref\">" . >- C4::Context->preference( $syspref ) . >- "</syspref>\n"; >+ my $sp = C4::Context->preference( $syspref ); >+ next unless defined($sp); >+ $sysxml .= "<syspref name=\"$syspref\">$sp</syspref>\n"; > } > $sysxml .= "</sysprefs>\n"; > $xmlrecord =~ s/\<\/record\>/$itemsxml$sysxml\<\/record\>/; >-- >1.7.4 >
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 5727
: 3114 |
10609