[LON-CAPA-cvs] cvs: loncom(version_2_11_X) /interface lonsearchcat.pm
raeburn
raeburn at source.lon-capa.org
Tue Nov 15 15:45:19 EST 2016
raeburn Tue Nov 15 20:45:19 2016 EDT
Modified files: (Branch: version_2_11_X)
/loncom/interface lonsearchcat.pm
Log:
- For 2.11
- Backport 1.351
Index: loncom/interface/lonsearchcat.pm
diff -u loncom/interface/lonsearchcat.pm:1.331.4.14 loncom/interface/lonsearchcat.pm:1.331.4.15
--- loncom/interface/lonsearchcat.pm:1.331.4.14 Wed Nov 9 22:32:42 2016
+++ loncom/interface/lonsearchcat.pm Tue Nov 15 20:45:19 2016
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Search Catalog
#
-# $Id: lonsearchcat.pm,v 1.331.4.14 2016/11/09 22:32:42 raeburn Exp $
+# $Id: lonsearchcat.pm,v 1.331.4.15 2016/11/15 20:45:19 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -2455,6 +2455,7 @@
## Prepare for the big loop.
my $hitcountsum;
my $oldhitcountsum;
+ my $displaycount;
my %matches;
my $server;
my $status;
@@ -2579,8 +2580,10 @@
last if ($connection->aborted());
if ($oldhitcountsum < $hitcountsum) {
&update_count_status($r,$hitcountsum);
- if ($hitcountsum <= $env{'form.show'}) {
+ if (($hitcountsum <= $env{'form.show'}) ||
+ (!$displaycount && $hitcountsum)) {
reload_result_frame($r);
+ $displaycount = $hitcountsum;
}
$oldhitcountsum = $hitcountsum;
}
More information about the LON-CAPA-cvs
mailing list