Experimental support for dBase .dbf files. Usege like this in all2xml.conf:
[webpac] / parse_format.pm
index e348dde..12f7d96 100644 (file)
@@ -10,13 +10,17 @@ sub parse_format {
        my $i = shift || 0;     # isis repeatable number
        my $codepage = shift || die "parse_format must be called with codepage!";
        if ($type eq "isis") {
-               return parse_iso_format($format,$row,$i,$codepage,'isis_sf');
+               return parse_iso_format($format,$row,$i,$codepage,'hash_sf');
        } elsif ($type eq "excel") {
                return parse_excel_format($format,$row,$i,$codepage);
        } elsif ($type eq "marc") {
                return parse_iso_format($format,$row,$i,$codepage,'marc_sf');
        } elsif ($type eq "feed") {
                return parse_feed_format($format,$row,$i,$codepage);
+       } elsif ($type eq "dbf") {
+               return parse_iso_format($format,$row,$i,$codepage,'hash_sf');
+       } else {
+               confess "FATAL: unknown type '$type'";
        }
 }