Bug 13708

Summary: MARC Mapping Item columns to several MARC Fields
Product: Koha Reporter: Olli-Antti Kivilahti <olli-antti.kivilahti>
Component: CatalogingAssignee: Olli-Antti Kivilahti <olli-antti.kivilahti>
Status: BLOCKED --- QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low CC: katrin.fischer, m.de.rooy, nick
Version: Main   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Attachments: Bug 13708 - MARC Mapping Item columns to several MARC Fields

Description Olli-Antti Kivilahti 2015-02-13 11:56:15 UTC
Because we have ran out of MARC subfield codes, we cannot add more Item-columns from the DB to the search indexable MARC Record.
This patch enables support for "Koha to MARC mapping" to work on other Fields as well.

This patch enables editing Items' columns mapped to non-standard MARC Items Fields.
No further issues regarding using non-standard Item fields identified yet.
Comment 1 Olli-Antti Kivilahti 2015-02-13 12:00:13 UTC
Created attachment 35896 [details] [review]
Bug 13708 - MARC Mapping Item columns to several MARC Fields

Because we have ran out of MARC subfield codes, we cannot add more Item-columns
from the DB to the search indexable MARC Record.
This patch enables support for "Koha to MARC mapping" to work on other Fields
as well.

This patch enables editing Items' columns mapped to non-standard MARC Items
Fields.
No further issues regarding using non-standard Item fields identified yet.
Comment 2 Katrin Fischer 2015-02-13 12:43:42 UTC
We have used Uppercase letters successfully for some things.
Comment 3 Olli-Antti Kivilahti 2015-02-13 12:53:11 UTC
Thanks for the comment!

What do you mean with "some" things?
Comment 4 Olli-Antti Kivilahti 2015-02-13 12:54:54 UTC
Also I have a feeling that MARC standard has only lowercase subfield codes?
I don't know for sure.
Comment 5 Katrin Fischer 2015-02-13 12:56:50 UTC
Storing additional item related information - Koha seems to deal with it well, although you might be right about the standard :) I know we have uppercase subfield codes in some of the data we receive as well.
Comment 6 Olli-Antti Kivilahti 2015-02-13 15:40:29 UTC
Katrin, thanks for the tip. I'l ltry your suggestion.
The additems.pl is such an ridiculous mess any modifications I would make would make it even worse.
The remnants of MARC:ified Items need bo be better encapsulated instead of thrown around in every conceivable file.
Comment 7 Katrin Fischer 2015-02-17 18:39:28 UTC
Hm, from the comments on IRC maybe I misunderstood what you are trying to do? What we do is use upper case letters with no explicit mapping to a field in the items table in the configuration - this way the data ends up in items.more_subfields_xml. If you found a problem with this approach it would be good to know!