Bugzilla – Attachment 48439 Details for
Bug 15923
Export records by id list impossible in export_records.pl
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 15923: Fix --id_list_file option for misc/export_records.pl
Bug-15923-Fix---idlistfile-option-for-miscexportre.patch (text/plain), 1007 bytes, created by
Jonathan Druart
on 2016-02-29 10:57:34 UTC
(
hide
)
Description:
Bug 15923: Fix --id_list_file option for misc/export_records.pl
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2016-02-29 10:57:34 UTC
Size:
1007 bytes
patch
obsolete
>From 9d85c8d4880ba1708e4f4ea1bcd24370f5f937cb Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Mon, 29 Feb 2016 10:56:33 +0000 >Subject: [PATCH] Bug 15923: Fix --id_list_file option for > misc/export_records.pl > >--- > misc/export_records.pl | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) > >diff --git a/misc/export_records.pl b/misc/export_records.pl >index b411425..2783542 100755 >--- a/misc/export_records.pl >+++ b/misc/export_records.pl >@@ -173,8 +173,9 @@ elsif ( $record_type eq 'auths' ) { > } > > @record_ids = uniq @record_ids; >-if ( @record_ids and my $id_list_file ) { >- my @filter_record_ids = <$id_list_file>; >+if ( @record_ids and $id_list_file ) { >+ open my $fh, '<', $id_list_file or die "Cannot open file $id_list_file ($!)"; >+ my @filter_record_ids = <$fh>; > @filter_record_ids = map { my $id = $_; $id =~ s/[\r\n]*$//; $id } @filter_record_ids; > # intersection > my %record_ids = map { $_ => 1 } @record_ids; >-- >2.7.0
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 15923
:
48429
|
48430
|
48439
|
48444
|
48445
|
48527
|
48528