include slug in bulk export?

74 views
Skip to first unread message

elizabet...@mcgill.ca

unread,
Mar 15, 2021, 11:27:05 AM3/15/21
to AtoM Users
Hello,
We are looking to export our AtoM metadata records for digital objects to a secondary system and we want to include links back to the object in AtoM.  To do this we would need to know the object's slug.  The only export format in which a slug is included is the DC export. But DC exports can only be done one record at a time. We are looking for a way of doing a bulk export (i.e. all objects belonging to a collection or fonds) which would include the object's slug.

In 2018 there was a conversation in which someone asked about the possibility of adding the object slug as an identifier in the unitid element of the EAD XML export. https://groups.google.com/g/ica-atom-users/c/P7RMSvoYiag/m/QE0GpOW5AAAJ

Could you share some hints on how one might implement that?
Or is there another way to do a bulk metadata export which would include the object slug?

Many thanks for any tips folks can share.

Rogério de Souza Farias

unread,
Mar 15, 2021, 12:08:38 PM3/15/21
to ica-ato...@googlegroups.com
Great question!

--
You received this message because you are subscribed to the Google Groups "AtoM Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ica-atom-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ica-atom-users/fc397af2-9c3d-4e00-9347-55382671b5fdn%40googlegroups.com.

elizabet...@mcgill.ca

unread,
Mar 22, 2021, 10:27:48 AM3/22/21
to AtoM Users
Hello,
Is anyone able to help with this? Many thanks!

Dan Gillean

unread,
Mar 22, 2021, 11:07:20 AM3/22/21
to ICA-AtoM Users
Hi Elizabeth, 

Adding a column that includes the slug will require local development. I asked our developers for some suggestions, and got this back: 

basically, it looks like columns are defined here ...
There's a similar file for RAD as well. 

They would want to add something like: 

Please keep in mind that this has NOT been tested, and further experimentation may be required to get something usable! The best way to proceed will be to study existing code to see how AtoM works, experiment, and go from there. Let us know how it goes!

Cheers, 

Dan Gillean, MAS, MLIS
AtoM Program Manager
Artefactual Systems, Inc.
604-527-2056
@accesstomemory
he / him


elizabet...@mcgill.ca

unread,
Mar 22, 2021, 5:04:43 PM3/22/21
to AtoM Users
Perfect! This will start us on the right track.
Many thanks for your help Dan!
best regards

sunny...@gmail.com

unread,
Mar 23, 2021, 3:32:45 PM3/23/21
to AtoM Users
Hello, 
Yes, slug column will be very helpful!
Previously I got requests from some of our archivists for custom CSV exports including slug so I came up with this bulk CSV export solution fetching data from Elasticsearch. 
It doesn't seem to be an official way of exporting data from AtoM but given that our Elasticsearch index is up-to-date and all the necessary fields are indexed in it, this easy approach helped me handle various CSV export requests with no pain. 
I'm sharing my PHP script (saved it as a text file to make it viewable in google drive) just in case someone also needs this workaround until AtoM's experimentation features are fully tested.

Thanks,

Sunny Lee
Digital Initiatives Application Programmer Analyst | University of Toronto Libraries | Information Technology Services
Reply all
Reply to author
Forward
0 new messages