rewriting search results

[email protected] (Willem Grooters)
Newsgroups gmane.comp.web.htdig.general
Message-ID <[email protected]>
I have a question on the hyperlinks that result from a search.

The normal (default) result is like (number is an example, of course):

<dl><dt><strong><a
href="http://server/Locationpath/00000065001.a02">[00000065001.a02]</a><
/strong><img src="/htdig_image/star.gif" alt="*"><img
src="/htdig_image/star.gif" alt="*"><img src="/htdig_image/star.gif"
alt="*"><img src="/htdig_image/star.gif" alt="*">
</dt><dd><b><tt>... </tt></b>Header Text<b><tt> ...</tt></b><br>
<em><a
href="http://server/LocationPath/00000065001.a02">http://server/Location
Path/00000065001.a02</a></em>
 <font size="-1">02/14/05, 10775 bytes</font>
</dd></dl>

but since the document involved (00000065001.a02) is related to data
that can be accessed directly (using a CGI-script) I would like to have
this rewritten as:

<dl><dt><strong><a
href="http://server/cgi-script?key=00000065">[00-000065]</a></strong><im
g src="/htdig_image/star.gif" alt="*"><img src="/htdig_image/star.gif"
alt="*"><img src="/htdig_image/star.gif" alt="*"><img
src="/htdig_image/star.gif" alt="*">
</dt><dd><b><tt>... </tt></b>Header Text<b><tt> ...</tt></b><br>
<em><a
href="http://server/LocationPath/00000065001.a02">http://server/Location
Path/00000065001.a02</a></em>
 <font size="-1">02/14/05, 10775 bytes</font>
</dd></dl>

Only the first URL to be changed, the second (referring to the document
itself) must be left alone.

I have no problem having this change applied druing digging so it would
be stored in the database, or have it changed at the moment of
displaying search results. I can also live with the fulkl URL shown
normally, but I would like a reference to the data as well:

<dl><dt><a
href="http://server/cgi-script?key=00000065">[00-000065]</a><img
src="/htdig_image/star.gif" alt="*"><img src="/htdig_image/star.gif"
alt="*"><img src="/htdig_image/star.gif" alt="*"><img
src="/htdig_image/star.gif" alt="*">
</dt><dd><b><tt>... </tt></b>Header Text<b><tt> ...</tt></b><br>
<em><a
href="http://server/LocationPath/00000065001.a02">http://server/Location
Path/00000065001.a02</a></em>
 <font size="-1">02/14/05, 10775 bytes</font>
<strong><a
href="http://server/cgi-script?key=00000065">[00-000065]</a></strong> 
</dd></dl>

or similar, is fine as well.

Is there a way to specify this so the searchpage can be generated with
elements like this?
 

Willem Grooters
OpenVMS developer & System manager
b: sysmgr.blogspot.com
e: [email protected]
w: www.grootersnet.nl

This email was written using recycled and recharged bits of deleted
email. 


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
ht://Dig general mailing list: <[email protected]>
ht://Dig FAQ: http://htdig.sourceforge.net/FAQ.html
List information (subscribe/unsubscribe, etc.)
https://lists.sourceforge.net/lists/listinfo/htdig-general
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.