[Bug 29533] New: add more fields to items sql table
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=29533 Bug ID: 29533 Summary: add more fields to items sql table Change sponsored?: --- Product: Koha Version: master Hardware: All OS: All Status: NEW Severity: enhancement Priority: P5 - low Component: Cataloging Assignee: koha-bugs@lists.koha-community.org Reporter: mathsabypro@gmail.com QA Contact: testopia@bugs.koha-community.org CC: m.de.rooy@rijksmuseum.nl MARC tag dedicated to items (995 Unimarc / 952 Marc21) can contain a lot of subfields (0-9 ; a-z ; A-Z). It frequently happens that a value stored in this tag cannot be mapped to items SQL table through "Koha => MARC" configuration page. The use of "more_subfields_xml" to make something useful of these information is cumbersome. Koha should provide a way to map to SQL more information related to items, for example by creation 10 new fields in items sql table (items.customfield1, items.customfield2, etc), or something more subtle. -- 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=29533 --- Comment #1 from Marcel de Rooy <m.de.rooy@rijksmuseum.nl> --- (In reply to mathieu saby from comment #0)
MARC tag dedicated to items (995 Unimarc / 952 Marc21) can contain a lot of subfields (0-9 ; a-z ; A-Z).
Bad idea. Dont use these capital letters. Not MARC compliant. -- 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=29533 --- Comment #2 from mathieu saby <mathsabypro@gmail.com> --- Hi Even with only lowercases in 952/995, do you believe that the idea of allowing more subfields to be mapped in SQL is a bad idea? But I think uppercases are allowed in UNIMARC for subfields in local (9XX) fields, and I doubt it is forbidden in MARC21. For Marc21 the alphabetic character must be lowercase: 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 But there is no such precision for UNIMARC: Subfield Identifier – A code consisting of two characters identifying individual subfields within a variable field. The first character, the delimiter, is always the same unique character specified in ISO 2709 and the second character, the subfield code, is either numeric or alphabetic https://eprints.mdx.ac.uk/2655/1/UNIMARC-2008-AH_final.pdf And in marcXML schema you can read this, so it seems that uppercase are allowed in MARC21 for local data https://www.loc.gov/standards/marcxml/schema/MARC21slim.xsd "May 21, 2009 - Version 1.2 - in subfieldcodeDataType the pattern "[\da-z!"#$%&'()*+,-./:;<=>?{}_^`~\[\]\\]{1}" changed to: "[\dA-Za-z!"#$%&'()*+,-./:;<=>?{}_^`~\[\]\\]{1}" i.e "A-Z" added after "[\d" before "a-z" to allow upper case. This change is for consistency with the documentation. ************************************************************ This schema supports XML markup of MARC21 records as specified in the MARC documentation (see www.loc.gov). It allows tags with alphabetics and subfield codes that are symbols, neither of which are as yet used in the MARC 21 communications formats, but are allowed by MARC 21 for local data." -- 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=29533 --- Comment #3 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- Thx Mathieu, that comment in the schema is really interesting! Upper case subfields work in Koha, but as Marcel points out they are not standard in MARC21. Bug I know they are used in local data by us and other libraries as well. -- 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=29533 --- Comment #4 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- I'd be interested in what your problem with more_subfields_xml is? We have quite a bit of data there and no issues. -- 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=29533 --- Comment #5 from Marcel de Rooy <m.de.rooy@rijksmuseum.nl> --- (In reply to mathieu saby from comment #2)
Even with only lowercases in 952/995, do you believe that the idea of allowing more subfields to be mapped in SQL is a bad idea? No, not necessarily.
But I think uppercases are allowed in UNIMARC for subfields in local (9XX) fields, and I doubt it is forbidden in MARC21. As you wrote for MARC21: Data element identifiers may be a lowercase alphabetic or a numeric character. Thats clear language?
-- 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=29533 --- Comment #6 from mathieu saby <mathsabypro@gmail.com> --- (In reply to Katrin Fischer from comment #4)
I'd be interested in what your problem with more_subfields_xml is? We have quite a bit of data there and no issues.
A collegue from an other library told me it was "clumsy". I cannot say something more precisely because we are only planning to migrate to Koha and I am doing some tests. Generally speaking I confess I am not fond of Koha's logic for managing items (some other ILS I know, and our current one, store item data in SQL and only map them in MARC for display or export...), but we will adapt. What I fear mainly with more_subfield_xml is performance problems, if we need to use ExtractValue() for extracting information from this field in a report. Maybe am I worrying about nothing, but I have bad memories of ExtractValue() applied to MARCXML data. Less important, it will also be more complicated if we want to develop plugins or patches for customizing or making more parametrable the display of items (add a new column in OPAC for a information stored in more_subfield_xml ) -- 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=29533 Fridolin Somers <fridolin.somers@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |fridolin.somers@biblibre.co | |m --- Comment #7 from Fridolin Somers <fridolin.somers@biblibre.com> --- This would be a little bit like borrowers sort1 and sort2. I'm not against it :/ We should consider using the "additional fields" feature like for subscriptions, Bug 10855 -- 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=29533 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|add more fields to items |Add additional fields to |sql table |items --- Comment #8 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- I think a separate key-value style table would be the best way to improve the situation. If we offered a 'Koha only' storage without the need to map to map to a valid MARC subfield identifier, as we have run out of those. We could, for example, use capital letters only internally and do something like $9 + defined prefix for export/import. It would also help with the situation where data gets indexed and searchable that should not be (see recurring internal notes discussion). -- 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=29533 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |michaela.sieber@kit.edu -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=29533 Kyle M Hall <kyle@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |kyle@bywatersolutions.com -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=29533 --- Comment #9 from Kyle M Hall <kyle@bywatersolutions.com> --- Something that uses the additional fields subsystem (https://schema.koha-community.org/23_11/tables/additional_fields.html) and is patterned after the Item Message plugin ( https://github.com/bywatersolutions/koha-plugin-item-messages ) seems like a good place to take this. -- 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