[ic] Intercept / Correct mv_searchspec

Dan Bergan dan at berganconsulting.com
Tue Jun 26 14:30:53 UTC 2012

On Tue, Jun 26, 2012 at 8:18 AM, Josh Lavin <josh at perusion.net> wrote:
> Quoting IC (ic at tvcables.co.uk):
>> Hi folks,
>> I am trying to intercept mv_searchspec from the small search component and
>> correct a common spelling difference:-
>> So far this is my non working code in the small search component:-
>>       <INPUT MAXLENGTH=30 NAME="[value mv_searchspec]" type=text size=15>
>>             [tmp sspec][perl]
>>             my $correct = $Values->{mv_searchspec}->[0];
>>             $correct =~ s/adaptor/adapter/g;
>>             return $correct;
>>             [/perl][/tmp]
>>       <input type=hidden name=mv_searchspec value=[scratch sspec]>
>> It doesn't work, please help!
> I think you'd want the Perl stuff on your results page (probably
> search.html). In that case, you won't need the scratch, but can reset
> the Values space (although I haven't tested this).

I send my searches to an action map.  In the action map I examine the
mv_searchspec and modify it if needed, and then let the search


More information about the interchange-users mailing list