Read STDIN up to record separator then stop
authorBill Erickson <berick@esilibrary.com>
Tue, 27 Sep 2011 20:14:59 +0000 (16:14 -0400)
committerGalen Charlton <gmc@esilibrary.com>
Tue, 11 Oct 2011 13:52:54 +0000 (09:52 -0400)
commitfc05bc9f2bd269e237d1439eebe068b74dbf8de8
treee689b0fc306d2362ae3e803d6c573c662272d7d2
parent5e79e4558b82e1e35f62710386d7312806a19a3c
Read STDIN up to record separator then stop

The initial (and only known) target for the importer is OCLC Connexion
exports, which export 1 record at a time, with each record ending with
the standard record separator.  There is no end-of-file /
end-of-transmission indicator, so the while() loop always blocks and
fails on the timeout alarm after the first record is read.

Until a more flexible solution is in place, roll back support for
reading multiple records via STDIN.  The original commit was

679506975f0efb6e2f6f17b0c19e3c53c5bfda44

Note, the feature being rolled back was not actually necessary to
implement the feature in the commit (file-based imports).  It was just
an added bonus.

Signed-off-by: Bill Erickson <berick@esilibrary.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Open-ILS/src/support-scripts/marc_stream_importer.pl