Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

WebSearch: configurable SPIRES syntax support #892

Closed
tiborsimko opened this Issue · 4 comments

3 participants

@tiborsimko
Owner

Originally on 2012-02-01

In the distant past, the SPIRES query syntax trigger in user queries was simply the presence of leading find. With #508 and with the in-the-meantime-committed SPIRES syntax guesswork, the trigger can be leading-a, leading-t, space-ps-space, etc. This is clearly not desirable for some sites.

We need a new configuration variable called say CFG_WEBSEARCH_SPIRES_SYNTAX that people could use to configure their sites. For example:0 # SPIRES syntax is switched off; 1leading find is required; 2 # leading SPIRES operator is required; 3space-operator-space is recognised too; 9 = it is always used.

(taken from #431#comment:19 so that it better stands out)

@ludmilamarian
Collaborator

Originally on 2012-02-13

Fixed in branch lmarian-public/FIX_spires_syntax_task_892

@invenio-developers
Collaborator

Originally by Ludmila Marian ludmila.marian@gmail.com on 2012-02-14

In [67dfd79]:

#CommitTicketReference repository="" revision="67dfd7951ef156128a2f6ece9a6d857bc81e9e90"
WebSearch: configurable SPIRES query syntax

- Adds variable CFG_WEBSEARCH_SPIRES_SYNTAX to configure
  the use of SPIRES search syntax.  Amends SQPP to use
  the new variable in deciding if the SPIRES query parser
  is applicable.  (closes #892)

- Amends unit and regression tests for SPIRES syntax, to be
  executed only if CFG_WEBSEARCH_SPIRES_SYNTAX is set accordingly.
@invenio-developers
Collaborator

Originally by Ludmila Marian ludmila.marian@gmail.com on 2012-08-09

In 67dfd79:

#CommitTicketReference repository="" revision="67dfd7951ef156128a2f6ece9a6d857bc81e9e90"
WebSearch: configurable SPIRES query syntax

- Adds variable CFG_WEBSEARCH_SPIRES_SYNTAX to configure
  the use of SPIRES search syntax.  Amends SQPP to use
  the new variable in deciding if the SPIRES query parser
  is applicable.  (closes #892)

- Amends unit and regression tests for SPIRES syntax, to be
  executed only if CFG_WEBSEARCH_SPIRES_SYNTAX is set accordingly.
@invenio-developers
Collaborator

Originally by Ludmila Marian ludmila.marian@gmail.com on 2012-08-09

In 67dfd79:

#CommitTicketReference repository="" revision="67dfd7951ef156128a2f6ece9a6d857bc81e9e90"
WebSearch: configurable SPIRES query syntax

- Adds variable CFG_WEBSEARCH_SPIRES_SYNTAX to configure
  the use of SPIRES search syntax.  Amends SQPP to use
  the new variable in deciding if the SPIRES query parser
  is applicable.  (closes #892)

- Amends unit and regression tests for SPIRES syntax, to be
  executed only if CFG_WEBSEARCH_SPIRES_SYNTAX is set accordingly.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.