Bug 39507

Summary: Make the MARC21 008 plugin more precise for MU
Product: Koha Reporter: Janusz Kaczmarek <januszop>
Component: CatalogingAssignee: Janusz Kaczmarek <januszop>
Status: Pushed to main --- QA Contact: Tomás Cohen Arazi (tcohen) <tomascohen>
Severity: enhancement    
Priority: P5 - low CC: m.de.rooy, tomascohen
Version: unspecified   
Hardware: All   
OS: All   
GIT URL: Initiative type: ---
Sponsorship status: --- Crowdfunding goal: 0
Patch complexity: Trivial patch Documentation contact:
Documentation submission: Text to go in the release notes:
Version(s) released in:
25.11.00
Circulation function:
Attachments: Bug 39507: Make the MARC21 008 plugin more precise for MU
Bug 39507: Make the MARC21 008 plugin more precise for MU
Bug 39507: Make the MARC21 008 plugin more precise for MU

Description Janusz Kaczmarek 2025-04-01 11:41:45 UTC
According to https://loc.gov/marc/bibliographic/bd008m.html, the content of 008/24-29 and 008/30-31 fr Music (leader/6 = c, d, i, or j) is made of one character codes (as it is the case for 008/24-27 for Books). Now, in Koha 008/24-29 and 008/30-31 are input fields with no possibility to chose the code from a list. This could (and should) be improved.
Comment 1 Janusz Kaczmarek 2025-04-01 11:58:54 UTC
Created attachment 180135 [details] [review]
Bug 39507: Make the MARC21 008 plugin more precise for MU

According to https://loc.gov/marc/bibliographic/bd008m.html, the content
of 008/24-29 and 008/30-31 fr Music (leader/6 = c, d, i, or j) is made
of one character codes (as it is the case for 008/24-27 for Books).
Now, in Koha 008/24-29 and 008/30-31 are input fields with no
possibility to chose the code from a list. This could (and should)
be improved.

Test plan:
==========
1. Open a standard biblio editor, chose the plugin for 008 field,
   change Type of Material to MU - Music. See that 24-29 and 30-31
   (Accompanying matter and Literary text for sound recordings )are
   multi character input fields.
2. Apply the patch ; restart_all.
3. Repeat p. 1. See that now 24-29 and 30-31 are split in a series
   of one-character drop-down menus.

BTW a link to a list of codes for 'Form of composition' (008/18-19)
has been also added.
Comment 2 Roman Dolny 2025-04-01 14:36:12 UTC
Created attachment 180206 [details] [review]
Bug 39507: Make the MARC21 008 plugin more precise for MU

According to https://loc.gov/marc/bibliographic/bd008m.html, the content
of 008/24-29 and 008/30-31 fr Music (leader/6 = c, d, i, or j) is made
of one character codes (as it is the case for 008/24-27 for Books).
Now, in Koha 008/24-29 and 008/30-31 are input fields with no
possibility to chose the code from a list. This could (and should)
be improved.

Test plan:
==========
1. Open a standard biblio editor, chose the plugin for 008 field,
   change Type of Material to MU - Music. See that 24-29 and 30-31
   (Accompanying matter and Literary text for sound recordings )are
   multi character input fields.
2. Apply the patch ; restart_all.
3. Repeat p. 1. See that now 24-29 and 30-31 are split in a series
   of one-character drop-down menus.

BTW a link to a list of codes for 'Form of composition' (008/18-19)
has been also added.

Signed-off-by: Roman Dolny <roman.dolny@jezuici.pl>
Comment 3 Tomás Cohen Arazi (tcohen) 2025-09-22 14:37:35 UTC
Love this :-D
Comment 4 Tomás Cohen Arazi (tcohen) 2025-09-22 14:38:51 UTC
Created attachment 186722 [details] [review]
Bug 39507: Make the MARC21 008 plugin more precise for MU

According to https://loc.gov/marc/bibliographic/bd008m.html, the content
of 008/24-29 and 008/30-31 fr Music (leader/6 = c, d, i, or j) is made
of one character codes (as it is the case for 008/24-27 for Books).
Now, in Koha 008/24-29 and 008/30-31 are input fields with no
possibility to chose the code from a list. This could (and should)
be improved.

Test plan:
==========
1. Open a standard biblio editor, chose the plugin for 008 field,
   change Type of Material to MU - Music. See that 24-29 and 30-31
   (Accompanying matter and Literary text for sound recordings )are
   multi character input fields.
2. Apply the patch ; restart_all.
3. Repeat p. 1. See that now 24-29 and 30-31 are split in a series
   of one-character drop-down menus.

BTW a link to a list of codes for 'Form of composition' (008/18-19)
has been also added.

Signed-off-by: Roman Dolny <roman.dolny@jezuici.pl>
Signed-off-by: Tomás Cohen Arazi <tomascohen@theke.io>
Comment 5 Tomás Cohen Arazi (tcohen) 2025-09-22 14:39:26 UTC
Works as expected. The lists are comprehensive. QA script happy.

Thanks, Janusz!
Comment 6 Lucas Gass (lukeg) 2025-09-29 20:05:57 UTC
Nice work everyone!

Pushed to main for 25.11