Skip to content
This repository has been archived by the owner on Dec 12, 2024. It is now read-only.

Create output to track GWSS ID of newly created (and updated?) items #10

Open
kerchner opened this issue Nov 26, 2018 · 3 comments
Open
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@kerchner
Copy link
Member

No description provided.

@reliztrent
Copy link
Contributor

Workaround in meantime: terminal output can be copied, pasted, and regex-filtered to isolate titles and IDs of newly created items.

@dolsysmith
Copy link

In addition, it would be great to output the link to each file on GWSS (the link that opens the PDF in the browser), as content contributors often want this information.

I have written some Python code that can retrieve this from the Solr index based on either a collection ID or work ID's, but perhaps the batch loader can retrieve this at point of upload...

@kerchner kerchner assigned kerchner and somanath304 and unassigned kerchner Jan 3, 2020
@kerchner
Copy link
Member Author

kerchner commented Jan 3, 2020

Assigning to @somanath304 . This is something that should be added for ISIS Files use as well. Recommend building out the "TODO"s at:

https://github.com/gwu-libraries/batch-loader/blob/master/batch_loader.py#L178

https://github.com/gwu-libraries/batch-loader/blob/master/batch_loader.py#L180

Recommend also adding setting in config.py that would be the URL to prepend to the repository ID. For example, its value might be set to https://scholarspace.library.gwu.edu/work/ so that the output CSV lists links like https://scholarspace.library.gwu.edu/work/a1b2c3d4 where the last segment is the ID we are already receiving back from the rake task.

For the initial implementation, each row of the CSV can simply include the URL or an error message if the item was not loaded/updated.

@kerchner kerchner added this to the 0.3 milestone Jan 3, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants