Bugzilla – Attachment 20635 Details for
Bug 10684
Koha search dies on undecodable records
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 10684 - Followup Koha search dies on undecodable records
Bug-10684---Followup-Koha-search-dies-on-undecodab.patch (text/plain), 1.15 KB, created by
Kyle M Hall (khall)
on 2013-08-26 17:05:41 UTC
(
hide
)
Description:
Bug 10684 - Followup Koha search dies on undecodable records
Filename:
MIME Type:
Creator:
Kyle M Hall (khall)
Created:
2013-08-26 17:05:41 UTC
Size:
1.15 KB
patch
obsolete
>From 7783faab2da0ee5ca7e251d49a7058d4beeb493d Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@biblibre.com> >Date: Mon, 26 Aug 2013 17:37:14 +0200 >Subject: [PATCH] Bug 10684 - Followup Koha search dies on undecodable records > >Prevent future error. > >Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com> >Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> >--- > C4/Search.pm | 8 +++++--- > 1 files changed, 5 insertions(+), 3 deletions(-) > >diff --git a/C4/Search.pm b/C4/Search.pm >index 26d482d..1f6ea66 100644 >--- a/C4/Search.pm >+++ b/C4/Search.pm >@@ -1698,9 +1698,11 @@ sub searchResults { > > # loop through all of the records we've retrieved > for ( my $i = $offset ; $i <= $times - 1 ; $i++ ) { >- my $marcrecord = eval { MARC::File::USMARC::decode( $marcresults->[$i] ) }; >- warn "ERROR DECODING RECORD - $@: " . $marcresults->[$i] if $@; >- next if $@; >+ my $marcrecord = eval { MARC::File::USMARC::decode( $marcresults->[$i] ); }; >+ if ( $@ ) { >+ warn "ERROR DECODING RECORD - $@: " . $marcresults->[$i]; >+ next; >+ } > > my $fw = $scan > ? undef >-- >1.7.2.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 10684
:
20109
|
20200
|
20632
|
20633
| 20635