Bugzilla – Attachment 20633 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.10 KB, created by
Jonathan Druart
on 2013-08-26 15:40:10 UTC
(
hide
)
Description:
Bug 10684 - Followup Koha search dies on undecodable records
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2013-08-26 15:40:10 UTC
Size:
1.10 KB
patch
obsolete
>From c8e34cce73316965eadd6ac702d0c76e36e113f9 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> >--- > C4/Search.pm | 8 +++++--- > 1 file 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.10.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 10684
:
20109
|
20200
|
20632
|
20633
|
20635