[Archivesspace_Users_Group] Single-Part notes not showing up in Print Resource to PDF
Custer, Mark
mark.custer at yale.edu
Wed May 11 16:59:42 EDT 2016
Salwa,
I should’ve mentioned this explicitly, but since the XSLT transformation files aren’t stored in the war files of ArchivesSpace, you don’t actually need to wait for a fix in a new release of ASpace. You can just edit that one line here:
archivesspace/stylesheets/as-ead-pdf.xsl
I hope that helps,
Mark
From: archivesspace_users_group-bounces at lyralists.lyrasis.org [mailto:archivesspace_users_group-bounces at lyralists.lyrasis.org] On Behalf Of Custer, Mark
Sent: Wednesday, 11 May, 2016 4:41 PM
To: Archivesspace Users Group
Subject: Re: [Archivesspace_Users_Group] Single-Part notes not showing up in Print Resource to PDF
Brad,
Can you tag this bug with the “XSLT” label? I can issue a pull request at some point once I look into making updates to that styles sheet (or if anyone else wants to beat me to that, feel free; I’ve already tested the fix).
In the meantime, the bug is on line 1551: https://github.com/archivesspace/archivesspace/blob/master/stylesheets/as-ead-pdf.xsl#L1551<https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_archivesspace_archivesspace_blob_master_stylesheets_as-2Dead-2Dpdf.xsl-23L1551&d=AwMGaQ&c=-dg2m7zWuuDZ0MUcV7Sdqw&r=s7ciGQfUJeaV_ryx908hbeXDoU9aqDwDN0Z0VbfsJ3Y&m=_QaqTwSeuqYFbjlC-agz6vbzkf9SDy4DzHQnpfaipxY&s=46QFrRd101L_Jy_sftMXTY-0GiuIwu6YzEJtbz5WrvA&e=>
That if statement is testing for any child elements (which would force a single-part note to have mixed encoding just to display, which definitely isn’t the desire). My assumption is that this was added in order to skip empty elements, or elements that only have white space. To apply that fix, all you need to do is change “child::*” to “normalize-space()” – but just do that on line 1551, since there are other places using that same test.
I’ll add the same info to JIRA.
Mark
From: archivesspace_users_group-bounces at lyralists.lyrasis.org<mailto:archivesspace_users_group-bounces at lyralists.lyrasis.org> [mailto:archivesspace_users_group-bounces at lyralists.lyrasis.org] On Behalf Of Brad Westbrook
Sent: Wednesday, 11 May, 2016 3:31 PM
To: Archivesspace Users Group
Subject: Re: [Archivesspace_Users_Group] Single-Part notes not showing up in Print Resource to PDF
Mark,
This a bug with the EAD>PDF transformation that appears to only affect note at the component level, and perhaps notes only that are single part. I have not tested all the multi-part note types but a couple seem to present no problems. But all single part notes do.
I added a component to your PDF-Test resource in test (http://test.archivesspace.org/resources/95/<https://urldefense.proofpoint.com/v2/url?u=http-3A__test.archivesspace.org_resources_95_&d=AwMGaQ&c=-dg2m7zWuuDZ0MUcV7Sdqw&r=s7ciGQfUJeaV_ryx908hbeXDoU9aqDwDN0Z0VbfsJ3Y&m=MpexLl4Cnpoiw8bgzXe9yafAWFabAqaY1CWmQPjQKUY&s=maC8aNVY-nwps5RQKUcHbXlgi3G7jwfe_UhF9yXVfEU&e=>) to illustrate. This is a problem in 1.4.2 as well.
A bug report is posted at https://archivesspace.atlassian.net/browse/AR-1474<https://urldefense.proofpoint.com/v2/url?u=https-3A__archivesspace.atlassian.net_browse_AR-2D1474&d=AwMGaQ&c=-dg2m7zWuuDZ0MUcV7Sdqw&r=s7ciGQfUJeaV_ryx908hbeXDoU9aqDwDN0Z0VbfsJ3Y&m=MpexLl4Cnpoiw8bgzXe9yafAWFabAqaY1CWmQPjQKUY&s=ZHs-RzloUUSJUX6eSaPMGhUWGKtcJHNMGtFSSH4bkRk&e=>.
Brad
From: archivesspace_users_group-bounces at lyralists.lyrasis.org<mailto:archivesspace_users_group-bounces at lyralists.lyrasis.org> [mailto:archivesspace_users_group-bounces at lyralists.lyrasis.org] On Behalf Of Custer, Mark
Sent: Wednesday, May 11, 2016 2:00 PM
To: Archivesspace Users Group
Subject: Re: [Archivesspace_Users_Group] Single-Part notes not showing up in Print Resource to PDF
Thanks, Salwa.
I just tried to duplicate this issue in the newest version of ASpace, but I wasn’t able to do so (at least not when the published notes are attached at the resource level). Here’s the resource: http://test.archivesspace.org/resources/95/<https://urldefense.proofpoint.com/v2/url?u=http-3A__test.archivesspace.org_resources_95_&d=AwMGaQ&c=-dg2m7zWuuDZ0MUcV7Sdqw&r=s7ciGQfUJeaV_ryx908hbeXDoU9aqDwDN0Z0VbfsJ3Y&m=MpexLl4Cnpoiw8bgzXe9yafAWFabAqaY1CWmQPjQKUY&s=maC8aNVY-nwps5RQKUcHbXlgi3G7jwfe_UhF9yXVfEU&e=> (in the GoneRepo repository).
Perhaps the issue has been fixed, or perhaps there are other variables at play? Either way, I’d be interested in taking a look at the ticket once it’s in JIRA.
Mark
From: archivesspace_users_group-bounces at lyralists.lyrasis.org<mailto:archivesspace_users_group-bounces at lyralists.lyrasis.org> [mailto:archivesspace_users_group-bounces at lyralists.lyrasis.org] On Behalf Of Salwa Ismail
Sent: Wednesday, 11 May, 2016 12:02 PM
To: Archivesspace Users Group
Subject: Re: [Archivesspace_Users_Group] Single-Part notes not showing up in Print Resource to PDF
Thanks for the suggestions, Mark.
I've also been corresponding with Brad and turns out it's a bug with AS that they'll add to their queue.
I am unable to share the FA as it has private date/information in it. :-(
Thanks,
-Salwa
---
Salwa Ismail
Head, Library Information Technology (LIT)
Georgetown University Library
Washington D.C.
(202) 687 7385
On Wed, May 11, 2016 at 10:23 AM, Custer, Mark <mark.custer at yale.edu<mailto:mark.custer at yale.edu>> wrote:
I’d think the problem, most likely, is one of two things:
• Something in the EAD (like the notes having an @audience=’internal’ attribute)
• Something in the EAD to PDF transformation
Can you send a copy of the EAD file? If so, also provide an example of one of the notes that isn’t displaying but should, just in case that’s not in the EAD output at all for some reason.
From: archivesspace_users_group-bounces at lyralists.lyrasis.org<mailto:archivesspace_users_group-bounces at lyralists.lyrasis.org> [mailto:archivesspace_users_group-bounces at lyralists.lyrasis.org<mailto:archivesspace_users_group-bounces at lyralists.lyrasis.org>] On Behalf Of Salwa Ismail
Sent: Wednesday, 11 May, 2016 8:33 AM
To: Archivesspace Users Group
Subject: [Archivesspace_Users_Group] Single-Part notes not showing up in Print Resource to PDF
Hello ArchivesSpace Users,
We've noticed that our single-part notes do not show up when we output the finding aid as a PDF using "Print Resource to PDF" function.
Our multi-part notes show up fine.
The finding aid is set to False on Publish (so not published on the web), but the individual component notes (multi- or single) are set "checked" on publish.
Are we missing something here? I've perused though the documentation but was unable to find anything in the Notes section or Print Resource to PDF section that helped or indicated something that could be of use in my case.
Any and all help and advise is appreciated.
Bes,
-Salwa
---
Salwa Ismail
Library Information Technology (LIT)
Georgetown University Library
Washington D.C.
(202) 687 7385<tel:%28202%29%20687%207385>
_______________________________________________
Archivesspace_Users_Group mailing list
Archivesspace_Users_Group at lyralists.lyrasis.org<mailto:Archivesspace_Users_Group at lyralists.lyrasis.org>
http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group<https://urldefense.proofpoint.com/v2/url?u=http-3A__lyralists.lyrasis.org_mailman_listinfo_archivesspace-5Fusers-5Fgroup&d=AwMFaQ&c=-dg2m7zWuuDZ0MUcV7Sdqw&r=s7ciGQfUJeaV_ryx908hbeXDoU9aqDwDN0Z0VbfsJ3Y&m=AInhdRB8PVwKUkXHcwnXxMZftnaBX-gdrvqxBsEWPpc&s=nucFoXIcziZsigraOJf1ncFscSsnGUokkoYPQooaNhg&e=>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lyralists.lyrasis.org/pipermail/archivesspace_users_group/attachments/20160511/863f7e66/attachment.html>
More information about the Archivesspace_Users_Group
mailing list