Bugzilla – Attachment 82817 Details for
Bug 21908
biblio_metadata is missing from the rebuild_zebra.pl tables list
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 21908: Add biblio_metadata to rebuild_zebra.pl tables
Bug-21908-Add-bibliometadata-to-rebuildzebrapl-tab.patch (text/plain), 2.03 KB, created by
Pierre-Marc Thibault
on 2018-11-30 20:31:07 UTC
(
hide
)
Description:
Bug 21908: Add biblio_metadata to rebuild_zebra.pl tables
Filename:
MIME Type:
Creator:
Pierre-Marc Thibault
Created:
2018-11-30 20:31:07 UTC
Size:
2.03 KB
patch
obsolete
>From ad35119f61767321483fcd4643be5379d3c381e5 Mon Sep 17 00:00:00 2001 >From: Fridolin Somers <fridolin.somers@biblibre.com> >Date: Thu, 29 Nov 2018 10:15:00 +0100 >Subject: [PATCH] Bug 21908: Add biblio_metadata to rebuild_zebra.pl tables > >Zebra indexing script misc/migration_tools/rebuild_zebra.pl as a table arg to allow filtering. >It is missing biblio_metadata to allow filtering on MARCXML with ExtractValue. > >Test plan : >1) Be sur you have a biblio record with biblionumber 1 >2) Run misc/migration_tools/rebuild_zebra.pl -h >3) You see : --table specify a table (can be items, biblioitems, biblio, biblio_metadata) to retrieve biblionumber to index. >4) Run misc/migration_tools/rebuild_zebra.pl -v -b --table biblio_metadata --where="biblio_metadata.biblionumber=1" >5) Check you dont have SQL errors >--- > misc/migration_tools/rebuild_zebra.pl | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > >diff --git a/misc/migration_tools/rebuild_zebra.pl b/misc/migration_tools/rebuild_zebra.pl >index 5ae5d61..c594087 100755 >--- a/misc/migration_tools/rebuild_zebra.pl >+++ b/misc/migration_tools/rebuild_zebra.pl >@@ -144,7 +144,7 @@ if (not $biblios and not $authorities) { > die $msg; > } > >-our @tables_allowed_for_select = ( 'biblioitems', 'items', 'biblio' ); >+our @tables_allowed_for_select = ( 'biblioitems', 'items', 'biblio', 'biblio_metadata' ); > unless ( grep { /^$table$/ } @tables_allowed_for_select ) { > die "Cannot specify -t|--table with value '$table'. Only " > . ( join ', ', @tables_allowed_for_select ) >@@ -917,7 +917,7 @@ Parameters: > to wait for the lock to free and then continue > processing the rebuild request, > >- --table specify a table (can be items, biblioitems or biblio) to retrieve biblionumber to index. >+ --table specify a table (can be items, biblioitems, biblio, biblio_metadata) to retrieve biblionumber to index. > biblioitems is the default value. > > --help or -h show this message. >-- >2.7.4
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 21908
:
82723
|
82724
|
82817
|
82818
|
82819
|
82952
|
82953
|
82954