I have modded search.cgi to produce two different formats (titles and titles and summaries) based on users selecting options in the advanced search form.
What I would like to do is add buttons or links in the result pages that will take them to other format (title of titles and summaries).
I have added the following codes in search.cgi:
$format_url =~ s/\&format=\//;
above where the links are put into results.
And then I added the following codes in the $link_results section:
I am trying to mimic the process that occurs with the newhits (nh) routine by taking out the format argument from the query string and then re-add it with the correct format (titles or titles and summaries).
Any ideas about what I can to do to put a link or button in the search results to go to other format while maintaining the query string, please let me know.
Thanks.
Regards,
------------------
Eliot Lee
Founder and Editor
Anthro TECH, L.L.C
http://www.anthrotech.com/
info@anthrotech.com
==========================
Coconino Community College
http://www.coco.cc.az.us/
Web Technology
Coordinator
elee@coco.cc.az.us
What I would like to do is add buttons or links in the result pages that will take them to other format (title of titles and summaries).
I have added the following codes in search.cgi:
Code:
$format_url = $ENV{'QUERY_STRING'}; $format_url =~ s/\&format=\//;
above where the links are put into results.
And then I added the following codes in the $link_results section:
Code:
$link_results .= qq|<br><a href="$build_search_url?$format_url&format=title"><img src="/images/search/hide.gif" alt="Hide Summaries" width="142" height="21" border="0"></a><P>|;I am trying to mimic the process that occurs with the newhits (nh) routine by taking out the format argument from the query string and then re-add it with the correct format (titles or titles and summaries).
Any ideas about what I can to do to put a link or button in the search results to go to other format while maintaining the query string, please let me know.
Thanks.
Regards,
------------------
Eliot Lee
Founder and Editor
Anthro TECH, L.L.C
http://www.anthrotech.com/
info@anthrotech.com
==========================
Coconino Community College
http://www.coco.cc.az.us/
Web Technology
Coordinator
elee@coco.cc.az.us