View Source

{toc}


h2. {anchor:01} 01 Autocomplete for Tags

*Description*
Open a form that allows for adding tags, start inputting text into the tags edit box -- the autocomplete suggests tags.

*Preconditions and Constraints*
Log in the Nuxeo DM system. Thesauri exist that have *rso:isTag*=1 and *rso:isSearchable*=1 (see the columns *t* and *s* in [Meta-Thesaurus and FR Names#Meta-thesaurus table|Meta-Thesaurus and FR Names#Meta-thesaurus table]).
Open a form that allows for adding a Tag (see [Test 04 Tags#01], [Test 04 Tags#02], [Test 04 Tags#03], [Test 04 Tags#05]).

| *N* | *Performed action* | *Expected result* | *Tester notes* |
| 1 | Input 1 character into the Tags Edit Box | Autocomplete is not active | |
| 2 | Input a second character into the Tags Edit Box | A drop-down autocomplete list is displayed that contains:
- suggestions starting with these 2 characters
- multi-word suggestions for which at least one of the words starts with these two characters
- the thesaurus that contains the suggestion
- the list DOES NOT have repeating suggestions | |
| 3 | Input a third character into the Tags Edit Box | The autocomplete list changes dynamically to display only suggestions that have words starting with these 3 characters | |
| 4 | Keep inputting N characters | The autocomplete list changes dynamically to display only suggestions that have words starting with these N characters | |
| 5 | Delete (Edit) some of the characters | The autocomplete list changes dynamically to display only suggestions that have words starting with the edited text | |
| 6 | Click any of the suggestions | The autocomplete list closes and the selected suggestion is displayed inside the Tags Edit Box | |
*Post conditions*
The selected suggestion is displayed in the edit box.


h2. {anchor:02} 02 Autocomplete for semantic search

*Description*
Open a new [search criterion field|RS Glossary#Semantic Search terms] and start inputting text - the autocomplete suggests items.

*Preconditions and Constraints*
Log in the Nuxeo DM system. Thesauri exist that have *rso:isSearchable*=1 (see the column *s* in [Meta-Thesaurus and FR Names#Meta-thesaurus table|Meta-Thesaurus and FR Names#Meta-thesaurus table]).

| *N* | *Performed action* | *Expected result* | *Tester notes* |
| 1 | Navigate to the [Header Tabs bar|RS Glossary#UI and Navigation terms], select Tools, and select the option "Search" (see [Test 02 UI and Navigation#04]) | - A [Sentence Search tab|RS Glossary#Semantic Search terms] is opened in which to perform the semantic search
- The search criterion field next to "Find all objects" is editable and has no default set values | |
| 2 | Input 1 character into the search field | Autocomplete is not active | |
| 3 | Input a second character into the search field | A drop-down autocomplete list is displayed that contains:
- suggestions starting with these 2 characters
- multi-word suggestions for which at least one of the words starts with these two characters
- the thesaurus that contains the suggestion is displayed also
- the list DOES NOT have repeating suggestions | |
| 4 | Input a third character into the search field | The autocomplete list changes dynamically to display only suggestions that have words starting with these 3 characters | |
| 5 | Keep inputting N characters | The autocomplete list changes dynamically to display only suggestions that have words starting with these N characters | |
| e.g.5 | Input "Bredi" | The autocomplete list contains items such as:
- "Bredius, dr. A \[RKD Collection/Institution\]"
- "van Houtrijve & Bredius \[BM Person/Institution\]"
- "Bredius, A. \[RKD Person\]" | |
| 6 | Click any of the suggestions | - The autocomplete list closes
- The selected suggestion is displayed inside the search field. The suggestion is from a particular range (Actor, Period, Place, Type, Material, Technique)
- The default FR is displayed in the FR field (see [Test 05 Search#04]) | |
| e.g.6 | Click the suggestion "Bredius, A. \[RKD Person\]" | - The autocomplete list closes
- "Bredius, A." is displayed inside the search field. The suggestion is from the range Actor.
- The default FR *about* is displayed | |
*Post conditions*
- The selected suggestion from a particular range is displayed in the edit box.
- The default FR is displayed in the FR field.


h2. {anchor:03} 03 Edit semantic search field

*Description*
Edit an autocomplete suggestion that is for a particular range - the autocomplete list contains items only from thesauri that contain that range.

*Preconditions and Constraints*
Log in the Nuxeo DM system. [Test 05 Autocomplete#02] has been performed - a suggestion from a particular range (Actor, Period, Place, Type, Material, Technique) is selected and the FR field contains the default FR for that range.
Thesauri exist that have *rso:isSearchable*=1 (see the column *s* in \[Meta-Thesaurus and FR Names#Meta-thesaurus table\|Meta-Thesaurus and FR Names#Meta-thesaurus table\]).

| *N* | *Performed action* | *Expected result* | *Tester notes* |
| 1 | Delete (Edit) the selected suggestion in the search field and start inputting 2 or more characters of a new search criterion | - The autocomplete suggests items only from the same range as the range selected in the preconditions (from the thesauri that contain items only from that range)
- The list contains only suggestions that have words starting with these 2 or more characters
- The list DOES NOT have repeating suggestions | |
| e.g.1 | Following the e.g. from \[Test 05 Autocomplete#02\] -- delete "Bredius, A." (which is from the range Actor) and input "Rembr". The FR is *about* | The autocomplete list contains only Actors starting with "Rembr" from the thesauri:
- RKD Artis
- RKD Collection/Institution
- RKD Person
- BM Department
- BM Ethnographic Group
- BM Nationality
- BM Person/Institution | |
*Post conditions*
The autocomplete list contains only suggestions from a particular range.


h2. {anchor:04} 04 Ordering in the autocomplete list

*Description*
Autocomplete suggestions are ordered according to {color:#ff0000}??? (rank vs. number of uses){color}

*Preconditions and Constraints*
Log in the Nuxeo DM system. Open a form that allows for adding a Tag or performing semantic search (see [Test 04 Tags#01], [Test 04 Tags#02], [Test 04 Tags#03], [Test 04 Tags#05], [Test 05 Autocomplete#02], [Test 05 Autocomplete#03]) -- Tags Edit Box or search field is opened.
{color:#ff0000}WORK IN PROGRESS{color}

| *N* | *Performed action* | *Expected result* | *Tester notes* |
| 1 | Start inputting 2 or more characters into the Tags Edit Box or search field | - Autosuggestion list is displayed
- The suggestions in the list are ordered according to {color:#ff0000}??? (rank vs. number of uses){color}\\ {color:#ff0000}WORK IN PROGRESS{color} | |
*Post conditions*