View | Details | Raw Unified | Return to bug 20551
Collapse All | Expand All

(-)a/misc/export_records.pl (-6 / +7 lines)
Lines 111-119 if ($include_deleted || $deleted_only) { Link Here
111
   if ($record_type ne 'bibs') {
111
   if ($record_type ne 'bibs') {
112
        pod2usage(q|Option "--include_deleted" or "--deleted_only" can only be used with "--record-type=bibs"|);
112
        pod2usage(q|Option "--include_deleted" or "--deleted_only" can only be used with "--record-type=bibs"|);
113
    }
113
    }
114
    if (!$timestamp) {
115
        pod2usage(q|Option "--include_deleted" or "--deleted_only" requires that "--date" is also set|);
116
    }
117
    if ($output_format eq 'csv') {
114
    if ($output_format eq 'csv') {
118
        pod2usage(q|Option "--include_deleted" or "--deleted_only" cannot be used with "--format=csv"|);
115
        pod2usage(q|Option "--include_deleted" or "--deleted_only" cannot be used with "--format=csv"|);
119
    }
116
    }
Lines 336-341 if ( @record_ids and $id_list_file ) { Link Here
336
    # intersection
333
    # intersection
337
    my %record_ids = map { $_ => 1 } @record_ids;
334
    my %record_ids = map { $_ => 1 } @record_ids;
338
    @record_ids = grep $record_ids{$_}, @filter_record_ids;
335
    @record_ids = grep $record_ids{$_}, @filter_record_ids;
336
337
    my %deleted_record_ids = map { $_ => 1 } @deleted_record_ids;
338
    @deleted_record_ids = grep $deleted_record_ids{$_}, @filter_record_ids;
339
}
339
}
340
340
341
if ($deleted_barcodes) {
341
if ($deleted_barcodes) {
Lines 397-408 Print a brief help message. Link Here
397
=item B<--include_deleted>
397
=item B<--include_deleted>
398
398
399
 --include_deleted      If enabled, when using --date option, deleted records will be included in export as marc records
399
 --include_deleted      If enabled, when using --date option, deleted records will be included in export as marc records
400
                        with leader record status set to "d" (deleted).
400
                        with leader record status set to "d" (deleted). This option is only valid for biblio records.
401
                        Items will not be included in deleted records.
401
402
402
=item B<--deleted_only>
403
=item B<--deleted_only>
403
404
404
 --deleted_only         If enabled, when using --date option, only deleted records will be included in export as marc
405
 --deleted_only         If enabled, when using --date option, only deleted records will be included in export as marc
405
                        records with leader record status set to "d" (deleted).
406
                        records with leader record status set to "d" (deleted). This option is only valid for biblio records.
407
                        Items will not be included in deleted records.
406
408
407
=item B<--record-type>
409
=item B<--record-type>
408
410
409
- 

Return to bug 20551