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

--- Comment #1 from Pedro Amorim <[email protected]> ---
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.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to