emory-libraries / dlp-selfdeposit

0 stars 0 forks source link

Implement workaround for alternate_id #607

Open eporter23 opened 2 weeks ago

eporter23 commented 2 weeks ago

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.

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?

bwatson78 commented 1 week ago

PR made: #616

eporter23 commented 1 week ago

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

eporter23 commented 1 week ago

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

bwatson78 commented 1 week ago

PR made: https://github.com/emory-libraries/dlp-selfdeposit/pull/622

eporter23 commented 3 days ago

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 commented 3 days ago

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 commented 2 days ago

More reliable remediation rake task running now.

bwatson78 commented 1 day ago

PR made: https://github.com/emory-libraries/dlp-selfdeposit/pull/643