Change used EAD tags

54 views
Skip to first unread message

Nicolas Souchon

unread,
Nov 15, 2023, 7:09:14 AM11/15/23
to AtoM Users
Dear all,

Is there a way to modify the EAD tags used by AtoM or their formatting?

Indeed, when I add the (conform) EAD file of a fonds, some <list> are not displayed as such but as paragraphs without separation between the different <item> in particular the <arrangement> and <note @type= elements "sourcesDescription"> elements.

Thank you in advance for your help.

Best regards,

Nicolas

Dan Gillean

unread,
Nov 15, 2023, 8:53:31 AM11/15/23
to ica-ato...@googlegroups.com
Hi Nicolas, 

If you would like to make local customizations to the EAD 2002 XML tags used or how the export file is rendered, I believe that most if not all of what you will need will be found within the sfEadPlugin. See: 
I am not a developer myself, but I would probably start by inspecting the template files found in the modules subdirectory. 

If you want to just improve the layout for legibility, one simple workaround I do sometimes is to simply take my export and manually run it through pretty-print utility, to properly indent and format the XML. See for example: 
This could likely be improved in code too - a simple search has turned up a number of results that make it seem like it shouldn't be too hard. For example: 
If you do make general improvements to the EAD export code, feel free to send us a pull request! 

Cheers, 

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


--
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/70c6d90d-0fa4-4a66-a266-ed5e9c5eab78n%40googlegroups.com.

Nicolas Souchon

unread,
Nov 16, 2023, 7:05:45 AM11/16/23
to ica-ato...@googlegroups.com
Hi Dan,

Thank you for your answer.

If I understand correctly, this documentation is about how the XML export is formatted but my question was more about how the XML is displayed in AtoM.

Indeed, the <list> elements within the <arrangement> and <note @type= "sourcesDescription"> elements are displayed by AtoM as HTML <p> elements instead of <ul> and <li>.

Is there any way to change this?

Best regards,

Nicolas

Dan Gillean

unread,
Nov 16, 2023, 8:20:18 AM11/16/23
to ica-ato...@googlegroups.com
Hi again Nicolas, 

Sorry if that wasn't clear, but I was trying to provide you with options for both formatting / presentation AND customization of the elements used. 

Pretty much everything you want can be found in the template files included in the EAD plugin. For example, the <p> elements used inside the <arrangement> tag are here: 
Cheers, 

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

--
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.

Nicolas Souchon

unread,
Nov 21, 2023, 11:38:52 AM11/21/23
to ica-ato...@googlegroups.com
Hi Dan,

My bad, I didn't understand that it would work for both export and display.

Thank you for your help.

--
Best regards,

Nicolas
Reply all
Reply to author
Forward
0 new messages