iodepo / OceanBestPractices

Repository to store the OpenSource version of the code made by E84 for OceanBestPractices.org
https://oceanbestpractices.org
GNU Affero General Public License v3.0
12 stars 6 forks source link

Fields spanning multiple metadata fields are handled in backend now #300

Closed paulpilone closed 10 months ago

paulpilone commented 10 months ago

Closes #291

This PR addresses an issue where searching from the UI for dc_title would search both dc_title and dc_title_alternative. Normally that's what we want; however, when using the boolean operator AND this resulted in searches for dc_title AND dc_title_alternative. Some documents don't have an alternative title and the search would fail.

Instead, now, the UI just passes dc_title and the backend determines which fields to use in a way that produces the results we want.

Also updated for dc_contributor* (author, editor, etc).