From: Sebastian Hammer Date: Mon, 12 Feb 1996 18:19:45 +0000 (+0000) Subject: Smallish X-Git-Tag: ZEBRA.1.0~535 X-Git-Url: http://lists.indexdata.dk/cgi-bin?a=commitdiff_plain;h=3c7b393422a52f6ac9fa925811e60e551b1ec0d5;p=idzebra-moved-to-github.git Smallish --- diff --git a/tab/usmarc.flt b/tab/usmarc.flt index 74e3f9b..3b04516 100644 --- a/tab/usmarc.flt +++ b/tab/usmarc.flt @@ -2,7 +2,14 @@ # Rather dummy input-filter for MARC # -BEGIN { begin record usmarc } -/^.../ / / /../ / / { begin element $0 } -/\$/ /./ BODY /[$\n]/ { data -element $1 $2; unread 3 } -/\n/ { end element } +BEGIN { begin record usmarc } +/^00./ / / BODY /\n/ { + begin element $0 + data -element @ $2 + end element + } +/^.../ / / /../ { begin element $0 } +/\$/ /./ / / BODY / *[$\n]/ { data -element $1 $3; unread 4 } +/\n/ { end element } + +/./ { }