Bug 42041

Summary: CatalogModuleRelink disregards ConsiderHeadingUse
Product: Koha Reporter: Esther Melander <esther.melander>
Component: CatalogingAssignee: Bugs List <koha-bugs>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low CC: m.de.rooy
Version: 25.11   
Hardware: All   
OS: All   
GIT URL: Initiative type: ---
Sponsorship status: --- Comma delimited list of Sponsors:
Crowdfunding goal: 0 Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:

Description Esther Melander 2026-03-09 17:23:48 UTC
CatalogModuleRelink will link authorities that were previously linked regardless if ConsiderHeadingUse is enabled or not. This is perhaps working as it should. However, if a library decided they do want to enable ConsiderHeadingUse in order to clean up inappropriately linked headings, CatalogModuleRelink will interfere.

To replicate:
1. Check system preferences and ensure ConsiderHeadingUse is set to don't, AutoLinkBiblios is set to do, CatalogModuleRelink is set to do.
2. Import an authority that is not currently in use, such as a subject authority for $a Application software $xDevelopment.
3. Edit a bibliographic record and add a heading to match the authority.
4. Save.

See the authority links to the heading.

5. Change the system preference ConsiderHeadingUse to Do. Leave the remaining system preferences as previously set.
6. Refresh the page for the bibliographic record. See the heading relinks to the authority.
7. Delete the heading and save the record.
8. Edit the authority and change 008/15 to not appropriate.
9. Edit the bibliographic record and add the heading back and save.

See that the heading re-links to the authority because it was previously linked.

10. Delete the heading in the bibliographic record and save.
11. Change the system preference CatalogModuleRelink to don't.
12. Edit the bibliographic record and add the heading back. Save.

See the heading does not relink/link because the authority says it is not appropriate as a subject heading.

13. Edit the authority and update 008/15 to appropriate.
14. Edit the record and save.

See the heading now links.

From what I can see, Koha is working the way it should based on the system preferences. Since CatalogModuleRelink might interfere with ConsiderHeadingUse, what should happen in an existing catalog in regards to linking? Should the recommendation be to disable CatalogModuleRelink when ConsiderHeadingUse is set to do?