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 342-347 if ( @record_ids and $id_list_file ) { Link Here
342
    # intersection
339
    # intersection
343
    my %record_ids = map { $_ => 1 } @record_ids;
340
    my %record_ids = map { $_ => 1 } @record_ids;
344
    @record_ids = grep $record_ids{$_}, @filter_record_ids;
341
    @record_ids = grep $record_ids{$_}, @filter_record_ids;
342
343
    my %deleted_record_ids = map { $_ => 1 } @deleted_record_ids;
344
    @deleted_record_ids = grep $deleted_record_ids{$_}, @filter_record_ids;
345
}
345
}
346
346
347
if ($deleted_barcodes) {
347
if ($deleted_barcodes) {
Lines 403-414 Print a brief help message. Link Here
403
=item B<--include_deleted>
403
=item B<--include_deleted>
404
404
405
 --include_deleted      If enabled, when using --date option, deleted records will be included in export as marc records
405
 --include_deleted      If enabled, when using --date option, deleted records will be included in export as marc records
406
                        with leader record status set to "d" (deleted).
406
                        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.
407
408
408
=item B<--deleted_only>
409
=item B<--deleted_only>
409
410
410
 --deleted_only         If enabled, when using --date option, only deleted records will be included in export as marc
411
 --deleted_only         If enabled, when using --date option, only deleted records will be included in export as marc
411
                        records with leader record status set to "d" (deleted).
412
                        records with leader record status set to "d" (deleted). This option is only valid for biblio records.
413
                        Items will not be included in deleted records.
412
414
413
=item B<--record-type>
415
=item B<--record-type>
414
416
415
- 

Return to bug 20551