[Koha-bugs] [Bug 17791] On UNIMARC system, USMARC field 100$a gets overwritten when importing from MARC21 target

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Oct 16 10:06:58 CEST 2017


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

Marcel de Rooy <m.de.rooy at rijksmuseum.nl> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Assignee|gmcharlt at gmail.com          |synapse.ova at gmail.com
         QA Contact|testopia at bugs.koha-communit |m.de.rooy at rijksmuseum.nl
                   |y.org                       |
             Status|Signed Off                  |Failed QA

--- Comment #12 from Marcel de Rooy <m.de.rooy at rijksmuseum.nl> ---
This does not work. As said earlier, we need more checks. (The records cannot
be imported without conversion. So we need more checks. For instance, only show
import when the flavours match.)

Currently btw this results in an internal server error.
I started on a clean master, chose UNIMARC and added LOC as a search target
(MARC21/USMARC).
Without this patch, I can search, but of course I do not see any titles.

With this patch, it crashes.
Unrecognized marcflavour: USMARC at /usr/share/koha/masterclone/C4/Charset.pm
line 358.
Use of uninitialized value in substr at /usr/share/perl5/MARC/File/XML.pm line
561.
substr outside of string at /usr/share/perl5/MARC/File/XML.pm line 561.
Use of uninitialized value $enc in string eq at
/usr/share/perl5/MARC/File/XML.pm line 563.
Use of uninitialized value $enc in string eq at
/usr/share/perl5/MARC/File/XML.pm line 563.
Use of uninitialized value $enc in string eq at
/usr/share/perl5/MARC/File/XML.pm line 565.
Use of uninitialized value $enc in concatenation (.) or string at
/usr/share/perl5/MARC/File/XML.pm line 568.
Use of uninitialized value in concatenation (.) or string at
/usr/share/perl5/MARC/File/XML.pm line 568.
Unsupported UNIMARC character encoding [] for XML output for UNIMARC; 100$a -> 
at /usr/share/perl5/MARC/File/XML.pm line 568.

Script passes USMARC as marc flavour to MarcToUTF8Record.
This routine passes it to SetMarcUnicodeFlag which expects MARC21 or UNIMARC as
Koha does in other places too.

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


More information about the Koha-bugs mailing list