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

Enable redirects from JScholarship to Hopkins Digital Repository #450

Open
2 of 3 tasks
birkland opened this issue Nov 17, 2021 · 2 comments
Open
2 of 3 tasks

Enable redirects from JScholarship to Hopkins Digital Repository #450

birkland opened this issue Nov 17, 2021 · 2 comments
Assignees

Comments

@birkland
Copy link

birkland commented Nov 17, 2021

Some records from JScholarship will be migrated to Hopkins Digital Repository (HDR) as part of the launch process. Whenever a user follows a URL to a migrated record in JScholarship, we want them to be redirected to the record in HDR instead. At a high level, we were thinking it would be sufficient to:

  • Generate a map of JScholarship URLs to HDR URLs
  • Configure the apache proxy for JScholarship to use RewriteMap to redirect only those URLs that represent migrated resources.

Doing this involves:

  • Verify that RewriteMap directives in Jscholarship's Apache proxy are a suitable way to implement redirects
  • Determine a way to generate the mapping of JScholarship URLs to HDR citable URLs (suggestion from @bseeger: use metadata export to get a CSV that has all data necessary for generating such a map). Involves parsing some output from HDR, and generating a map in the right format that RewriteMap expects
  • Create a mapping and deploy it in JScholarship's apache
@bseeger
Copy link

bseeger commented Jan 5, 2022

@little9 created this PR - I'll review it today.

@little9
Copy link

little9 commented Jan 5, 2022

@htpvu @bseeger the PR for the export that Apache will use has been merged. I think that the last task on this ticket should wait until folks want to start redirecting on JScholarship prod after the initial content ingest is complete.

If we want to close this ticket: I've tested that last task on JScholarship's stage environment. If this ticket gets closed we'll need to open another one with a task to deploy the full redirect export to production.

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

No branches or pull requests

4 participants