our $q = 'AD=Croatia';
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
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;
search;
years;
-get_results;
+get_results unless $skip_results;
citations;