projects
/
irspy-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Precache records using $rs->records()
[irspy-moved-to-github.git]
/
web
/
htdocs
/
details
/
found.mc
diff --git
a/web/htdocs/details/found.mc
b/web/htdocs/details/found.mc
index
f1540ea
..
13143c6
100644
(file)
--- a/
web/htdocs/details/found.mc
+++ b/
web/htdocs/details/found.mc
@@
-1,4
+1,4
@@
-%# $Id: found.mc,v 1.32 2007-07-16 14:55:21 mike Exp $
+%# $Id: found.mc,v 1.33 2009-04-15 18:16:46 wosch Exp $
<%once>
sub print_navlink {
my($params, $cond, $caption, $skip) = @_;
<%once>
sub print_navlink {
my($params, $cond, $caption, $skip) = @_;
@@
-39,7
+39,7
@@
sub calc_reliability2 {
our $conn = undef;
</%once>
<%perl>
our $conn = undef;
</%once>
<%perl>
-my %params = map { ( $_, utf8param($r, $_)) } grep { $r->param($_) } $r->param();
+my %params = map { ( $_, utf8param($r, $_)) } grep { &utf8param($r, $_) } &utf8param($r);
my $query;
if ($params{_query}) {
$query = $params{_query};
my $query;
if ($params{_query}) {
$query = $params{_query};
@@
-72,6
+72,7
@@
if (!defined $conn) {
OPEN:
$conn = new ZOOM::Connection("localhost:8018/IR-Explain---1");
$conn->option(elementSetName => "zeerex");
OPEN:
$conn = new ZOOM::Connection("localhost:8018/IR-Explain---1");
$conn->option(elementSetName => "zeerex");
+ $conn->option(count => 20);
}
my $rs;
}
my $rs;
@@
-125,6
+126,7
@@
print_navlink(\%params, $last < $n, "Next", $skip+$count);
<th></th>
</tr>
% my @ids;
<th></th>
</tr>
% my @ids;
+% $rs->records($first-1, $last-$first+1); ## Force pre-cache
% foreach my $i ($first .. $last) {
<%perl>
my $xc = irspy_xpath_context($rs->record($i-1));
% foreach my $i ($first .. $last) {
<%perl>
my $xc = irspy_xpath_context($rs->record($i-1));