FYI

I added a quick search (thanks to Jerry Stratton's perl code, with few
small changes) to my monthly archive indexes by adding '<script
src="../search.js"></script>' to my rcfile. The javascript writes the
search form, reads the current url and sets two of the form values
(paths) to direct the search at the current month's archive. This
makes the form context sensitive.

Source of search.js:

document.write("<form name=search method=post
action='http://www.psmfc.org/cgi-bin/recfin/search.cgi'>Quick
Search:<small>
<input type=text name=Term><input type=hidden name=listbase>
<input type=hidden name=archive>
<input type=hidden name=ListAddress value='[EMAIL PROTECTED]'>
<input type=hidden name=ListDescription value='Town Wagon Mailing
List'>
<input type=hidden name=HomePage
value='http://www.psmfc.org/~wade/dodge/list'></form></small><hr>");
path=window.location.pathname.split('/');
document.search.listbase.value='~wade/dodge/list/' + path[4];
document.search.archive.value=path[4];

How it works:

http://www.psmfc.org/~wade/dodge/list/992/threads.html

I still use marc-search to search across all the months from the
archive home.

-- 
Wade H. Van Buskirk - Marine Recreational Fisheries Programmer/Analyst
HTTP://www.psmfc.org/~wade, Phone:503-650-5400, Fax:503-650-5426  
--

Reply via email to