Bug 41838

Summary: Fix automatic tab selection on MARC subfield edit pages
Product: Koha Reporter: Owen Leonard <oleonard>
Component: TemplatesAssignee: Owen Leonard <oleonard>
Status: Needs Signoff --- QA Contact: Testopia <testopia>
Severity: minor    
Priority: P5 - low    
Version: Main   
Hardware: All   
OS: All   
GIT URL: Initiative type: ---
Sponsorship status: --- Comma delimited list of Sponsors:
Crowdfunding goal: 0 Patch complexity: Small patch
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:
Bug Depends on:    
Bug Blocks: 41827    
Attachments: Bug 41838: Fix automatic tab selection on MARC subfield edit pages

Description Owen Leonard 2026-02-12 14:33:17 UTC
- Authority types -> MARC structure -> Subfields:

  On the list of subfields for a tag, clicking the link to a specific subfield in the first column should activate the corresponding tab on the subfield edit page.

The same is true for MARC bibliographic frameworks -> MARC structure -> View subfields.
Comment 1 Owen Leonard 2026-02-12 14:48:09 UTC
Created attachment 193013 [details] [review]
Bug 41838: Fix automatic tab selection on MARC subfield edit pages

This patch fixes automatic tab selection on MARC subfield edit pages for
both authority and bibliographic records. The patch also removes some
unused markup and JS associated with old ways of handling tabs.

To test, apply the patch and go to Administration -> Authority types.

- Click the "Actions" button for one of the authority types and select
  "MARC structure"
- Pick a tag which has multiple subfields, e.g. 020 and click Actions ->
  Subfields.
- Click one of the subfield links (not the first one). On the subfield
  edit page the corresponding tab should be selected when the page
  loads.
- Go back and click the "Edit" button and confirm that this also
  selects the correct tab.
- Go to Administration -> MARC bibliographic framework -> MARC
  structure -> View subfields and perform the same tests.

Sponsored-by: Athens County Public Libraries