|
Lines 440-452
if (@searchCategories > 0) {
Link Here
|
| 440 |
@limits = map { uri_unescape($_) } @limits; |
440 |
@limits = map { uri_unescape($_) } @limits; |
| 441 |
|
441 |
|
| 442 |
|
442 |
|
| 443 |
my $available; |
443 |
my ( $available, $component_records, $exclude_component_records ); |
| 444 |
foreach my $limit(@limits) { |
444 |
foreach my $limit(@limits) { |
| 445 |
if ($limit =~/available/) { |
445 |
if ($limit =~/available/) { |
| 446 |
$available = 1; |
446 |
$available = 1; |
| 447 |
} |
447 |
} |
|
|
448 |
elsif ( $limit =~ /^component_records$/ ) { |
| 449 |
$component_records = 1; |
| 450 |
} elsif ( $limit =~ /^exclude_component_records$/ ) { |
| 451 |
$exclude_component_records = 1; |
| 452 |
} |
| 448 |
} |
453 |
} |
| 449 |
$template->param(available => $available); |
454 |
$template->param( |
|
|
455 |
available => $available, |
| 456 |
limit_component_records => $component_records, |
| 457 |
limit_exclude_component_records => $exclude_component_records, |
| 458 |
); |
| 450 |
|
459 |
|
| 451 |
# append year limits if they exist |
460 |
# append year limits if they exist |
| 452 |
if ($params->{'limit-yr'}) { |
461 |
if ($params->{'limit-yr'}) { |
|
Lines 775-783
for (my $i=0;$i<@servers;$i++) {
Link Here
|
| 775 |
$session->param('busc' => $pasarParams); |
784 |
$session->param('busc' => $pasarParams); |
| 776 |
} |
785 |
} |
| 777 |
$template->param(total => $hits); |
786 |
$template->param(total => $hits); |
| 778 |
my $limit_cgi_not_availablity = $limit_cgi; |
787 |
foreach my $limit_case ( 'available', 'component_records', 'exclude_component_records' ) { |
| 779 |
$limit_cgi_not_availablity =~ s/&limit=available//g if defined $limit_cgi_not_availablity; |
788 |
my $limit_cgi_not_case = $limit_cgi; |
| 780 |
$template->param(limit_cgi_not_availablity => $limit_cgi_not_availablity); |
789 |
$limit_cgi_not_case = s/&limit=$limit_case//g if defined $limit_cgi_not_case; |
|
|
790 |
$template->param( "limit_cgi_not_$limit_case" => $limit_cgi_not_case ); |
| 791 |
} |
| 781 |
$template->param(limit_cgi => $limit_cgi); |
792 |
$template->param(limit_cgi => $limit_cgi); |
| 782 |
$template->param(countrss => $countRSS ); |
793 |
$template->param(countrss => $countRSS ); |
| 783 |
$template->param(query_cgi => $query_cgi); |
794 |
$template->param(query_cgi => $query_cgi); |
| 784 |
- |
|
|