According to [EMAIL PROTECTED]:
> I have html source files named 1.html, 2.html, 3.html...
> within the html source i have a meta tag: <METANAME="sourceurl" CONTENT="
> http://www.website.com/index.html">
> 
> I want to be able to output the meta content information as a replacement
> for $(URL) in the search results output page.
> 
> How would i do this in htdig?

It would require some modifications to the source.  You'd need to modify
htdig/HTML.cc to parse the meta tags you want, htdig/Retriever.cc to add
methods for dealing with these, htlib/DocumentRef.cc to add fields to the
db.docdb database to store them, and finally htsearch/Display.cc to transfer
these fields to template variables.

I don't think it would be sufficient to simply change HTML.cc to plug
the new URL directly into the DocumentRef's existing URL field, as this
would probably lead to conflicts between this new URL and the one that
was used to fetch the document, because the latter is used as a search
key for the db.docdb database.  It would likely require a new field.

-- 
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-general mailing list <[EMAIL PROTECTED]>
To unsubscribe, send a message to <[EMAIL PROTECTED]> with a 
subject of unsubscribe
FAQ: http://htdig.sourceforge.net/FAQ.html

Reply via email to