galterlibrary / digital-repository

DigitalHub - Institutional Repository for Galter Health Sciences
https://digitalhub.northwestern.edu/
5 stars 1 forks source link

[Export] Item in community in DH but not in Prism #1137

Closed fenekku closed 1 year ago

fenekku commented 1 year ago
  1. Item is in a community in DH, but not in Prism (this might be intentional, so I’m also tagging @kglibrarian to comment): https://digitalhub.northwestern.edu/files/1f4e2f87-12fa-4b2b-a0d3-70e162806ba8 and https://vtfsmghslrepo02.fsm.northwestern.edu/records/fj6p2-vbp47

To check if this is right or not

kglibrarian commented 1 year ago

It appears that the collection "Library history timeline images" does NOT appear on the Collections page in DigitalHub anywhere. Could this be an institutional collection or a researcher's collection that didn't get added to the Collections page for some reason? If it isn't visible on the interface, then I wouldn't have found it because that's all I have access to. Which means it wouldn't have been imported as a collection into Prism.

I can check with Katie on where she wants this collection to live.

Could there be more collections like this that aren't appearing on the DigitalHub Collections interface?

Meowcenary commented 1 year ago

It appears that the collection "Library history timeline images" does NOT appear on the Collections page in DigitalHub anywhere. Could this be an institutional collection or a researcher's collection that didn't get added to the Collections page for some reason?

I'll start looking into this.

I can check with Katie on where she wants this collection to live.

That would be helpful!

Could there be more collections like this that aren't appearing on the DigitalHub Collections interface?

I'm hoping that once we have an answer to the first question we'll know how to identify these types of collections and then we can write up a script or query to find any others.

Meowcenary commented 1 year ago

It looks like this collection is private which is why it's not showing up on the collections index. Once @kglibrarian has had a chance to ask Katie about which community this should map to we can update dh_collections_prism_collection_community.json to include that mapping and I think that will resolve the issue. Moving to "blocked" until we hear back from Katie.

kglibrarian commented 1 year ago

I thought that private collections would show up on the collections index page if logged in as a system administrator (?). So there very well could be additional collections that I don't know of. I don't know how to find them if I can't see them as a system admin on the interface. Katie would like the files to continue to be private but added to the new "History of Feinberg School of Medicine" collection in Prism.

Meowcenary commented 1 year ago

I thought that private collections would show up on the collections index page if logged in as a system administrator (?).

From what I found the only things listed here: https://digitalhub.northwestern.edu/collections are open access. I'll double check tomorrow.

I don't know how to find them if I can't see them as a system admin on the interface

I can throw a script together to find private collections and list out the IDs if that would be helpful?

Katie would like the files to continue to be private but added to the new "History of Feinberg School of Medicine" collection in Prism.

Okay, I'll go ahead and add that mapping tomorrow. Moving this to "In Progress"

kglibrarian commented 1 year ago

I think my litmus test is the "NUCATS Center for Education and Career Development" - which is a private collection that I can see when logged in as System Admin and not see when I'm not logged in. Regardless, perhaps not all collections behave that way. Yes, please let me know the IDs of private collections. Thank you!!

Meowcenary commented 1 year ago

I think my litmus test is the "NUCATS Center for Education and Career Development" - which is a private collection that I can see when logged in as System Admin and not see when I'm not logged in. Regardless, perhaps not all collections behave that way.

While logged in I'm not seeing that listed under the collections index here: https://digitalhub.northwestern.edu/collections , is there somewhere else you're finding it or is it on that page? The only NUCATS collection I'm seeing is "NUCATS Series on Developing and Enhancing Mentoring Relationships". I've attached a screenshot of the collections page that I'm seeing.

Screen Shot 2022-11-16 at 9 22 04 AM

Yes, please let me know the IDs of private collections. Thank you!!

I'll go ahead and get the list of private collections when I get a chance.

kglibrarian commented 1 year ago

Below is what I see, which does include the NUCATS collection I was referring too. I assumed it was because System Admins could see private collections. But since I don't really have much documentation about DigitalHub, maybe that's not the case.

image

Meowcenary commented 1 year ago

From the database it seems like there are many different types of admin and I only have two of these roles while you have seven. I think this explains why you're seeing more than myself on that page. For what it's worth I can still search the catalog for "NUCATS Center for Education and Career Development" and then view and edit it.

Here is the results from the database with our respective roles:

2.3.7 :011 > User.find_by(email: "eric.newman@northwestern.edu").roles.map{ |r| r.name }
 => ["admin", "Galter-Health-Science-Library-Feinberg-School-of-Medicine"]
2.3.7 :012 > User.find_by(email: "karen.gutzman@northwestern.edu").roles.map{ |r| r.name }
 => ["admin", "NUCATS-Grants-Repository-System-Admin", "Biostatistics-Collaboration-Center-Lectur-Admin", "Center-for-Data-Science-and-Informatics-System-Admin", "SiS-Admin", "Communication-Bridge-System-Admin", "Covid-System-Admin"]
Meowcenary commented 1 year ago

@kglibrarian will be making this edit. Once the PR is up we can close this out. Reassigning to her.

Meowcenary commented 1 year ago

Follow up with @kglibrarian to see if there is a PR up with the changes necessary.

kglibrarian commented 1 year ago

Yes - see that the collection "Library History Timeline Images" is in this issue:

Also related, the collection did not have any additional users that needed to be added, but if it did, they would have been added here:

Meowcenary commented 1 year ago

I'm closing this issue out since it seems like all the related PRs are now merged. We can re-open if necessary.