Bugzilla – Attachment 105403 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: Improve documentation and make compatible with more options
Bug-20551-Improve-documentation-and-make-compatibl.patch (text/plain), 2.24 KB, created by
David Gustafsson
on 2020-05-27 14:50:16 UTC
(
hide
)
Description:
Bug 20551: Improve documentation and make compatible with more options
Filename:
MIME Type:
Creator:
David Gustafsson
Created:
2020-05-27 14:50:16 UTC
Size:
2.24 KB
patch
obsolete
>From 0bc6ced09f201a1cac7a7ffa02596856324c5c9b Mon Sep 17 00:00:00 2001 >From: David Gustafsson <glasklas@gmail.com> >Date: Wed, 27 May 2020 16:46:53 +0200 >Subject: [PATCH] Bug 20551: Improve documentation and make compatible with > more options > >--- > misc/export_records.pl | 12 +++++++----- > 1 file changed, 7 insertions(+), 5 deletions(-) > >diff --git a/misc/export_records.pl b/misc/export_records.pl >index 3d8a8d37d6..9069caaef6 100755 >--- a/misc/export_records.pl >+++ b/misc/export_records.pl >@@ -100,9 +100,6 @@ if ($include_deleted || $deleted_only) { > if ($record_type ne 'bibs') { > pod2usage(q|Option "--include_deleted" or "--deleted_only" can only be used with "--record-type=bibs"|); > } >- if (!$timestamp) { >- pod2usage(q|Option "--include_deleted" or "--deleted_only" requires that "--date" is also set|); >- } > if ($output_format eq 'csv') { > pod2usage(q|Option "--include_deleted" or "--deleted_only" cannot be used with "--format=csv"|); > } >@@ -262,6 +259,9 @@ if ( @record_ids and $id_list_file ) { > # intersection > my %record_ids = map { $_ => 1 } @record_ids; > @record_ids = grep $record_ids{$_}, @filter_record_ids; >+ >+ my %deleted_record_ids = map { $_ => 1 } @deleted_record_ids; >+ @deleted_record_ids = grep $deleted_record_ids{$_}, @filter_record_ids; > } > > if ($deleted_barcodes) { >@@ -320,12 +320,14 @@ Print a brief help message. > =item B<--include_deleted> > > --include_deleted If enabled, when using --date option, deleted records will be included in export as marc records >- with leader record status set to "d" (deleted). >+ with leader record status set to "d" (deleted). This option is only valid for biblio records. >+ Items will not be included in deleted records. > > =item B<--deleted_only> > > --deleted_only If enabled, when using --date option, only deleted records will be included in export as marc >- records with leader record status set to "d" (deleted). >+ records with leader record status set to "d" (deleted). This option is only valid for biblio records. >+ Items will not be included in deleted records. > > =item B<--record-type> > >-- >2.20.1
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