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

(-)a/misc/export_records.pl (-6 / +7 lines)
Lines 117-125 if ( $include_deleted || $deleted_only ) { Link Here
117
    if ( $record_type ne 'bibs' ) {
117
    if ( $record_type ne 'bibs' ) {
118
        pod2usage(q|Option "--include_deleted" or "--deleted_only" can only be used with "--record-type=bibs"|);
118
        pod2usage(q|Option "--include_deleted" or "--deleted_only" can only be used with "--record-type=bibs"|);
119
    }
119
    }
120
    if ( !$timestamp ) {
121
        pod2usage(q|Option "--include_deleted" or "--deleted_only" requires that "--date" is also set|);
122
    }
123
    if ( $output_format eq 'csv' ) {
120
    if ( $output_format eq 'csv' ) {
124
        pod2usage(q|Option "--include_deleted" or "--deleted_only" cannot be used with "--format=csv"|);
121
        pod2usage(q|Option "--include_deleted" or "--deleted_only" cannot be used with "--format=csv"|);
125
    }
122
    }
Lines 361-366 if ( @record_ids and $id_list_file ) { Link Here
361
    # intersection
358
    # intersection
362
    my %record_ids = map { $_ => 1 } @record_ids;
359
    my %record_ids = map { $_ => 1 } @record_ids;
363
    @record_ids = grep $record_ids{$_}, @filter_record_ids;
360
    @record_ids = grep $record_ids{$_}, @filter_record_ids;
361
362
    my %deleted_record_ids = map { $_ => 1 } @deleted_record_ids;
363
    @deleted_record_ids = grep $deleted_record_ids{$_}, @filter_record_ids;
364
}
364
}
365
365
366
if ($deleted_barcodes) {
366
if ($deleted_barcodes) {
Lines 470-481 Print a brief help message. Link Here
470
=item B<--include_deleted>
470
=item B<--include_deleted>
471
471
472
 --include_deleted      If enabled, when using --date option, deleted records will be included in export as marc records
472
 --include_deleted      If enabled, when using --date option, deleted records will be included in export as marc records
473
                        with leader record status set to "d" (deleted).
473
                        with leader record status set to "d" (deleted). This option is only valid for biblio records.
474
                        Items will not be included in deleted records.
474
475
475
=item B<--deleted_only>
476
=item B<--deleted_only>
476
477
477
 --deleted_only         If enabled, when using --date option, only deleted records will be included in export as marc
478
 --deleted_only         If enabled, when using --date option, only deleted records will be included in export as marc
478
                        records with leader record status set to "d" (deleted).
479
                        records with leader record status set to "d" (deleted). This option is only valid for biblio records.
480
                        Items will not be included in deleted records.
479
481
480
=item B<--record-type>
482
=item B<--record-type>
481
483
482
- 

Return to bug 20551