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

(-)a/misc/maintenance/sanitize_records.pl (-7 / +7 lines)
Lines 150-160 sub biblios_to_sanitize { Link Here
150
    my $dbh   = C4::Context->dbh;
150
    my $dbh   = C4::Context->dbh;
151
    my $query = q{
151
    my $query = q{
152
        SELECT biblionumber
152
        SELECT biblionumber
153
        FROM biblioitems
153
        FROM biblio_metadata
154
        WHERE marcxml
154
        WHERE format = 'marcxml'
155
        LIKE "%&%"
155
            AND marcflavour = ?
156
    };
156
            AND metadata LIKE "%&%"
157
    return @{ $dbh->selectcol_arrayref( $query, { Slice => {} }, ) };
157
        };
158
    return @{ $dbh->selectcol_arrayref( $query, { Slice => {} }, C4::Context->preference('marcflavour') ) };
158
}
159
}
159
160
160
=head1 NAME
161
=head1 NAME
Lines 194-200 commas. Link Here
194
195
195
Give a biblionumber list using a filename. One biblionumber by line or separate them with a whitespace character.
196
Give a biblionumber list using a filename. One biblionumber by line or separate them with a whitespace character.
196
197
197
=item B<--auto_search>
198
=item B<--auto-search>
198
199
199
Automatically search records containing "&amp;" in biblioitems.marcxml or in the specified fields.
200
Automatically search records containing "&amp;" in biblioitems.marcxml or in the specified fields.
200
201
201
- 

Return to bug 17196