Name

MV_DEFAULT_MATCHLIMIT — specifies the number of search results per page

SYNOPSIS

number

DESCRIPTION

The MV_DEFAULT_MATCHLIMIT variable specifies the default for the number of search results displayed on one page. You can override this value for a specific search with the mv_matchlimit search parameter. The default value for MV_DEFAULT_MATCHLIMIT is 50.

VARIABLE TYPE

Catalog variable

EXAMPLES

Example:

Variable MV_DEFAULT_MATCHLIMIT 20

NOTES

AVAILABILITY

MV_DEFAULT_MATCHLIMIT is available in Interchange versions:

5.0.1-5.7.0 (cvs-head)

SOURCE

Interchange 5.7.0:

Source: lib/Vend/Scan.pm (rev. 2.35 from Tue Jul 8 00:01:12 2008)
Line 950 (context shows lines 940-954 in _matchlimit():946)

$limit = -1 if $limit =~ /^[^-0-9]/;
$ref->{mv_dict_end} = $ref->{mv_dict_look};
substr($ref->{mv_dict_end},$limit,1) =~ s/(.)/chr(ord($1) + 1)/e;
return $_[1];
}

sub _matchlimit {
shift;
my $val = lc(shift);
return -1 if $val eq 'none' or $val eq 'all';
return int($val) || $::Variable->{MV_DEFAULT_MATCHLIMIT} || 50;
}

1;
__END__

AUTHORS

Interchange Development Group

SEE ALSO

DocBook! Interchange!