According to j parker: > >From: Geoff Hutchison <[EMAIL PROTECTED]> ... > >If you're doing this anyway, why not just set the <title> to the > >"Summary" that you want? This is what the default is in the result > >outputs, the $(TITLE) template variable: > ><http://www.htdig.org/hts_templates.html> > > > > I have no problem in converting the files as this can be done quite easily > with a script. > > Sorry for being a bit thick but can you elaborate with an example of what > files need to be edited and what they would look like. > > I don't find the information you gave particularly easy to take in.
Actually, if you have no problem rewriting your HTML files into whatever format you need, you may not need to worry about setting up an external converter. That was just for doing rewriting on the fly. As for the TITLE template variable, it's used by default in the builtin result templates, so you don't need to change anything there other than the HTML that gets parsed by htdig. You gave this as an example of the HTML you'd generate: ><html> ><head> ><meta name="TECHNOTE:" content="hpux/22"> ><meta name="SUMMARY:" content="Changing volume group status"> ><meta name="KEYWORDS:" content="lvm activate deactivate vgchange"> ><meta name="CREATED:" content="21/09/1999 08:23:09 jpar"> ></head> ><body> ><pre> To use your example as a starting point, these are the rewrites I'd suggest: <html> <head> <title>Changing volume group status</title> <meta name="TECHNOTE:" content="hpux/22"> <meta name="description" content="Changing volume group status"> <meta name="keywords" content="lvm activate deactivate vgchange"> <meta name="dc.date.created" content="1999-09-21 08:23:09 jpar"> </head> <body> <pre> In this modified example, you could use the <title> and </title> tags as Geoff suggested, and as I've shown above, or you could use a meta description tag, as I've also shown above. Or you could use both, depending on what you want to do. Using the default builtin-long result template, the title field is the first thing that shows up, followed by an excerpt from the document showing the context in which the word was found. If you set use_meta_description to true in your htdig.conf (or other config file if you select a different one from the search form), then the meta description contents will be used instead of the excerpt. You decide which one you'd prefer. Given the bevity of the summary in your example, it seems more fitting as a title than as a description, but you may feel differently. Another change I made above was to remove the ":" from the meta keywords tag name, so it gets picked up by default. If you really want to keep the colon there, you can add keywords: to the keywords_meta_tag_names attribute setting in htdig.conf and reindex. I also changed the created: tag to dc.date.created, which will be picked up as the modification date for the document, and shown in the search results, if you set use_doc_date to true in htdig.conf and reindex. Note that the date is in ISO-8601 format, i.e. yyyy-mm-dd, not dd/mm/yyyy. This feature only works if you run the latest 3.1.6 development snapshot in http://www.htdig.org/files/snapshots/ See the htdoc/attrs.html file from that snapshot for descriptions of all the attributes mentioned above. I can't think of anything in htdig right now that would allow you to deal sensibly with the technote meta tag, unless you just encoded it as another keyword. -- 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

