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

Fix OAI-PMH property name and getRecord verb #157

Merged
merged 1 commit into from
Aug 7, 2023
Merged

Conversation

bmquinn
Copy link
Contributor

@bmquinn bmquinn commented Jul 26, 2023

Fixes a few small issues with the OA-PMH endpoint.

@bmquinn bmquinn temporarily deployed to test July 26, 2023 14:39 — with GitHub Actions Inactive
@bmquinn bmquinn temporarily deployed to test July 26, 2023 14:44 — with GitHub Actions Inactive
@bmquinn bmquinn marked this pull request as ready for review July 26, 2023 14:47
@bmquinn bmquinn requested review from mbklein and kdid August 7, 2023 20:10
@@ -91,7 +91,7 @@ const getRecord = async (url, id) => {
},
_text: url,
},
GetRecord: { ...record },
GetRecord: { record: record },
Copy link
Contributor

Choose a reason for hiding this comment

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

This can be shortened to

Suggested change
GetRecord: { record: record },
GetRecord: { record },

{ ...record } is an object with a copy of all of record's fields in it. { record } and { record: record } are semantically equivalent. I'm happy leaving it as is, but given the specific diff behind this change I thought it was worth mentioning.

@mbklein mbklein merged commit 2005043 into deploy/staging Aug 7, 2023
@mbklein mbklein deleted the 3989-fixup branch August 7, 2023 21:11
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.

2 participants