[Bug 7474] New: Error handling for 100$a incorrect value
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7474 Bug #: 7474 Summary: Error handling for 100$a incorrect value Classification: Unclassified Change sponsored?: --- Product: Koha Version: master Platform: All OS/Version: All Status: ASSIGNED Severity: minor Priority: P5 - low Component: Cataloging AssignedTo: adrien.saurat@biblibre.com ReportedBy: adrien.saurat@biblibre.com QAContact: koha.sekjal@gmail.com When editing a biblio, if the 100$a input is incorrect, the error is not correcly handled and we get a crash with a message like : Unsupported UNIMARC character encoding [45] for XML output for UNIMARC; 100$a -> 0123456789A0123456789B0123456789C0123456789D0123456789E at /usr/share/perl5/MARC/File/XML.pm line 505. -- Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7474 --- Comment #1 from Adrien SAURAT <adrien.saurat@biblibre.com> --- I don't totally understand this field, would it make sense to use the SetMarcUnicodeFlag function found in C4/Charset ? Doing something like: if ( $is_a_modif ) { ModBiblioframework( $biblionumber, $frameworkcode ); ModBiblio( $record, $biblionumber, $frameworkcode ); } else { eval { C4::Charset::SetMarcUnicodeFlag( $record, $frameworkcode )}; if ( $@ ){ warn "ERROR when setting Marc unicode flag: " . $@; } else { ( $biblionumber, $oldbibitemnum ) = AddBiblio( $record, $frameworkcode ); } } where the code we have now is simply like: if ( $is_a_modif ) { ModBiblioframework( $biblionumber, $frameworkcode ); ModBiblio( $record, $biblionumber, $frameworkcode ); } else { ( $biblionumber, $oldbibitemnum ) = AddBiblio( $record, $frameworkcode ); } } -- You are receiving this mail because: You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org