Edit formatting of Collection Inventory Table in PUI PDF Export

111 views
Skip to first unread message

Matthew Davis

unread,
May 14, 2025, 10:47:30 AM5/14/25
to Archivesspace_Users_Group
Hello! I'm trying to pinpoint the formatting of the Series under the Collection Inventory for PUI PDF exports (image attached showing narrow column).

I've primarily focused on <!-- Collection Inventory (dsc) templates -->


I've tried manually setting the % of each column to no avail:
```
        <fo:table table-layout="fixed" space-after="12pt" width="100%" font-size="10pt">
  <fo:table-column column-number="1" column-width="60%"/>
  <fo:table-column column-number="2" column-width="13.33%"/>
  <fo:table-column column-number="3" column-width="13.33%"/>  
  <fo:table-column column-number="4" column-width="13.33%"/>
```

Am I looking in the right place? Thanks for any insight!

Thanks,
Matt





Monosnap Image 2025-05-14 10.43.21.png

Jeffrey Mudge

unread,
May 14, 2025, 11:53:46 AM5/14/25
to Matthew Davis, Archivesspace_Users_Group

Hi, Matt,

 

I believe the XSL is used for the Staff side exports. In this case for the EAD PDF export.

 

When we customized our PUI PDFs, we needed to add a local plugin by using the https://github.com/archivesspace/archivesspace/tree/3f4829a0111e9cab0aa556f418ad6a8cffd126bb/public/app/views/pdf files as our base and modifying them as needed.

 

In your plugins/local/ directory, add a public/views/pdf/ directory, and then add the files from that app folder that you want to overwrite.

 

https://github.com/archivesspace/archivesspace/blob/3f4829a0111e9cab0aa556f418ad6a8cffd126bb/public/app/views/pdf/_header.html.erb in particular has inline CSS that you probably need to edit to get the collection inventory working the way you want. https://github.com/archivesspace/archivesspace/blob/3f4829a0111e9cab0aa556f418ad6a8cffd126bb/public/app/views/pdf/_header.html.erb#L151 for example is setting the title to be 50%.

 

Hope that helps!

 

Jeffrey Mudge

Digital Initiatives Coordinator

Wheaton College Library (IL)

630.752.5893

 

 

From: 'Matthew Davis' via Archivesspace_Users_Group <Archivesspac...@lyrasislists.org>
Date: Wednesday, May 14, 2025 at 9:47
AM
To: Archivesspace_Users_Group <Archivesspac...@lyrasislists.org>
Subject: [ArchivesSpace Users Group] Edit formatting of Collection Inventory Table in PUI PDF Export

EXTERNAL MESSAGE: Use caution with replies, links, and attachments.

 

--
You received this message because you are subscribed to the Google Groups "Archivesspace_Users_Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
Archivesspace_User...@lyrasislists.org.
To view this discussion visit
https://groups.google.com/a/lyrasislists.org/d/msgid/Archivesspace_Users_Group/93716e4c-c659-4a33-8807-ca4753936f57n%40lyrasislists.org.

Matthew Davis

unread,
May 14, 2025, 3:08:47 PM5/14/25
to Archivesspace_Users_Group, Jeffrey Mudge, Matthew Davis
Thanks so much! This is super helpful. I'm still figuring out what needs to be a full-on plug-in vs small local changes to .xsl files. 

Thanks again,
Matt

Joshua D. Shaw

unread,
May 14, 2025, 3:58:37 PM5/14/25
to Archivesspace_Users_Group
The staff side and PUI go through different pipelines to produce pdfs... Which makes updating them 'fun'

Staff side: EAD -> PDF via XSLT in /stylesheets/as-ead-pdf.xsl
PUI: HTML from public/views/pdf -> PDF via iText renderer (called in public/models/finding_aid_pdf)

There are a couple of things you can do to modify the exported PDFs in a plugin. 

On the staff side, you can hook into the backend EAD generation to add additional data and you can modify the ead to pdf xslt. I typically use xslt changes for visual/layout/structural things and use ead generation changes for data manipulation.

On the PUI side, the structural and data changes are all kinda lumped into the pdf views. Structural and visual change are accomplished by modifying the view structure and css. The views are also where you'd do data modification.

jds

From: 'Matthew Davis' via Archivesspace_Users_Group <Archivesspac...@lyrasislists.org>
Sent: Wednesday, May 14, 2025 3:08 PM
To: Archivesspace_Users_Group <archivesspac...@lyrasislists.org>
Cc: Jeffrey Mudge <jeffre...@wheaton.edu>; Matthew Davis <matthew...@nist.gov>
Subject: Re: [ArchivesSpace Users Group] Edit formatting of Collection Inventory Table in PUI PDF Export
 

Matthew Davis

unread,
May 15, 2025, 10:54:59 AM5/15/25
to Archivesspace_Users_Group, Joshua D. Shaw
Excellent. Thank you both. I made a change to https://github.com/archivesspace/archivesspace/blob/0bf9070e4047adcdb4c64a4dda5f5f5248819d85/public/app/views/pdf/_header.html.erb#L326 to `auto;` in my local plugin file, and it looks much better.

Thanks again,
Matt

Screenshot 2025-05-15 105302.png
Reply all
Reply to author
Forward
0 new messages