[Archivesspace_Users_Group] Altering ASpace Public Formats Plugin

Suda, Phillip J psuda1 at tulane.edu
Mon Feb 22 12:56:01 EST 2016


Thanks Carlos. This is great.

Thanks,

Phil


Phillip Suda
Systems Librarian
Howard-Tilton Memorial Library
Tulane University
psuda1 at tulane.edu
504-865-5607



From: archivesspace_users_group-bounces at lyralists.lyrasis.org [mailto:archivesspace_users_group-bounces at lyralists.lyrasis.org] On Behalf Of Carlos Lemus
Sent: Monday, February 22, 2016 11:15 AM
To: Archivesspace Users Group <archivesspace_users_group at lyralists.lyrasis.org>
Cc: Carol Ou <carol.ou at unlv.edu>
Subject: [Archivesspace_Users_Group] Altering ASpace Public Formats Plugin

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/93721326/attachment.html>


More information about the Archivesspace_Users_Group mailing list