1 # Fml scripts to display MARC records
2 # $Id: default.fml,v 1.5 1995/05/18 12:03:08 adam Exp $
7 \foreach field {\line \index 3} {
8 \if {\field \index 1} {
17 \func case tag indicator identifier \code max {
18 \if {\match \tag {\line\index 1}} {
19 \if {\match \indicator {\line\index 2}} {
20 \foreach field {\line \index 3} {
21 \if{\match \identifier \field\index 1} {
22 \set info {\field \index 2}
23 \if {{\strlen \info}\gt \max}
25 \set info {\strsub \info 0 50 ..}
33 \func casx tag identifier \pre \mid \end {
35 \if {\match \tag {\line\index 1}} {
36 \foreach field {\line \index 3} {
37 \if {\match \identifier \field\index 1} {
38 \set info {\field \index 2}
55 \func marc rec \code {
56 \foreach line {\rec} {\code}
61 \case 245 .. [a] { \info } 60
62 \case 260 .. c { - \info} 9
68 \foreach line {\record} {
69 \case 245 .. [ab] {\info\ } 400
70 \casx 260 [abc] {\n\ \ \info} {\ \info} {}
71 \casx 300 [ab] {- \info} {\ \info} {}
74 \foreach line {\record} {
75 \casx 700 a {\info} {\ ,\info} {\n}
77 \foreach line {\record} {
78 \case 020 .. a {ISBN: \info\n} 50
79 \case 022 .. a {ISSN: \info\n} 50
80 \casx 050 [ab] {LC: \info} {\info} {\n}