Bug 26717

Summary: Allow specifying where to insert new subfields in MARC Modification Templates
Product: Koha Reporter: Phil Ringnalda <phil>
Component: ToolsAssignee: Bugs List <koha-bugs>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P4 CC: aspencatteam, mykle.law
Version: Main   
Hardware: All   
OS: All   
See Also: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26716
GIT URL: Change sponsored?: ---
Patch complexity: --- Documentation contact:
Documentation submission: Text to go in the release notes:
Version(s) released in:
Circulation function:

Description Phil Ringnalda 2020-10-16 16:44:17 UTC
Bug 24480 comment 9 points out that the current system of adding subfields at the end of the field isn't always what someone will want.

However, since many fields have a particular non-alphabetic order for subfields (in a personal name, subfield q (the fuller form of name) follows a, before dates in d) or a semantic meaning to the order of subfields (subject fields) or a variable order based on how you use them (if I used 521 I might be tempted to use $bFoo:$aBar to get a display of "Target Audience Setting Authority: Goats" rather than an unclear "Goats Target Audience Setting Authority"), fixing this will require figuring out what methods of specifying location can and should be supported, writing UI to specify them, and either adding those methods to MARC::Field (which only does "at the end") or just making "Add a subfield" actually be "Create a new field by copying the existing subfields of an existing field with one added and then delete the existing field" in the backend.
Comment 1 Mykle 2024-09-05 21:12:31 UTC
Agreed.

A suggestion would be to create a feature that can set the order of those subfields and attach that order to a framework-- forcing the display of those subfields to a particular arrangement (alphabetical, custom, numerical subfields first, etc).

Notably-- this is an issue when batch editing serials or other collections, modifying or adding information to subfields can make those items display in unusual orders, making it difficult to clearly see which serials might be missing from the collection, which serials might have incomplete records, etc.