Bug 40343

Summary: Koha to MARC mapping should suggest to run batchRebuildItemsTables.pl
Product: Koha Reporter: Aleisha Amohia <aleisha>
Component: System AdministrationAssignee: sasha.anastasi+bugzilla
Status: Passed QA --- QA Contact: Emily Lamancusa (emlam) <emily.lamancusa>
Severity: enhancement    
Priority: P5 - low CC: david, dcook, emily.lamancusa, gmcharlt, sasha.anastasi+bugzilla
Version: MainKeywords: Academy
Hardware: All   
OS: All   
GIT URL: Change sponsored?: ---
Patch complexity: String patch Documentation contact:
Documentation submission: Text to go in the release notes:
This enhancement updates the information message on the Koha to MARC mapping page to mention that batchRebuildItemsTables.pl should also be run if changes are made to mappings that affect the items table. It currently only mentions running misc/batchRebuildBiblioTables.pl
Version(s) released in:
Circulation function:
Attachments: Bug 40343: include running batchRebuildItemsTables.pl in post-MARC-mapping-update instructions
Bug 40343: Include running batchRebuildItemsTables.pl in post-MARC-mapping-update instructions
Bug 40343: Include running batchRebuildItemsTables.pl in post-MARC-mapping-update instructions

Description Aleisha Amohia 2025-07-11 03:19:00 UTC
If changes are made to Koha to MARC mappings that affect the items table, the batchRebuildItemsTables.pl script needs to be run. Koha only suggests running the batchRebuildBiblioTables.pl script (and it took me an embarrassing amount of time to realise there was a second script that might be useful). It would be nice to also suggest the second script so other system administrators don't waste as much time as I did.
Comment 1 sasha.anastasi+bugzilla 2025-07-17 22:33:48 UTC
Created attachment 184249 [details] [review]
Bug 40343: include running batchRebuildItemsTables.pl in post-MARC-mapping-update instructions

Test plan:
1. Make a change in Koha to MARC mappings that affect the items table
2. Verify that batchRebuildItemsTables.pl is mentioned as needing to be run
Comment 2 David Nind 2025-07-18 00:34:58 UTC
Created attachment 184266 [details] [review]
Bug 40343: Include running batchRebuildItemsTables.pl in post-MARC-mapping-update instructions

This patch updates the information message on the Koha to MARC mapping
page to mention that batchRebuildItemsTables.pl should also be run
if changes are made to mappings that affect the items table.

Test plan:
1. Go to Koha administration > Catalog > Koha to MARC mapping.
2. Note that the information box only mentions running
   misc/batchRebuildBiblioTables.pl after mapping changes.
3. Apply the patch.
4. Refresh the page.
5. Note that it now also mentions running batchRebuildItemsTables.pl

Signed-off-by: David Nind <david@davidnind.com>
Comment 3 David Nind 2025-07-18 00:37:17 UTC
Thanks Sasha!

I've updated the commit message (see the commit message guidelines at https://wiki.koha-community.org/wiki/Commit_messages) and added a draft release note.

David Nind
Comment 4 Emily Lamancusa (emlam) 2025-07-18 14:52:22 UTC
Created attachment 184394 [details] [review]
Bug 40343: Include running batchRebuildItemsTables.pl in post-MARC-mapping-update instructions

This patch updates the information message on the Koha to MARC mapping
page to mention that batchRebuildItemsTables.pl should also be run
if changes are made to mappings that affect the items table.

Test plan:
1. Go to Koha administration > Catalog > Koha to MARC mapping.
2. Note that the information box only mentions running
   misc/batchRebuildBiblioTables.pl after mapping changes.
3. Apply the patch.
4. Refresh the page.
5. Note that it now also mentions running batchRebuildItemsTables.pl

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Emily Lamancusa <emily.lamancusa@montgomerycountymd.gov>
Comment 5 Emily Lamancusa (emlam) 2025-07-18 14:52:57 UTC
Looks great! Thanks, Sasha! Passing QA