3liz / qgis-pgmetadata-plugin

QGIS Plugin to manage some metadata from PostgreSQL layer
GNU General Public License v2.0
12 stars 10 forks source link

User : searching with several key words/themes/categories ? #91

Open image80 opened 2 years ago

image80 commented 2 years ago

The tool allows to the administrator to set several key words for a table. But as far as i tested, it is not possible for the user to make a search by entering several key words. (through the locator? throughThe data source manager?)...Or by entering for instance some key words or/and themes and or a category? Am I wrong?

effjot commented 2 years ago

The locator search term is matched against all keywords, categories, and themes. As far as I know, it is not possible to enter multiple search terms in the locator. Maybe the plugin could split the entry in the locator bar (by spaces or commas) into several search terms that are independently matched. That would mean some bigger changes in locator.py, I guess.

You can search for multiple terms at the same time in the data source manager by using regex matching and separating the terms with |. However, at the moment the Postgres comment only contains title, abstract, and category keys (not the “clear text” labels), but not keywords or themes. Maybe these could be added to the Postgres comment (view pgmetadata.v_table_comment_from_metadata)?