From: Adam Dickmeiss Date: Tue, 19 Jul 2011 12:13:24 +0000 (+0200) Subject: MARC line decoding: be less picky about length given X-Git-Tag: v4.2.5~5 X-Git-Url: http://jsfdemo.indexdata.com/cgi-bin?a=commitdiff_plain;h=dd339eebb35a0068c15962d9a6872a95b79755f7;p=yaz-moved-to-github.git MARC line decoding: be less picky about length given Still, the MARC record must have 5 leading digits so we can distinguish this from header and other lines. --- diff --git a/src/marc_read_line.c b/src/marc_read_line.c index 2137197..85356c9 100644 --- a/src/marc_read_line.c +++ b/src/marc_read_line.c @@ -127,7 +127,7 @@ int yaz_marc_read_line(yaz_marc_t mt, } else if (line[0] == '(') /* annotation, skip it */ ; - else if (line_len == 24 && atoi_n_check(line, 5, &val) && val >= 24) + else if (line_len == 24 && atoi_n_check(line, 5, &val)) { /* deal with header lines: 00366nam 22001698a 4500 */