[Bug 5248] New: Some descriptions missing in the opac
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=5248 Summary: Some descriptions missing in the opac Change sponsored?: --- Product: Koha Version: rel_3_0 Platform: All OS/Version: All Status: NEW Severity: normal Priority: P5 Component: OPAC AssignedTo: oleonard@myacpl.org ReportedBy: chad@pennmanor.net QAContact: koha-bugs@lists.koha-community.org Estimated Hours: 0.0 Created attachment 2646 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=2646 Patch for opac-detail Certain items were not displaying a description even though they had valid 52x fields in the marc record. This was happening to a number of our records but I haven't been able to narrow down the exact cause of the problem. I attached a patch that fixes the problem on our 3.0.x install. Here is a link to the unpatched version of opac-detail.pl https://library.pennmanor.net/cgi-bin/koha/opac-detail-orig.pl?biblionumber=... And to the patched version https://library.pennmanor.net/cgi-bin/koha/opac-detail.pl?biblionumber=10323... -- Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=5248 chad@pennmanor.net changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #2646|0 |1 is patch| | Attachment #2646|application/octet-stream |text/plain mime type| | -- Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=5248 M. de Rooy <m.de.rooy@rijksmuseum.nl> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |m.de.rooy@rijksmuseum.nl --- Comment #1 from M. de Rooy <m.de.rooy@rijksmuseum.nl> 2010-10-18 13:21:41 UTC --- Thank you for this bug report. We also have this issue. The exact cause of the problem is calling functions like GetNormalized... in list context. Since they return nothing (in this context an empty list), Perl discards this value and the rest of the list shifts one position forward resulting in a mixup of the parameters passed to template->param. Calling the functions in scalar context before the template->param call as you did in the patch solves the problem. You could also force scalar context with a scalar statement or adding the test ||'' ("OR empty string"). -- Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=5248 M. de Rooy <m.de.rooy@rijksmuseum.nl> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P5 |PATCH-Sent Status|NEW |RESOLVED Resolution| |FIXED AssignedTo|oleonard@myacpl.org |m.de.rooy@rijksmuseum.nl --- Comment #2 from M. de Rooy <m.de.rooy@rijksmuseum.nl> 2010-10-21 07:26:16 UTC --- (In reply to comment #1)
Thank you for this bug report. We also have this issue. The exact cause of the problem is calling functions like GetNormalized... in list context. Since they return nothing (in this context an empty list), Perl discards this value and the rest of the list shifts one position forward resulting in a mixup of the parameters passed to template->param. Calling the functions in scalar context before the template->param call as you did in the patch solves the problem. You could also force scalar context with a scalar statement or adding the test ||'' ("OR empty string").
"Since they return nothing" should of course be: "If they return nothing" Patch sent for 3.0.x. This problem is already solved in 3.2 -- Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=5248 M. de Rooy <m.de.rooy@rijksmuseum.nl> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED -- Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org