#187: websearch: extra space in translated search string
----------------------------+-----------------------------------------------
 Reporter:  jblayloc        |       Owner:  jblayloc
     Type:  defect          |      Status:  new     
 Priority:  major           |   Milestone:          
Component:  WebSearch       |     Version:          
 Keywords:  INSPIRE Syntax  |  
----------------------------+-----------------------------------------------
 ...but only under very peculiar conditions.

 from invenio.search_engine_query_parser import
 SpiresToInvenioSyntaxConverter as Converter
 conv = Converter()

 In [160]: q = "find aff SLAC and "

 In [161]: conv.convert_query(q)
 Out[161]: 'affiliation: SLAC  and  affiliation:'

 In [162]: q = "find t SLAC and "

 In [163]: conv.convert_query(q)
 Out[163]: 'title: SLAC  and  title:'

 In [171]: q = "find aff SLAC and Stanford"

 In [172]: conv.convert_query(q)
 Out[172]: 'affiliation: SLAC  and  affiliation: Stanford'

 (note that this one works)

 In [173]: q = "find aff SLAC and title Stanford"

 In [174]: conv.convert_query(q)
 Out[174]: 'affiliation:SLAC and title:Stanford'

-- 
Ticket URL: <http://invenio-software.org/ticket/187>
Invenio <http://invenio-software.org>

Reply via email to