initial checkin
authorShawn Boyette <sboyette@esilibrary.com>
Thu, 26 Mar 2009 21:20:24 +0000 (21:20 +0000)
committerShawn Boyette <sboyette@esilibrary.com>
Thu, 26 Mar 2009 21:20:24 +0000 (21:20 +0000)
Equinox-Migration/lib/Equinox/Migration/MapDrivenXMLProc.pm [new file with mode: 0644]

diff --git a/Equinox-Migration/lib/Equinox/Migration/MapDrivenXMLProc.pm b/Equinox-Migration/lib/Equinox/Migration/MapDrivenXMLProc.pm
new file mode 100644 (file)
index 0000000..82b0dd2
--- /dev/null
@@ -0,0 +1,82 @@
+package Equinox::Migration::MapDrivenXMLProc;
+
+use warnings;
+use strict;
+
+use XML::Twig;
+use Equinox::Migration::SubfieldMapper;
+
+=head1 NAME
+
+Equinox::Migration::MapDrivenXMLProc
+
+=head1 VERSION
+
+Version 1.000
+
+=cut
+
+our $VERSION = '1.000';
+
+
+=head1 SYNOPSIS
+
+Foo
+
+    use Equinox::Migration::MapDrivenXMLProc;
+
+
+=head1 METHODS
+
+
+=head2 new
+
+=cut
+
+sub new {
+    my ($class, %args) = @_;
+
+    my $self = bless { conf => { except => 0,
+                                 range  => { high => 0, low => 0 },
+                                 lastwasrange => 0,
+                               },
+                       tags => {} }, $class;
+
+    if ($args{file}) {
+        if (-r $args{file}) {
+            $self->{conf}{file} = $args{file};
+            $self->generate;
+        } else {
+            die "Can't open tags file: $!\n";
+        }
+    }
+
+    return $self;
+}
+
+=head1 AUTHOR
+
+Shawn Boyette, C<< <sboyette at esilibrary.com> >>
+
+=head1 BUGS
+
+Please report any bugs or feature requests to the above email address.
+
+=head1 SUPPORT
+
+You can find documentation for this module with the perldoc command.
+
+    perldoc Equinox::Migration::MapDrivenXMLProc
+
+
+=head1 COPYRIGHT & LICENSE
+
+Copyright 2009 Equinox, all rights reserved.
+
+This program is free software; you can redistribute it and/or modify it
+under the same terms as Perl itself.
+
+
+=cut
+
+1; # End of Equinox::Migration::MapDrivenXMLProc