Feature #1670

Updated by Sebastien Jacquot over 3 years ago

Link points selection of progression chart with concordance editor and table (synchronous editor).

h3. Behaviors

* 1) on point selection:
** display a label area containing:
*** the 'ref' property if exists otherwise the 'text:id' property
*** the global position in corpora and the total count of all tokens of the corpora
*** the number of the selected token and the frequency in corpora of the selected token
** if a linked Concordance editor already exists for the selected token, move to the right page and select the table row of the selected token
** in case of extended selection, it is the last selected point that is used to update the Concordance editor

* 2) on double click:
** open a Concordance editor using the query of the selected token line, compute and display the page of the selected token according to current sorting order and select the table row of the selected token
*** split the editor area so the Progression chart and the new Concordance are visible
** a new editor is opened for each query (for each line of the chart)
*** if the area already contains a linked Concordance, split the Concordance editor area so all the linked Concordances are visible

* 3) manage a way to open a Concordance editor based on more than one line of the Progression chart:
** we may used contextual menu to do this, something as "Compute the concordance of the selected lines"
** we also may offer a way to compute the Concordance only for the selected points? Can it be useful?

h3. Validation tests

The functionality is a few tricky to fully test, feel free to do/add complementary tests. The tests are also linked to the multiple items of chart selection system.

h4. Unique progression query

* create a progression chart with one query on a relatively large corpora (so the future concordance table will have more than one page)
* click on some points, check that the display label matches the specifications
* double click on a point
** a concordance editor must open below the chart by horizontally splitting the chart area
** the selected row in table must match the selected progression point
* click on some other points in the chart and check each time that the selected row in table matches the selected chart point
** purpose here is to test that the system manage well the page change in the concordance editor
* sort the concordance table on right context or other column
** click on some points and check that the system selects well the good row in the table despite of the table sorting order
* mix these tests with the keyboard chart entities selection system
** click on a chart point
** move the selection with the left and right arrow keys
** check the selected concordance tables rows match well the chart point, auto change the page if needed (with default table sorting order and user sorting order)

* close the concordance editor
* click on a point, it mustn't reopen the closed concordance editor
* double-click on a point, an new concordance must open

h4. Multiple progression queries

* close all editors
* create a progression chart with more than one query
* double click on a point of a curve
** a concordance editor must open below the chart by horizontally splitting the chart area
** the selected row in table must match the selected progression point
* click on a point of another curve
** a new concordance editor must open by vertically splitting the area of the first concordance editor
* click, double-click, and/or use keyboard selection in chart and check that the behaviors are the expected behaviors (with default table sorting order and user sorting order)
** for example, a new editor must never be created for a query if one already exist for this query (despite of clicking, double clicking or using arrow keys).


* close all editors
[TBD]

Back