According to Katherine Porter:
> I am testing out the htdig-3.2.0b4-072201 snapshot.  I have two
> configuration sets.  One that has uses a search_results_wrapper
> file that contains $(HTSEARCH_RESULTS) and one that is malformed and
> does not.

If the $(HTSEARCH_RESULTS) is malformed/missing, htsearch will ignore
the wrapper file and fall back to the separate header and footer files.

> I have removed the INSTALL_TREE/share/htdig/header.html and footer.html
> files.  In fact, I have removed the entire contents of the share/htdig/
> directory for this test.
> 
> When I execute the INSTALL_TREE/cgi-bin/htsearch against the malformed
> configuration set, the search results are coming up in the standard
> ht://dig header and footer format.  The mystery that I can't figure out
> is where the htsearch is getting this header/footer file?  I thought it
> was might be pulling these from the INSTALL_DIR/share/htdig/ directory,
> but I have removed it.  Is it hard coded into the htsearch binary?

The header and footer themselves aren't hardcoded, but the default values
for search_results_header and search_results_footer are.  These defaults
are based on the default value of common_dir, which is defined at compile
time.

> The odd thing is, when I use the SRC_TREE/htsearch/htsearch against the
> malformed configuration set, the standard ht://dig header and header is
> not shown.  Only the search results are shown in the long.html format
> as set by my configuration file, no header/footer.

It's a pretty safe bet that SRC_TREE/htsearch/htsearch has a different
compiled-in value for common_dir than INSTALL_TREE/cgi-bin/htsearch has.

> This isn't a bug per se, but knowing how htsearch operates and where
> it is obtaining those HTML templates would put my mind at ease.

If you run htsearch -v from the command line, it should tell you where
it's looking for any template files it can't open.  This might help you
figure out where it's looking, i.e. what the compiled-in common_dir value
is for a given binary.  This will work for snapshots htdig-3.2.0b4-071501
and later.

-- 
Gilles R. Detillieux              E-mail: <[EMAIL PROTECTED]>
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

_______________________________________________
htdig-dev mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/htdig-dev

Reply via email to