[ic] Intercept / Correct mv_searchspec

Josh Lavin josh at perusion.net
Tue Jun 26 14:18:07 UTC 2012

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).

Josh Lavin
Perusion -- Expert Interchange Consulting    http://www.perusion.com/

More information about the interchange-users mailing list