Bugzilla – Attachment 176626 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.29 KB, created by
Arthur Suzuki
on 2025-01-16 10:42:21 UTC
(
hide
)
Description:
Bug 20551: Improve documentation and make compatible with more options
Filename:
MIME Type:
Creator:
Arthur Suzuki
Created:
2025-01-16 10:42:21 UTC
Size:
2.29 KB
patch
obsolete
>From 3d3b68066e1f5a938b9c3d62f1d8ec7df33202aa 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 > >Signed-off-by: Frank Hansen <frank.hansen@ub.lu.se> >--- > 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 c7912280568..e0097ec1e2b 100755 >--- a/misc/export_records.pl >+++ b/misc/export_records.pl >@@ -111,9 +111,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"|); > } >@@ -336,6 +333,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) { >@@ -397,12 +397,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.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