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

Retrieval of additional properties from GND #192

Closed
wants to merge 3 commits into from
Closed

Conversation

HelenaSabel
Copy link
Contributor

No description provided.

Copy link
Contributor

@duncdrum duncdrum left a comment

Choose a reason for hiding this comment

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

LGTM

@@ -100,6 +103,18 @@ export class GND extends Registry {
if (json.professionOrOccupation && json.professionOrOccupation.length > 0) {
output.profession = json.professionOrOccupation.map((prof) => prof.label);
}
if (json.preferredNameEntityForThePerson && json.preferredNameEntityForThePerson.length > 0) {
json.preferredNameEntityForThePerson.map((fullName) => {
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: the return of the map is not used. can be a forEach.

Same with the other map

Copy link
Contributor

Choose a reason for hiding this comment

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

Also, the function is marked as async, but the await keyword is not used. I'd take a second and rewrite it to async/await which is more readable imho.

@HelenaSabel HelenaSabel marked this pull request as draft November 28, 2024 15:46
@HelenaSabel HelenaSabel closed this Dec 2, 2024
@HelenaSabel HelenaSabel deleted the gnd branch December 2, 2024 16:02
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