Skip to content
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

Support auto-complete suggestions created from multiple fields #2080

Merged
merged 1 commit into from
Oct 10, 2024

Conversation

fsteeg
Copy link
Member

@fsteeg fsteeg commented Oct 7, 2024

Like in lobid-gnd: configure fields to use in the format param (e.g. json:title,contribution), or use format=json:suggest for default fields.

See https://jira.hbz-nrw.de/browse/RPB-141

Deployed to test: https://test.lobid.org/resources/api#auto-complete

Like in lobid-gnd: configure fields to use in the `format` param
(e.g. `json:title,contribution`), or use `format=json:suggest`
for default fields.

See https://jira.hbz-nrw.de/browse/RPB-141
@acka47
Copy link
Contributor

acka47 commented Oct 8, 2024

This looks already very good. There is one place where we should probably improve it: When resources have multiple contributing agents, the list of names should be cut after the first person and an "et al." added (like in the lobid HTML result lists).

Example: https://test.lobid.org/resources/search?q=%22Enhancing%20space%20resilience%20through%20non-materiel%20means%20%22&format=json%3Asuggest

@acka47 acka47 self-requested a review October 8, 2024 08:45
Copy link
Contributor

@acka47 acka47 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See my comment

@acka47
Copy link
Contributor

acka47 commented Oct 8, 2024

Looking up the example in RPB Strapi, it looks like this (I don't know why there are four records for this resource):

grafik

@fsteeg
Copy link
Member Author

fsteeg commented Oct 8, 2024

Hm, but isn't that example a case where we actually need all authors to select the correct entry?

@acka47
Copy link
Contributor

acka47 commented Oct 8, 2024

Maybe we should just wait what RPB editors say.

@fsteeg
Copy link
Member Author

fsteeg commented Oct 10, 2024

RPB editors are done with review, re-requesting review from @acka47 (request for @dr0i is still open).

https://jira.hbz-nrw.de/browse/RPB-141

@fsteeg fsteeg requested a review from acka47 October 10, 2024 08:10
Copy link
Contributor

@acka47 acka47 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

@dr0i dr0i merged commit 2cb6ca1 into master Oct 10, 2024
1 check passed
@dr0i dr0i deleted the rpb-141-suggest branch October 10, 2024 10:58
@dr0i
Copy link
Member

dr0i commented Oct 10, 2024

Deployed to production, closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants