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

Investigate Proxy OAI-PMH to add Set to query string #55

Open
bootsa opened this issue Mar 17, 2022 · 1 comment
Open

Investigate Proxy OAI-PMH to add Set to query string #55

bootsa opened this issue Mar 17, 2022 · 1 comment
Assignees
Labels
exploratory First trials of software, system, processes oai-pmh things related to the OAI-PMH protocol

Comments

@bootsa
Copy link

bootsa commented Mar 17, 2022

As

and

then

  • is it possible to produce a proxy endpoint that responds to a BASE call by taking the OAI query (1) and appending a Set parameter to the query string which is passed on to another OAI-PMH endpoint (2) and passing the response back to BASE (3 & 4)?

mermaid-diagram-20220317154322

@bootsa bootsa self-assigned this Mar 17, 2022
@bootsa bootsa added oai-pmh things related to the OAI-PMH protocol exploratory First trials of software, system, processes labels Mar 17, 2022
@bootsa
Copy link
Author

bootsa commented Mar 21, 2022

Did some initial prodding around with Node and Express with two potential solutions.

  • Directly with a normal route and callback - got server to fetch a response from the upstream OAI-PMH endpoint successfully but relaying the response from the proxy back to the client returned a 500 server error - possibly something to do with inconsistent Headers, CORS or mal-formed/incomplete response (looks like it returns a stream object)
  • Using the http-proxy middleware library - initial set up fine but not sure how to manipulate the query...

Looks promising but needs further investigation. As it's a more brittle solution than providing a more traditional OAI-PMH endpoint using the simple file server solution (#52) will prioritise that first.

@Daniel-Mietchen Daniel-Mietchen added this to the Q-03--2022-05-31 milestone Mar 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
exploratory First trials of software, system, processes oai-pmh things related to the OAI-PMH protocol
Projects
None yet
Development

No branches or pull requests

2 participants