[htdig] sherlock template from Le Monde diplomatique


Philippe Riviere (Philippe.Riviere@Monde-diplomatique.fr)
Thu, 20 May 1999 10:47:17 +0200


Hi,

Here's a template to make htdig fully compatible with Apple's Sherlock
module (ie so that sherlock uses the relevance value). The design is from
"Le Monde diplomatique"'s web site at http://www.monde-diplomatique.fr

################################## sherlock.html ######################
<P><TABLE WIDTH=640 CELLPADDING=0 CELLSPACING=0 BORDER=0>
<TR><TD WIDTH=190><TD WIDTH=330><TD WIDTH=120>
<TR><TD BGCOLOR=EEEEEE colspan=2>
<!-- ITEM -->
<strong><a href="$(URL)">$(TITLE)</a></strong></TD>
<TD align=right bgcolor=EEEEEE>$(STARSRIGHT)</TD>
</TR>
<TR><TD></TD><TD colspan=2><SMALL>$(EXCERPT) - <!-- SCORE -->
$(PERCENT)%<!-- /SCORE --><!-- /ITEM --><br>
<DIV align=right><a href="$(URL)"><font color=333333
face="arial,helvetica,sans-serif" size=-1>$(URL)</font></a><BR><BR></DIV>
</TD></TR>
</TABLE></P>
#######################################################################

The sherlock module should be something like this ; note the
        matchesperpage = 30
and
        s = sherlock (to leave a trace in the access log)

##################### htdig.src #######################################
<search
name = "WHATEVER NAME"
method = get
description = "WHATEVER DESCIRPTION"
action = "http://your.server.here/cgi-bin/htsearch"
update="http://your.server.here/search/file.src.hqx"
updateCheckDays = 1
>
<input name="config" value="CONFIGNAME">
<input name="method" value="and">
<input name="matchesperpage" value="30">
<input name="words" user>
<input name="s" value="sherlock">
<interpret
resultListStart="<!-- LIST -->"
resultListEnd="<!-- /LIST -->"
resultItemStart="<!-- ITEM -->"
resultItemEnd="<!-- /ITEM -->"
relevanceStart="<!-- SCORE -->"
relevanceEnd="<!-- /SCORE -->"
>
</search>
######################################################################

-- Philippe Riviere <Philippe.Riviere@monde-diplomatique.fr>
    Le Monde diplomatique http://www.monde-diplomatique.fr/
    21b, rue Claude-Bernard 75005 Paris tel: 33 1 42 17 37 46

Le Monde diplomatique in English: http://www.monde-diplomatique.fr/en/

------------------------------------
To unsubscribe from the htdig mailing list, send a message to
htdig@htdig.org containing the single word "unsubscribe" in
the SUBJECT of the message.



This archive was generated by hypermail 2.0b3 on Thu May 20 1999 - 01:17:43 PDT