[Archivesspace_Users_Group] Altering ASpace Public Formats Plugin

Carlos Lemus carlos.lemus at unlv.edu
Mon Feb 22 12:14:37 EST 2016


Hello Phil,

It depends what kind of editing you want to do to the title. This will
probably be the most likely scenario: under plugins/local/backend/model/
create a file called ead_serializer_ext.rb and you can change the exporter
for the EAD. Since the PDF first generates this EAD this will change how
your EADs *and* PDFs are exported.

Here is an example of the file and where to find the original:

Custom Example num tag deleted:
https://github.com/l3mus/ArchivesSpace-authority-project/blob/master/unlv_ead_exporter/backend/model/ead_serializer_ext.rb#L178-L191

Original File from ArchivesSpace
https://github.com/archivesspace/archivesspace/blob/master/backend/app/exporters/serializers/ead.rb#L625-L637

You may also be able to go under the stylesheets directory under your main
archivesspace directory (not your plugins) and edit the as-ead-pdf.xsl
file. Depends what your edits need.

Where the title is in this custom stylesheets:
https://github.com/l3mus/ArchivesSpace-authority-project/blob/master/unlv_ead_exporter/stylesheets/as-ead-pdf.xsl#L155

Let me know if you have any questions.
Good Luck,

Carlos Lemus
Application Programmer, Special Collections Technical Services
University Libraries, University of Nevada, Las Vegas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lyralists.lyrasis.org/pipermail/archivesspace_users_group/attachments/20160222/b203d33f/attachment.html>


More information about the Archivesspace_Users_Group mailing list