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

(-)a/misc/export_records.pl (-6 / +7 lines)
Lines 100-108 if ($include_deleted || $deleted_only) { Link Here
100
   if ($record_type ne 'bibs') {
100
   if ($record_type ne 'bibs') {
101
        pod2usage(q|Option "--include_deleted" or "--deleted_only" can only be used with "--record-type=bibs"|);
101
        pod2usage(q|Option "--include_deleted" or "--deleted_only" can only be used with "--record-type=bibs"|);
102
    }
102
    }
103
    if (!$timestamp) {
104
        pod2usage(q|Option "--include_deleted" or "--deleted_only" requires that "--date" is also set|);
105
    }
106
    if ($output_format eq 'csv') {
103
    if ($output_format eq 'csv') {
107
        pod2usage(q|Option "--include_deleted" or "--deleted_only" cannot be used with "--format=csv"|);
104
        pod2usage(q|Option "--include_deleted" or "--deleted_only" cannot be used with "--format=csv"|);
108
    }
105
    }
Lines 262-267 if ( @record_ids and $id_list_file ) { Link Here
262
    # intersection
259
    # intersection
263
    my %record_ids = map { $_ => 1 } @record_ids;
260
    my %record_ids = map { $_ => 1 } @record_ids;
264
    @record_ids = grep $record_ids{$_}, @filter_record_ids;
261
    @record_ids = grep $record_ids{$_}, @filter_record_ids;
262
263
    my %deleted_record_ids = map { $_ => 1 } @deleted_record_ids;
264
    @deleted_record_ids = grep $deleted_record_ids{$_}, @filter_record_ids;
265
}
265
}
266
266
267
if ($deleted_barcodes) {
267
if ($deleted_barcodes) {
Lines 320-331 Print a brief help message. Link Here
320
=item B<--include_deleted>
320
=item B<--include_deleted>
321
321
322
 --include_deleted      If enabled, when using --date option, deleted records will be included in export as marc records
322
 --include_deleted      If enabled, when using --date option, deleted records will be included in export as marc records
323
                        with leader record status set to "d" (deleted).
323
                        with leader record status set to "d" (deleted). This option is only valid for biblio records.
324
                        Items will not be included in deleted records.
324
325
325
=item B<--deleted_only>
326
=item B<--deleted_only>
326
327
327
 --deleted_only         If enabled, when using --date option, only deleted records will be included in export as marc
328
 --deleted_only         If enabled, when using --date option, only deleted records will be included in export as marc
328
                        records with leader record status set to "d" (deleted).
329
                        records with leader record status set to "d" (deleted). This option is only valid for biblio records.
330
                        Items will not be included in deleted records.
329
331
330
=item B<--record-type>
332
=item B<--record-type>
331
333
332
- 

Return to bug 20551