Another untrapped marc_export warning

Bug #1528596 reported by Jason Stephenson on 2015-12-22
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Evergreen
Low
Unassigned

Bug Description

Evergreen 2.7.1+
OpenSRF: N/A
PostgreSQL: N/A

When exporting records with item information via the command line marc_export script, a record with a bad tag will produce a warning like the following:

Argument "The" isn't numeric in integer division (/) at /usr/share/perl5/MARC/Record.pm line 407.

Where "The" would be whatever the non-numeric tag value is. My example just happened to have a tag of The.

After applying the branch (to follow), you get a more useful message of:

Warning from bibliographic record 1635630: Argument "The" isn't numeric in integer division (/) at /usr/share/perl5/MARC/Record.pm line 407.

Jason Stephenson (jstephenson) wrote :
tags: added: export marc warning
tags: added: pullrequest
Changed in evergreen:
milestone: none → 2.next
Ben Shum (bshum) wrote :

Seems fine, picked to master.

Probably needs to add a release note for this marc_export change and also https://bugs.launchpad.net/evergreen/+bug/1502152 which is related marc_export error trapping changes coming for 2.10.

Changed in evergreen:
milestone: 2.next → 2.10-beta
status: New → Fix Committed
Changed in evergreen:
status: Fix Committed → Fix Released
importance: Undecided → Low
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers