MARC interface implemented. Minor bugs fixed. fmltest can
[egate.git] / fml / marc.fml
1 # Fml scripts to display MARC records
2 # $Id: marc.fml,v 1.1 1995/02/10 15:50:57 adam Exp $
3 \func display rec {
4         Record\n 
5         \foreach line {\rec} {
6                 \line \index 1 \ 
7                 \foreach field {\line \index 2} {
8                         \field \index 1 
9                         \ $\field \index 2 
10                         \field \index 3
11                 }
12                 \n
13         }
14 }
15
16 \func f0 rec {
17         \foreach line {\rec} {
18                 \line \index 1 \ 
19                 \line \index 2 \index 1 \index 1
20                 \foreach field {\line \index 2} {
21                         \ $\field \index 2\ 
22                         \field \index 3
23                 }
24                 \n
25         }
26 }
27