-
Notifications
You must be signed in to change notification settings - Fork 5
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 label_fieldName
auto-complete templates, e.g. *_dateOfBirth
(RPB-169)
#397
Conversation
For autocomplete format: https://lobid.org/gnd/api#auto-complete, e.g. `format=json:preferredName,*_dateOfBirth+in_placeOfBirth`
Looks already quite good. I noticed the following: While several occupation are already automatically concatenated by commas, this is not the case for {
"image": "https://commons.wikimedia.org/wiki/Special:FilePath/Friedrich%20Schiller%20by%20Ludovike%20Simanowiz.jpg?width=100",
"label": "Schiller, Friedrich | Schriftsteller, Dramatiker, Erzähler, Historiker, Hochschullehrer, Librettist, Arzt, Hochschullehrer | * 1759 in Marbach am Neckar | †1805 in Weimar | wirkte in MannheimWeimarJena",
"id": "https://d-nb.info/gnd/118607626",
"category": "Individualisierte Person"
} |
I also noticed that the results of these queries are not pretty-printed when queried with curl, e.g.:
As we pretty-print – so far as I knwo – all other responses, this should also be pretty-printed for sake of consistency. |
Looking at the implementation in https://github.com/hbz/strapi-rpb/pull/31/files#diff-464e263cd47a4e96e7232665ebc65ba8aeb2f4377fadcef146a855feca83028cR5-R6 it seems to work. So I hav edone something wrong or do not understand fully how this works: |
Use `; ` for plain fields and templates; `, ` is often used in values, see test example: `Weizenbaum, Josef; Weizenbaum, J.`
No, good catch, it only worked for the old, plain-field syntax, not for the new templates. Fixed on test, see your query and an example in RPPD (I changed the delimiter from
Fixed on test, see "View Page Source" on the examples above or |
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.
+1
E.g. preferredName,*_dateOfBirth in_placeOfBirth,†_dateOfDeath in_placeOfDeath
New sample at https://test.lobid.org/gnd/api#auto-complete
See https://jira.hbz-nrw.de/browse/RPB-169