-
Notifications
You must be signed in to change notification settings - Fork 10
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
Export community/collection structure as xml #3647
Comments
From @anayram
This first version is based on:
|
From Scholaris
|
@anayram I am implementing the community/collection mapping to an xml file and found that the creators variable for collection can have multiple values and it can sometimes be nil. After some investigation in staging I found that the only available values can be
How should I handle the nil value? Would it be best to add an empty string or add that portion to the json structure? |
Here is an example with synthetic data of the current state of the community-collection mapping implementation: community-collection_mapping_output_test_20241129.xml |
Thank you @lagoan, if the value is empty or doesn't exist, don't add. This applies to all properties. |
@anayram Attached is an XML file with the current state of the export communities and collections file to xml format. I am finalising the development tests and will create a PR with this feature after that. community_collection_2024-12-04-11-39-27.txt Note, I added the |
@lagoan all looks good. Would it be possible to create a full xml from the database for us to check? Also, since the ability to correctly make provenance information for communities is not yet available, we will need to record this information at the community level as well. A revised xml skeleton model is available from community-collection_mappings_sample.xml The main changes are to provenance sections. Please let me know if you have any questions! |
I will get started on the revision xml skeleton you provided. I can get an xml preview through the console from staging if that is OK. Staging database is close to production if I remember correctly. I am almost done with the development tests and then I can create the PR. After the code review is done we can cut a release and get a fresh copy from production. |
@anayram I completed an xml export for communities and collections with the latest mappings from Please let me know if I can clarify anything. |
All looks good @lagoan @pgwillia @sfarnel @leahvanderjagt When this is generated from ERA production, and, since all communities and collection records are public (confirmed via reports), we can send this off to the Scholaris team for ingest. I took a look at owner users and all are part of the ERA help team, so we can assume that editing collections and communities can be reserved to an Admin user group. When this is submitted to Scholaris it would be great to request that write permissions for these communities and collections be reserved to admin users. Please let me know if you need anything else from me. |
@anayram here is the community collection export xml file generated from |
All checks passed for me. This looks great and is ready to share with Scholaris for ingest into the ualberta-dev DSpace instance. @sfarnel @pgwillia @lagoan after it's been ingested, we will need:
|
Do we want to try it in our DSpace sandbox? http://198.168.187.81:4000/home |
I think it would be great to test some of these in our test instance as
there are likely some things we can sort out prior to sending to Scholars'
Portal.
…-------------------------------------------------------
SHARON FARNEL, MLIS, PhD
Head, Metadata Strategies
*she/her/hers*
UNIVERSITY OF ALBERTA
Library and Museums
5-25F Cameron Library
Edmonton, AB Canada T6G 2J8
[image: University of Alberta Logo] <https://www.ualberta.ca/index.html>
The University of Alberta respectfully acknowledges
that we are situated on Treaty 6 territory, traditional
lands of First Nations and Métis people.
On Fri, Dec 6, 2024 at 2:15 PM Tricia Jenkins ***@***.***> wrote:
Do we want to try it in our DSpace sandbox?
http://198.168.187.81:4000/home
—
Reply to this email directly, view it on GitHub
<#3647 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABD26TDLLAGFFOCHXBK5DXL2EHSSFAVCNFSM6AAAAABSO6XQMKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKMRTHA4TGMBQHE>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
@pgwillia @sfarnel . Good idea, working on this with Omar as this is done through a backend tool (StructBuilder) |
@pgwillia @sfarnel @lagoan |
All tests look good to me re: metadata included in the XML structure. I noticed some collections have logos. Do we want to migrate those? I wonder if this would be manual work as the structure hierarchy tool to migrate communities and collections does not include a way to include references to images. @lagoan can we check how many communities have logos? Examples: Canadian Circumpolar Institute |
@anayram Let me take a look at that. |
My instinct says that the community/collection XML is ready to share with Scholaris. Is there a reason why we should wait? |
I agree that it seems we can go ahead.
…-------------------------------------------------------
SHARON FARNEL, MLIS, PhD
Head, Metadata Strategies
*she/her/hers*
UNIVERSITY OF ALBERTA
Library and Museums
5-25F Cameron Library
Edmonton, AB Canada T6G 2J8
[image: University of Alberta Logo] <https://www.ualberta.ca/index.html>
The University of Alberta respectfully acknowledges
that we are situated on Treaty 6 territory, traditional
lands of First Nations and Métis people.
On Mon, Dec 9, 2024 at 5:03 PM Tricia Jenkins ***@***.***> wrote:
My instinct says that the community/collection XML is ready to share with
Scholaris. Is there a reason why we should wait?
—
Reply to this email directly, view it on GitHub
<#3647 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABD26TFQQSDGXE4FTQIHCVL2EYAQ3AVCNFSM6AAAAABSO6XQMKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKMRZGQ2DAOJWGY>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Yes, this can be shared anytime unless any mappings are yet to be updated for provenance metadata @lagoan ? |
Hi @anayram , I believe the file I shared earlier from production community_collection_2024-12-06-10-05-46-prod.xml does have the updated provenance metadata for collections. Please let me know if I missed anything. |
Here is a redacted snippet of a collection provenance information {
"dc.creator": "An Administrator",
"ual.owner.community": "email@ualberta.ca",
"ual.owner.collection": "email@ualberta.ca",
"ual.jupiterId.community": "UUID",
"ual.jupiterId.collection": "UUID",
"ual.hydraNoid.community": "ID",
"ual.fedora3UUID.community": "uuid:UUID",
"ual.hydraNoid.collection": "ID",
"ual.fedora3UUID.collection": "uuid:UUID"
} |
I don't know who the best person is to share. I can volunteer to send it and will ask the question about logos to see if Scholaris has suggestions. |
@lagoan sorry, I didn't update the mappings properly. Please find additional mappings for dates and other updates. Thank you, |
Will share an updated file soon. |
@anayram here is the new xml export with the dates: community_collection_2024-12-11-11-43-37-prod.xml Please let me know if you need anything else. |
Sorry @anayram , there is an error on that last export. I will upload a copy with the corrected dates tomorrow. |
@anayram Here is the updated file community_collection_2024-12-12-12-05-00-prod.xml |
@anayram This file has the changes to the 4 dates for created and updated values: |
Thanks @anayram! No preference. How ever you want to call it done. |
https://wiki.lyrasis.org/display/DSDOC7x/Exporting+and+Importing+Community+and+Collection+Hierarchy
Before we can import a SAF collection package we need to have established the community/collection hierarchy in DSpace and have the collection id for the DSpace destination of the SAF.
We can import this structure if we can create an XML file in the following form:
Desired outcomes:
The text was updated successfully, but these errors were encountered: