[Koha-bugs] [Bug 21908] Add biblio_metadata to rebuild_zebra.pl tables

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Dec 7 10:38:16 CET 2018


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=21908

Julian Maurice <julian.maurice at biblibre.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #82819|0                           |1
        is obsolete|                            |

--- Comment #7 from Julian Maurice <julian.maurice at biblibre.com> ---
Created attachment 82953
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=82953&action=edit
Bug 21908: Add DISTINCT biblionumber to rebuild_zebra.pl

Zebra indexing script misc/migration_tools/rebuild_zebra.pl as a table arg to
allow filtering.
When using table=items we should use DISTINCT(biblionumber) to avoid indexing
several times the same biblio record when it has several items.
This patch adds DISTINCT(biblionumber) in all cases it does not harm if its
already unique.

Test plan :
1) Be sur you have a biblio record with biblionumber 1 with 3 items
2) Run misc/migration_tools/rebuild_zebra.pl -v -b --table items
--where="biblionumber=1"
3) Without patch you see "Records exported: 3", with patch only one
4) Check indexing works well

Signed-off-by: Pierre-Marc Thibault <pierre-marc.thibault at inLibro.com>
Signed-off-by: Julian Maurice <julian.maurice at biblibre.com>

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list