#387 closed defect (fixed)
Year in date field is truncated
| Reported by: | dstillman | Owned by: | simon |
|---|---|---|---|
| Priority: | major | Milestone: | 1.0 Beta 3 |
| Component: | ingester | Version: | 1.0 |
| Keywords: | Cc: |
Description
On a few different library catalogs, I've seen years get truncated to between 1 and 3 characters. I don't see anything obviously wrong with the MARC records, but I don't really know what to look for, either.
Instead of "1994", I get "1":
Instead of "1996", I get "199":
Change History (4)
comment:1 Changed 10 years ago by dstillman
comment:2 Changed 10 years ago by stakats
- Resolution set to fixed
- Status changed from new to closed
Fixed in [900]. We were adding null characters to the MARC string to get the directory to line up with content but were not stripping those nulls back out. Updated translator is attached for Dan S. to use to refresh the current repository.
comment:3 Changed 10 years ago by dstillman
Way too big to send to 1.0.0b2.r2, unfortunately.
comment:4 Changed 10 years ago by simon
I reversed this patch in r1272 because the nulls are stripped later (in getField()) and can't be stripped before then because the MARC directory is based on field offsets. (The behavior this patch introduced results in issues with non-ASCII characters; see #567.) The year truncation issues do not seem to have reappeared, but if they do, this is the first place to look.
I get the same results for the same items at different libraries.
http://clio.cul.columbia.edu/cgi-bin/Pwebrecon.cgi?DB=local&Search_Arg=ISBN+%22081956303X%22&Search_Code=CMD&CNT=10
http://clio.cul.columbia.edu/cgi-bin/Pwebrecon.cgi?DB=local&Search_Arg=ISBN+%220816611734%22&Search_Code=CMD&CNT=10