Bugzilla – Attachment 57837 Details for
Bug 17196
Move marcxml out of the biblioitems table
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 17196: Update misc/maintenance/sanitize_records.pl
Bug-17196-Update-miscmaintenancesanitizerecordspl.patch (text/plain), 1.54 KB, created by
Jonathan Druart
on 2016-11-30 16:55:11 UTC
(
hide
)
Description:
Bug 17196: Update misc/maintenance/sanitize_records.pl
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2016-11-30 16:55:11 UTC
Size:
1.54 KB
patch
obsolete
>From e39acaf7fade113980c4990dc6dee4546af68891 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Thu, 25 Aug 2016 14:59:12 +0100 >Subject: [PATCH] Bug 17196: Update misc/maintenance/sanitize_records.pl > >Test plan: >Use the sanitize_records.pl maintenance script with the --auto-search >option > >Signed-off-by: Mason James <mtj@kohaaloha.com> >--- > misc/maintenance/sanitize_records.pl | 13 +++++++------ > 1 file changed, 7 insertions(+), 6 deletions(-) > >diff --git a/misc/maintenance/sanitize_records.pl b/misc/maintenance/sanitize_records.pl >index b9caa4b..f91dadd 100755 >--- a/misc/maintenance/sanitize_records.pl >+++ b/misc/maintenance/sanitize_records.pl >@@ -150,11 +150,12 @@ sub biblios_to_sanitize { > my $dbh = C4::Context->dbh; > my $query = q{ > SELECT biblionumber >- FROM biblioitems >- WHERE marcxml >- LIKE "%&amp;%" >- }; >- return @{ $dbh->selectcol_arrayref( $query, { Slice => {} }, ) }; >+ FROM biblio_metadata >+ WHERE format = 'marcxml' >+ AND marcflavour = ? >+ AND metadata LIKE "%&amp;%" >+ }; >+ return @{ $dbh->selectcol_arrayref( $query, { Slice => {} }, C4::Context->preference('marcflavour') ) }; > } > > =head1 NAME >@@ -194,7 +195,7 @@ commas. > > Give a biblionumber list using a filename. One biblionumber by line or separate them with a whitespace character. > >-=item B<--auto_search> >+=item B<--auto-search> > > Automatically search records containing "&" in biblioitems.marcxml or in the specified fields. > >-- >2.9.3
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 17196
:
54910
|
54911
|
54912
|
54913
|
54914
|
54918
|
55856
|
55857
|
55858
|
55859
|
55860
|
55904
|
55905
|
55906
|
55907
|
55908
|
55921
|
55922
|
55950
|
55951
|
56038
|
57835
|
57836
|
57837
|
57838
|
57839
|
57840
|
57841
|
57842
|
58000
|
58007
|
58008
|
58023
|
58024
|
58025
|
58026
|
58027
|
58028
|
58029
|
58030
|
58031
|
58032
|
58037
|
58038
|
58039
|
58040
|
58041
|
58042
|
58043
|
58044
|
58045
|
58046
|
58047
|
58048
|
58504
|
58505
|
58506
|
58507
|
58508
|
58509
|
58510
|
58511
|
58512
|
58513
|
58514
|
58516
|
58517
|
58923
|
58924
|
58925
|
58926
|
58927
|
58928
|
58929
|
58930
|
58931
|
58932
|
58933
|
58934
|
58935
|
58936
|
58937
|
58938
|
58939
|
58943
|
58946
|
58947