htdig: PATCH: bug in htsearch - header & start template in wrong order


Gilles Detillieux (grdetil@scrc.umanitoba.ca)
Thu, 7 Jan 1999 12:56:19 -0600 (CST)


Hi, all. This bug was introduced in 3.1.0b1. The start template, if
provided, should come out after the header, not before.

--- htsearch/Display.cc.hdrbug Tue Jan 5 17:27:30 1999
+++ htsearch/Display.cc Thu Jan 7 12:30:52 1999
@@ -195,6 +195,9 @@
     }
     maxScore = match->getScore();
             
+ cout << "Content-type: text/html\r\n\r\n";
+ displayHeader();
+
     //
     // Display the window of matches requested.
     //
@@ -203,9 +206,6 @@
         expandVariables(currentTemplate->getStartTemplate());
     }
     
- cout << "Content-type: text/html\r\n\r\n";
- displayHeader();
-
     matches->Start_Get();
     while ((match = (ResultMatch *)matches->Get_Next()) &&
            numberDisplayed < number)

-- 
Gilles R. Detillieux              E-mail: <grdetil@scrc.umanitoba.ca>
Spinal Cord Research Centre       WWW:    http://www.scrc.umanitoba.ca/~grdetil
Dept. Physiology, U. of Manitoba  Phone:  (204)789-3766
Winnipeg, MB  R3E 3J7  (Canada)   Fax:    (204)789-3930
----------------------------------------------------------------------
To unsubscribe from the htdig mailing list, send a message to
htdig-request@sdsu.edu containing the single word "unsubscribe" in
the body of the message.



This archive was generated by hypermail 2.0b3 on Sun Jan 10 1999 - 16:36:29 PST