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

Write a helper script to produce a list of PID => local ID pairs #14

Open
mjordan opened this issue Nov 17, 2016 · 2 comments
Open

Write a helper script to produce a list of PID => local ID pairs #14

mjordan opened this issue Nov 17, 2016 · 2 comments
Assignees

Comments

@mjordan
Copy link
Collaborator

mjordan commented Nov 17, 2016

Use case for this is that I have some files that are named using pre-ingest local IDs that I want to rename into the conventions used by Datastream CRUD (namespace_number_dsid.ext) so I can then push the files up into the corresponding objects as datastreams. SFU's specific use case is when we migrated from CONTENTdm, we didn't load the TIFF masters for some images because they were not available at the time of migration. In this case, we'd want to rename those TIFFs so they could be pushed up as OBJ datastreams.

Provided there is data in each object's Solr document that corresponds to the names of the files I want to push up (like <identifier type="local">, a helper script could query the appropriate field and write out a list of ID => PID pairs. People could then use this set of pairs to write their own renaming scripts, etc.

@mjordan mjordan self-assigned this Nov 17, 2016
@mjordan
Copy link
Collaborator Author

mjordan commented Nov 17, 2016

Just occurred to me that getting the PID => ID pair could be accomplished by adding an option to islandora_datastream_crud_fetch_pids to add the value of a Solr field to the PID list. This is probably the better way to do it.

@mjordan
Copy link
Collaborator Author

mjordan commented Jun 15, 2017

@giancarlobi's PR at #19 is related to this.

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

1 participant