Bug 40343 - Koha to MARC mapping should suggest to run batchRebuildItemsTables.pl
Summary: Koha to MARC mapping should suggest to run batchRebuildItemsTables.pl
Status: Passed QA
Alias: None
Product: Koha
Classification: Unclassified
Component: System Administration (show other bugs)
Version: Main
Hardware: All All
: P5 - low enhancement
Assignee: sasha.anastasi+bugzilla
QA Contact: Emily Lamancusa (emlam)
URL:
Keywords: Academy
Depends on:
Blocks:
 
Reported: 2025-07-11 03:19 UTC by Aleisha Amohia
Modified: 2025-07-21 06:11 UTC (History)
5 users (show)

See Also:
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 (1.28 KB, patch)
2025-07-17 22:33 UTC, sasha.anastasi+bugzilla
Details | Diff | Splinter Review
Bug 40343: Include running batchRebuildItemsTables.pl in post-MARC-mapping-update instructions (1.81 KB, patch)
2025-07-18 00:34 UTC, David Nind
Details | Diff | Splinter Review
Bug 40343: Include running batchRebuildItemsTables.pl in post-MARC-mapping-update instructions (1.88 KB, patch)
2025-07-18 14:52 UTC, Emily Lamancusa (emlam)
Details | Diff | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
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