Ignore:
Timestamp:
03/08/07 13:26:06 (12 years ago)
Author:
lawrence
Message:

One missing template, and one minor bug fix in the
pass off to semantic search.

Location:
TI05-delivery/ows_framework/trunk/ows_server/ows_server
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • TI05-delivery/ows_framework/trunk/ows_server/ows_server/controllers/discovery.py

    r2760 r2763  
    3838        # a specified textTarget, after that we need all the inputs. 
    3939         
    40         if len(self.inputs)==3 and 'searchString' in self.inputs: 
     40        if 'searchString' in self.inputs and 'textTarget' not in self.inputs: 
    4141            # it's a simple text search 
    4242            self.inputs['textTarget']='All' 
     
    183183                    c.state=state 
    184184                    c.difs=difs 
    185                     c.querystring='searchString=%s&textTarget=%s'%(request.params['searchString'],request.params['textTarget']) 
     185                    if 'searchString' in self.inputs: 
     186                        c.querystring='searchString=%s&textTarget=%s'%(self.inputs['searchString'],self.inputs['textTarget']) 
     187                    else: 
     188                        c.querystring='' 
    186189                    return render_response('results') 
    187190                 
Note: See TracChangeset for help on using the changeset viewer.