New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Search / Autocomplete / Improvements #6555
Conversation
In catalogues containing various types of records (eg. datasets, series, services, tabular data, applications, models ...) add the type icon indicator to the suggestion list to help user focus on particular type of records. This can be disabled by removing `autocompleteConfig._source`. Default value is: ```js "_source": ['resourceTitle*', 'resourceType'], ``` Also add the possibility to set the number of suggestions using `autocompleteConfig.size`. Improve performance of autocomplete query by only retrieving the required fields. Scoring, also promote a bit more series by default.
web-ui/src/main/resources/catalog/templates/gn-typeahead-match.html
Outdated
Show resolved
Hide resolved
web-ui/src/main/resources/catalog/templates/gn-typeahead-match.html
Outdated
Show resolved
Hide resolved
…-resourcetypeicon
80ec3ca
to
52d4a76
Compare
We may use autocomplete on record with no resourceType eg. directory entry
…en switching sort by.
… support for multiple sort option comma separated. Add support for * in suggestion to load all.
Kudos, SonarCloud Quality Gate passed! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For me works in the search UI, but doesn't work in the CSW settings
page: http://localhost:8080/geonetwork/srv/eng/admin.console#/settings/csw
Same happens in the Settings
page, maybe the directive is not included in the admin bundle?
@fxprunayre, tested with the updated code, it works in the previous pages, but I see a failing request, that without this pull request doesn't occur, so should be related: http://localhost:8080/geonetwork/srv/api/search/records/_search
|
Indeed @josegar74 some issue with null or empty string check. Should be better now. |
@fxprunayre no errors now, but in the Sources page: CSW page: |
Fixed. |
Display resource type icon.
In catalogues containing various types of records (eg. datasets, series, services, tabular data, applications, models ...) add the type icon indicator to the suggestion list to help user focus on particular type of records.
This can be disabled by removing
autocompleteConfig._source
. To enabled it, set it to:Suggestion size
Also add the possibility to set the number of suggestions using
autocompleteConfig.size
.Suggestion and sorting
gnSuggest directive to easily choose a record
Make more consistent record selection in admin console for various settings:
Before:
After:
Misc.