Bugzilla – Attachment 178353 Details for
Bug 20551
Add option for including deleted records in export_records.pl
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 20551: (QA follow-up) don't read record content if there is an error during decoding
Bug-20551-QA-follow-up-dont-read-record-content-if.patch (text/plain), 1.24 KB, created by
Arthur Suzuki
on 2025-02-19 15:00:23 UTC
(
hide
)
Description:
Bug 20551: (QA follow-up) don't read record content if there is an error during decoding
Filename:
MIME Type:
Creator:
Arthur Suzuki
Created:
2025-02-19 15:00:23 UTC
Size:
1.24 KB
patch
obsolete
>From df270889842a43317af25c18503365a20ba032a1 Mon Sep 17 00:00:00 2001 >From: Arthur Suzuki <arthur.suzuki@biblibre.com> >Date: Wed, 19 Feb 2025 15:57:53 +0100 >Subject: [PATCH] Bug 20551: (QA follow-up) don't read record content if there > is an error during decoding > >--- > Koha/Exporter/Record.pm | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-) > >diff --git a/Koha/Exporter/Record.pm b/Koha/Exporter/Record.pm >index 080ded8fd7f..0b3f002ecc7 100644 >--- a/Koha/Exporter/Record.pm >+++ b/Koha/Exporter/Record.pm >@@ -260,9 +260,7 @@ sub export { > my $errorcount_on_decode = > eval { scalar( MARC::File::USMARC->decode( $record->as_usmarc )->warnings() ) }; > if ( $errorcount_on_decode || $@ ) { >- my ( $id_tag, $id_subfield ) = GetMarcFromKohaField( 'biblio.biblionumber', '' ); >- my $record_id = $record->subfield( $id_tag, $id_subfield ); >- my $msg = "$record_type $record_id could not be USMARC decoded/encoded. " . ( $@ // '' ); >+ my $msg = "$record_type could not be USMARC decoded/encoded. " . ( $@ // '' ); > chomp $msg; > Koha::Logger->get->warn($msg); > return 0; >-- >2.39.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 20551
:
73916
|
73923
|
75113
|
82843
|
82914
|
82918
|
90184
|
90190
|
90220
|
93619
|
93620
|
93621
|
105403
|
116408
|
116409
|
116410
|
116411
|
123099
|
123101
|
123102
|
125211
|
125212
|
125213
|
125214
|
125215
|
125216
|
128895
|
128896
|
128897
|
128898
|
128899
|
128900
|
132936
|
132937
|
176623
|
176624
|
176625
|
176626
|
176627
|
176628
|
176629
|
176630
|
176631
|
177536
|
178343
|
178344
|
178345
|
178346
|
178347
|
178348
|
178349
|
178350
|
178351
|
178352
|
178353
|
178378
|
178379
|
178575
|
178617
|
178618
|
178619
|
178679
|
178680
|
178681
|
178682
|
179748
|
179749
|
180648
|
180649
|
180650
|
180651
|
180652
|
180653
|
180654
|
180655
|
180656
|
180657
|
180658
|
180659
|
180660
|
180661
|
180662
|
180663
|
180664
|
180665