include slug in bulk export?

Skip to first unread message

Mar 15, 2021, 11:27:05 AM3/15/21
to AtoM Users
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.

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

Mar 15, 2021, 12:08:38 PM3/15/21
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
To view this discussion on the web visit

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

Dan Gillean

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!


Dan Gillean, MAS, MLIS
AtoM Program Manager
Artefactual Systems, Inc.
he / him

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

Mar 23, 2021, 3:32:45 PM3/23/21
to AtoM Users
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.


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