Skip to content

Web-based Search should support web-fetcher syntax #12637

@koppor

Description

@koppor

As user, I "just" want to search

  • If I enter a DOI in the web search, the DOI should be searched (independent of the selected fetcher)
  • When I enter a custom key/value pair, I want that key/value pair to be passed to the fetcher (and not be deleted)
  • When I enter a syntax custom to the fetcher, I want that syntax be passed to the fetcher (and not be rejected). Example: Search in GVK: User may use Lucene syntax or GVK syntax.

Implementation Idea:

  1. Check for Id --> run id fetcher
  2. Check for syntax of fetcher -> if match -> pass that
    • Is there a parser for the fetcher?
  3. Check for lucene syntax --> if match -> pass that
    • Lucene might return that it cannot parse a field --> maybe raw needs to be sent
  4. Show error

Can we show the "mode" in the UI - like we did at the magnification glass at the search in JabRef 2.x?

  • Valid query, just terms: grafik
  • Valid query, advanced search active, something found: grafik
  • Valid query, advanced search active, nothing found: grafik
  • Valid query, basic search active, something found: grafik

grafik


Currently:

  • Invalid query: grafik

This is currently sketched in the FetcherDelegate: https://github.com/koppor/jabref/pull/559/files#diff-6038155da69f4a45d14bde97e0718d663aa19d6e181eecbfe938b1c65d548cf8

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status
    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions