Bug 13703

Summary: batchRebuildBiblioTables.pl should also update from database to MARC Record.
Product: Koha Reporter: Olli-Antti Kivilahti <olli-antti.kivilahti>
Component: CatalogingAssignee: Olli-Antti Kivilahti <olli-antti.kivilahti>
Status: Patch doesn't apply --- QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low CC: m.de.rooy
Version: Main   
Hardware: All   
OS: All   
GIT URL: Change sponsored?: ---
Patch complexity: --- Documentation contact:
Documentation submission: Text to go in the release notes:
Version(s) released in:
Circulation function:
Attachments: Bug 13703 - batchRebuildBiblioTables.pl should also update from database to MARC Record.
Bug 13703 - batchRebuildBiblioTables.pl should also update from database to MARC Record.

Description Olli-Antti Kivilahti 2015-02-12 14:59:31 UTC
When adding a new column to biblio or biblioitems and populating it with legacy data, the MARC Record needs to be updated to match the values in DB, so they can be indexed for searching.

Upgrading the batchRebuildBiblioTables.pl -script to make updates upstream (DB columns to MARC Record) and downstream (MARC Record to DB columns), based on the "Koha to MARC mappings".
Comment 1 Olli-Antti Kivilahti 2015-02-12 15:03:49 UTC Comment hidden (obsolete)
Comment 2 Olli-Antti Kivilahti 2015-02-13 16:16:30 UTC
Created attachment 35911 [details] [review]
Bug 13703 - batchRebuildBiblioTables.pl should also update from database to MARC Record.

When adding a new column to biblio or biblioitems and populating it with legacy data,
the MARC Record needs to be updated to match the values in DB, so they can be indexed for searching.

Upgrading the batchRebuildBiblioTables.pl -script to make updates upstream (DB columns to MARC Record)
and downstream (MARC Record to DB columns), based on the "Koha to MARC mappings".

Also improves the batchRebuildBiblioTables.pl -script's documentation and parameter handling.

TEST PLAN:

1. Add a new column to biblio or biblioitems-tables.
2. Map the column to "Koha to MARC mappings".
3. Define the mapped MARC Field as a new search index to Zebra and all the relevant hassle what
   comes with defining a new search index.
4. Populate legacy data to the new DB column.
5. Run the batchRebuildBiblioTables.pl to update the MARC Records from the new DB column.
6. Reindex the whole DB.
7. Make searches from your new index.
8. Split hairs :)