Hi:
I have a mini-search form on all my pages. To make it work better for my use, I have included a drop-down list so you can search for the term, or search specific fields for that term. One of the specified fields is "Title".
As my site has grown, I see the need to widen that search. I have found that just "Title" is not enough. Many times, the "Title" is in a foreign language, and I have created fields for Alternate spellings... or English Translations.
So I would like the specific "Title" search to also search these related fields.
Here is the code I use now:
if ($IN->param('select') =~ 'Titles') {
print "Location: http://www.bcdb.com/bcdb/search.cgi?query=&Title=$query&bool=or&substring=0\n\n";
}
If I want "$query" to search on "Title", "For_Title" and "Alt_Title", how should I do that? Can I just do this:
if ($IN->param('select') =~ 'Titles') {
print "Location: http://www.bcdb.com/bcdb/search.cgi?query=&Title=$query&For_Title=$query&Alt_Title=$query&bool=or&substring=0\n\n";
}
Thanks!
dave
Big Cartoon DataBase
Big Comic Book DataBase
I have a mini-search form on all my pages. To make it work better for my use, I have included a drop-down list so you can search for the term, or search specific fields for that term. One of the specified fields is "Title".
As my site has grown, I see the need to widen that search. I have found that just "Title" is not enough. Many times, the "Title" is in a foreign language, and I have created fields for Alternate spellings... or English Translations.
So I would like the specific "Title" search to also search these related fields.
Here is the code I use now:
if ($IN->param('select') =~ 'Titles') {
print "Location: http://www.bcdb.com/bcdb/search.cgi?query=&Title=$query&bool=or&substring=0\n\n";
}
If I want "$query" to search on "Title", "For_Title" and "Alt_Title", how should I do that? Can I just do this:
if ($IN->param('select') =~ 'Titles') {
print "Location: http://www.bcdb.com/bcdb/search.cgi?query=&Title=$query&For_Title=$query&Alt_Title=$query&bool=or&substring=0\n\n";
}
Thanks!
dave
Big Cartoon DataBase
Big Comic Book DataBase