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

Implement workaround for alternate_id #607

Open
4 tasks done
eporter23 opened this issue Oct 30, 2024 · 9 comments
Open
4 tasks done

Implement workaround for alternate_id #607

eporter23 opened this issue Oct 30, 2024 · 9 comments
Assignees
Labels

Comments

@eporter23
Copy link
Contributor

eporter23 commented Oct 30, 2024

This ticket follows previous work to implement Valkyrie alternate_id scheme using our own NOID scheme. We also learned when doing so, that the Valkyrie alternate_id creates an extra Fedora resource for each ID minted.

For this ticket, we want to build on lessons learned in earlier tickets, and implement the findings from #541.

  • Continue to use our local ID scheme as currently minted
  • Create a new attribute that can be used on Collections, Works, FileSets
  • Adjust our persistent URL implementation to use the new attribute value for Collections and Works
  • Adjust indexing and search configurations that previously used alternate_id (Public search: searchable fields for Publication Works #461 for searchable fields configuration)

Note: at this time, we do not need to present persistent URLs in the UI for FileSets, but we do want to continue minting and storing the local NOID ID for them.

TBD: do we need to spend any time remediating existing Collections and Works that use the older alternate_id implementation? Could we also write a rake task to do a cleanup on the older IDs to move them to the new attribute?

@eporter23 eporter23 changed the title Implement workaround for alternate_id [placeholder] Implement workaround for alternate_id Oct 30, 2024
@bwatson78 bwatson78 self-assigned this Nov 4, 2024
@bwatson78
Copy link
Contributor

PR made: #616

@eporter23
Copy link
Contributor Author

A rake task was also added. Once this is deployed we will run the rake task and then test the transfer functionality.

@eporter23
Copy link
Contributor Author

The rake task now reindexes pre-existing objects including FileSets - this work is still in progress.

@bwatson78
Copy link
Contributor

PR made: #622

@eporter23
Copy link
Contributor Author

eporter23 commented Nov 13, 2024

I created a new work and captured its alternate ID. This is working well with the new Dashboard search, but doesn't seem to be entirely functional in the main Public Search.
Example: 733rv15dz5-emory
https://oe24-test.libraries.emory.edu/purl/733rv15dz5-emory
Search for 733rv15dz5-emory: https://oe24-test.libraries.emory.edu/catalog?locale=en&search_field=all_fields&q=733rv15dz5-emory

@bwatson78
Copy link
Contributor

It's in the search return, but since the id contains emory as a substring, we might need to weight that particular field so that it comes first.

I'll do that with my next PR, since I've run into some unexpected kinks in my remediation process. I'm going to iron those out and run the remediation manually (step by step).

@bwatson78
Copy link
Contributor

More reliable remediation rake task running now.

@bwatson78
Copy link
Contributor

PR made: #643

@eporter23
Copy link
Contributor Author

Testing this in oe24-arch, if I select a persistent ID and then enter it into the public search box, the application starts looping and will not either load or return an error. Example: 904dncjszc-emory

Other search terms work fine. The Dashboard > Works search box does find a match for the above ID.

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

No branches or pull requests

2 participants