Lines 506-516
$template->param(available => $available);
Link Here
|
506 |
|
506 |
|
507 |
# append year limits if they exist |
507 |
# append year limits if they exist |
508 |
if ($params->{'limit-yr'}) { |
508 |
if ($params->{'limit-yr'}) { |
509 |
if ($params->{'limit-yr'} =~ /\d{4}-\d{4}/) { |
509 |
if ($params->{'limit-yr'} =~ /\d{4}/) { |
510 |
my ($yr1,$yr2) = split(/-/, $params->{'limit-yr'}); |
|
|
511 |
push @limits, "yr,st-numeric,ge=$yr1 and yr,st-numeric,le=$yr2"; |
512 |
} |
513 |
elsif ($params->{'limit-yr'} =~ /\d{4}/) { |
514 |
push @limits, "yr,st-numeric=$params->{'limit-yr'}"; |
510 |
push @limits, "yr,st-numeric=$params->{'limit-yr'}"; |
515 |
} |
511 |
} |
516 |
else { |
512 |
else { |
517 |
- |
|
|