you can specify both limit and offset in config.yaml for input
[webpac2] / run.pl
diff --git a/run.pl b/run.pl
index a8c4e70..cd940c9 100755 (executable)
--- a/run.pl
+++ b/run.pl
@@ -435,7 +435,7 @@ foreach my $database ( sort keys %{ $config->databases } ) {
                my $input_db = new WebPAC::Input(
                        module => $input_module,
                        limit => $limit || $input->{limit},
-                       offset => $offset,
+                       offset => $offset || $input->{offset},
                        recode => $input->{recode},
                        stats => $stats,
                        modify_records => $input->{modify_records},