[Bug 36769] New: Adding new subfield to 952 in default framework causes 500 error
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=36769 Bug ID: 36769 Summary: Adding new subfield to 952 in default framework causes 500 error Change sponsored?: --- Product: Koha Version: unspecified Hardware: All OS: All Status: NEW Severity: enhancement Priority: P5 - low Component: Cataloging Assignee: koha-bugs@lists.koha-community.org Reporter: esther.melander@bywatersolutions.com QA Contact: testopia@bugs.koha-community.org CC: m.de.rooy@rijksmuseum.nl To recreate: 1. Edit the Default framework, 952 tag. 2. Try to add a subfield 12 as a custom note field for the 952. 500 error: Duplicate IDDuplicate IDDuplicate ID [2024/05/02 12:04:51] [WARN] DBIx::Class::Storage::DBI::_dbh_execute(): DBI Exception: DBD::mysql::st execute failed: Duplicate entry '952-1' for key 'PRIMARY' at /usr/share/koha/lib/Koha/Object.pm line 170 The Default framework uses the numbers 0-9, and letters a-z, with k set aside for libraries that make their catalogs available for z39.50. I'm sure this is an intended limitation to prevent subfields with double digits and characters. Many libraries like to add custom fields to the 952. Some will reconfigure an existing subfield with a new name. It is also possible to add a new field with a capital letter, like 'A'. It may be helpful to add to the documentation on frameworks/subfields in the Koha manual what is actually available for use. -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=36769 Magnus Enger <magnus@libriotech.no> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |magnus@libriotech.no --- Comment #1 from Magnus Enger <magnus@libriotech.no> --- I think subfield codes/names/identifiers are always limited to one character? "Subfield codes - Two characters that distinguish the data elements within a field which require separate manipulation. A subfield code consists of a delimiter (ASCII 1F hex), represented in this document as a $, followed by a data element identifier. Data element identifiers may be a lowercase alphabetic or a numeric character." https://www.loc.gov/marc/bibliographic/bdintro.html -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=36769 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|Adding new subfield to 952 |MARC frameworks should |in default framework causes |validate subfield code when |500 error |adding new subfields --- Comment #2 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- Yes, and the database field is only one character too, which is why it gets cut off. I think we could do with better validation. Koha kinda supports uppercase letters, we have been using them for years now for some extra information. -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org