Opened 5 years ago

Closed 2 years ago

#2203 closed task (fixed)

basic autocomplete for wcps queries

Reported by: Vlad Merticariu Owned by:
Priority: major Milestone: 11.0
Component: raswct Version: 9.8
Keywords: Cc: Peter Baumann, Dimitar Misev, Bang Pham Huu
Complexity: Medium

Description

Create a simple html page containing a textbox where users can type wcps queries, and a submit button, which, upon being pressed opens a new tab with location:

http://ows.rasdaman.org/rasdaman/ows?query=urlEncodedUserQuery

Based on the wcps grammar - http://rasdaman.org/browser/applications/petascope/petascope_main/src/main/java/petascope/wcps/parser/wcps.g4 - (1st iteration), and context information from the server, such as available coverages (2nd iteration), add autocomplete to the textbox: as the user types the query, a dropdown of suggested words should appear. The dropdown can be navigated using key-up and key-down, and a choice can be made by pressing Enter or key-right. The drop down can be closed by pressing Esc.

This ticket addresses the 1st iteration only: autocomplete based on the grammar.

Start by investigating existing tools that provide autocomplete based on antlr grammars, such as:

https://github.com/oranoran/antlr4-autosuggest-js

General reading:

https://tomassetti.me/autocompletion-editor-antlr/

Change History (4)

comment:1 by Bang Pham Huu, 5 years ago

Milestone: 10.011.0

comment:2 by Dimitar Misev, 5 years ago

Component: undecidedraswct
Owner: abendo removed
Status: newassigned

comment:3 by Dimitar Misev, 3 years ago

is this ticket still relevant or should be closed?

comment:4 by Peter Baumann, 2 years ago

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.