[Koha-patches] [PATCH] Bug 5248 (Some descriptions missing in the opac) [3.0.X only]

Marcel de Rooy M.de.Rooy at rijksmuseum.nl
Thu Oct 21 09:23:28 CEST 2010


If a function returns nothing and is called in list context, Perl discards the value resulting in a mixup of the arguments for the param function here.

This problem in opac-detail.pl is already solved in 3.2.
---
 opac/opac-detail.pl |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/opac/opac-detail.pl b/opac/opac-detail.pl
index 5940fb0..b35f9c0 100755
--- a/opac/opac-detail.pl
+++ b/opac/opac-detail.pl
@@ -186,8 +186,8 @@ my $marcurlsarray    = GetMarcUrls      ($record,$marcflavour);
 my $subtitle         = GetRecordValue('subtitle', $record, GetFrameworkCode($biblionumber));
 
     $template->param(
-                     normalized_oclc         => GetNormalizedOCLCNumber($record,$marcflavour),
-                     normalized_upc          => GetNormalizedUPC       ($record,$marcflavour),
+                     normalized_oclc         => scalar GetNormalizedOCLCNumber($record,$marcflavour),
+                     normalized_upc          => scalar GetNormalizedUPC       ($record,$marcflavour),
                      normalized_isbn         => $normalized_isbn,
                      MARCNOTES               => $marcnotesarray,
                      MARCSUBJCTS             => $marcsubjctsarray,
-- 
1.6.0.6



More information about the Koha-patches mailing list