--- trunk/bin/isi-download-results.pl 2009/09/19 23:37:55 1299 +++ trunk/bin/isi-download-results.pl 2009/09/19 23:49:04 1300 @@ -10,6 +10,7 @@ my $range_size = 500; my $overlap = 3; # between previous and this range my $skip_results = 1; +my $cites_by_year = 1; my $max_cites = 5000; # ISI limit to get cites @@ -170,10 +171,17 @@ my @y = sort keys %$years; + @ranges = (); + + if ( $cites_by_year ) { + push @ranges, [ $_ ] foreach @y; + warn "# cites_by_year ranges ", dump @ranges; + return; + } + my $y = shift @y; my $size = $years->{$y}; - @ranges = (); my $cites_range; $cites_range = [$y] if $y;