Subject: [htdig3-dev] Multiple Excerpt Patch
From: Jim Cole (greyleaf@yggdrasill.net)
Date: Sat Mar 04 2000 - 14:35:16 PST
Hi - Quite a while back I offered to work on a patch that would support
multiple excerpts, which was a feature requested by a couple users. Alas,
after much procrastinating, I have a first cut at it ;)
For lack of a better idea, I used max_excerpts as the name for the
configuration attribute. If this attribute is not set, or set to one,
my additions aren't even touched, except for the attribute code itself
and a conditional. So in "theory", it *can't* break anthing using a
current configuration file, regardless of anything stupid I might have
otherwise done.
The code could probably be smarter about handling cases where terms
occur multiple times within the excerpt_length. But I was concerned
about burning too much time hunting for the additional occurances.
I think it would also sort of violate the excerpt_length attribute.
There is a running copy of the patched code at
http://www.tngenweb.org/ss/tngenwebss.html which is configured for a
maximum of three excerpts.
This is my first attempt to even touch the HtDig code, so be gentle ;)
Please let me know if you see any problems or have any suggestions.
Jim Cole
------------------------------------
To unsubscribe from the htdig3-dev mailing list, send a message to
htdig3-dev-unsubscribe@htdig.org
You will receive a message to confirm this.
This archive was generated by hypermail 2b28 : Sat Mar 04 2000 - 14:34:38 PST