[Koha-bugs] [Bug 35115] ERM - Potential MARC data loss when importing titles from list

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Oct 20 13:57:00 CEST 2023


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35115

--- Comment #1 from Pedro Amorim <pedro.amorim at ptfs-europe.com> ---
Created attachment 157507
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=157507&action=edit
Bug 35115: Prefix biblio hash with table name

It seems TransformKohaToMarc requires the input to be prefixed with the table
name, like this:
    {
          'biblio.abstract' => undef,
          'biblio.subtitle' => undef,
          'biblio.frameworkcode' => 'BKS',
          'biblio.medium' => undef,
          'biblio.part_name' => undef,
          'biblio.copyrightdate' => 2008,
          'biblio.seriestitle' => undef,
          'biblio.notes' => 'Originally published: 2008.',
          'biblio.biblionumber' => 299,
          'biblio.serial' => undef,
          'biblio.title' => 'Kluge :',
          'biblio.datecreated' => '2014-05-07',
          'biblio.part_number' => undef,
          'biblio.author' => 'Marcus, Gary F.',
          'biblio.timestamp' => '2020-04-21 09:38:26',
          'biblio.unititle' => undef
    };

but we were using this:

    {
          'abstract' => undef,
          'notes' => 'Originally published: 2008.',
          'medium' => undef,
          'subtitle' => undef,
          'title' => 'Kluge :',
          'author' => 'Marcus, Gary F.',
          'serial' => undef,
          'timestamp' => '2020-04-21 09:38:26',
          'biblionumber' => 299,
          'part_name' => undef,
          'datecreated' => '2014-05-07',
          'part_number' => undef,
          'seriestitle' => undef,
          'unititle' => undef,
          'frameworkcode' => 'BKS',
          'copyrightdate' => 2008
    };

ATTENTION: This does not solve the whole issue, i.e. MARC fields not mapped to
Koha fields will still be stripped.
More work required.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list