Skip to main content.
home | support | download

Back to List Archive

Re: Filtering terms with swish.cgi

From: Dave Moreau <davidjmoreau(at)not-real.hotmail.com>
Date: Tue Oct 14 2003 - 01:52:34 GMT
>(please keep posting to the list -- helpful for people searching the
>archives.)

sorry. i meant to send it to the list...

>On Tue, Oct 14, 2003 at 01:20:05AM +0000, Dave Moreau wrote:
> > Terms:  blah
> > Verses: Gen 1:1-2
>
>Is Verses a free-form field or is it a drop down list?

free form

> > should be converted to the terms 'blah (gen001001 or gen001002)' and 
>sent
> > to swish-e.exe (actually, I will use disjunction). The 'blah' can be
> > anywhere in the document (not limited to meta tags).
>
>Yes, so look at that spot I pointed out.  You would do someting like:
>
>   my $verses = $q->param('verses');
>   if ( $verses ) {
>       my $verses_key = convert_to_verses_id( $verses );
>       $query .= " and verse=($verses_key)" if $verses_key;
>   }
>
>So basically you are just adding that on to the existing query string.

That's what I tried before, but I must have missed something. Thanks for the 
quick reply.
I'll try playing with $query again.

dave

_________________________________________________________________
Protect your PC - get McAfee.com VirusScan Online 
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
Received on Tue Oct 14 01:52:47 2003