[LON-CAPA-cvs] cvs: loncom /interface lonsearchcat.pm

raeburn raeburn at source.lon-capa.org
Tue Nov 15 15:03:50 EST 2016


raeburn		Tue Nov 15 20:03:50 2016 EDT

  Modified files:              
    /loncom/interface	lonsearchcat.pm 
  Log:
  - Need to call &reload_result_frame() if the hit count from the first server 
    contacted exceeds the number to show.
  
  
Index: loncom/interface/lonsearchcat.pm
diff -u loncom/interface/lonsearchcat.pm:1.350 loncom/interface/lonsearchcat.pm:1.351
--- loncom/interface/lonsearchcat.pm:1.350	Wed Nov  9 01:11:04 2016
+++ loncom/interface/lonsearchcat.pm	Tue Nov 15 20:03:50 2016
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Search Catalog
 #
-# $Id: lonsearchcat.pm,v 1.350 2016/11/09 01:11:04 raeburn Exp $
+# $Id: lonsearchcat.pm,v 1.351 2016/11/15 20:03:50 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -2441,6 +2441,7 @@
     ## Prepare for the big loop.
     my $hitcountsum;
     my $oldhitcountsum;
+    my $displaycount;
     my %matches;
     my $server; 
     my $status;
@@ -2565,8 +2566,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