- Sponsor
-
Notifications
You must be signed in to change notification settings - Fork 493
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
Record view / contact focus on feature: allow to customise the contact field name to filter #8578
Record view / contact focus on feature: allow to customise the contact field name to filter #8578
Conversation
…t field name to filter
|
The backport to
stderr
stdout
To backport manually, run these commands in your terminal: # Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add .worktrees/backport-4.2.x 4.2.x
# Navigate to the new working tree
cd .worktrees/backport-4.2.x
# Create a new branch
git switch --create backport-8578-to-4.2.x
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick 37a2fdcede647ff95d5b670db3b25c85992c4d00
# Push it to GitHub
git push --set-upstream origin backport-8578-to-4.2.x
# Go back to the original working tree
cd ../..
# Delete the working tree
git worktree remove .worktrees/backport-4.2.x Then, create a pull request where the |
…t field name to filter (geonetwork#8578)
…t field name to filter (geonetwork#8578)
…t field name to filter (geonetwork#8578)
In the metadata page, clicking on a contact shows an option to filter by the organisation name:
The filter was hardcoded to use the field
OrgForResourceObject.default
, to filter by the resource contact. Updated the code to configure the field name depending on the type of contact displayed.In the previous example, for a metadata contact, the query was not showing any result:
http://localhost:8080/geonetwork/srv/eng/catalog.search?debug#/search?query_string=%7B%22OrgForResourceObject.default%22:%7B%22FAO%20-%20NRCW%22:true%7D%7D
With the change, the query shows the results properly:
http://localhost:8080/geonetwork/srv/eng/catalog.search?debug#/search?query_string=%7B%22OrgObject.default%22:%7B%22FAO%20-%20NRCW%22:true%7D%7D
Checklist
main
branch, backports managed with labelREADME.md
filespom.xml
dependency management. Update build documentation with intended library use and library tutorials or documentation