Lines 411-416
my @operands = map uri_unescape($_), $cgi->param('q');
Link Here
|
411 |
|
411 |
|
412 |
# limits are use to limit to results to a pre-defined category such as branch or language |
412 |
# limits are use to limit to results to a pre-defined category such as branch or language |
413 |
my @limits = map uri_unescape($_), $cgi->param('limit'); |
413 |
my @limits = map uri_unescape($_), $cgi->param('limit'); |
|
|
414 |
my @nolimits = map uri_unescape($_), $cgi->param('nolimit'); |
415 |
my %is_nolimit = map { $_ => 1 } @nolimits; |
416 |
@limits = grep { not $is_nolimit{$_} } @limits; |
414 |
|
417 |
|
415 |
if($params->{'multibranchlimit'}) { |
418 |
if($params->{'multibranchlimit'}) { |
416 |
my $multibranch = '('.join( " or ", map { "branch: $_ " } @{ GetBranchesInCategory( $params->{'multibranchlimit'} ) } ).')'; |
419 |
my $multibranch = '('.join( " or ", map { "branch: $_ " } @{ GetBranchesInCategory( $params->{'multibranchlimit'} ) } ).')'; |
Lines 685-690
my $gotopage = $cgi->param('gotoPage');
Link Here
|
685 |
$template->{'VARS'}->{'gotoPage'} = $gotopage |
688 |
$template->{'VARS'}->{'gotoPage'} = $gotopage |
686 |
if $gotopage =~ m/^(ISBD|labeledMARC|MARC|more)?detail.pl$/; |
689 |
if $gotopage =~ m/^(ISBD|labeledMARC|MARC|more)?detail.pl$/; |
687 |
|
690 |
|
|
|
691 |
my @input_values = map { $_->{input_value} } @limit_inputs; |
692 |
for my $facet ( @$facets ) { |
693 |
for my $entry ( @{ $facet->{facets} } ) { |
694 |
my $index = $entry->{type_link_value}; |
695 |
my $value = $entry->{facet_link_value}; |
696 |
$entry->{active} = grep { $_ eq qq{$index:$value} } @input_values; |
697 |
} |
698 |
} |
699 |
|
688 |
$template->param( |
700 |
$template->param( |
689 |
#classlist => $classlist, |
701 |
#classlist => $classlist, |
690 |
total => $total, |
702 |
total => $total, |