<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Consolas;
panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman",serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
pre
{mso-style-priority:99;
mso-style-link:"HTML Preformatted Char";
margin:0in;
margin-bottom:.0001pt;
font-size:10.0pt;
font-family:"Courier New";}
span.HTMLPreformattedChar
{mso-style-name:"HTML Preformatted Char";
mso-style-priority:99;
mso-style-link:"HTML Preformatted";
font-family:Consolas;}
span.EmailStyle19
{mso-style-type:personal;
font-family:"Calibri",sans-serif;
color:#1F497D;}
span.EmailStyle20
{mso-style-type:personal;
font-family:"Calibri",sans-serif;
color:#1F497D;}
span.EmailStyle21
{mso-style-type:personal;
font-family:"Calibri",sans-serif;
color:#1F497D;}
span.EmailStyle22
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">Chelsea, Lora:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">I submitted a quick fix for this last night, so hopefully it will be part of the next official release. In the meantime, if you have access to the ArchivesSpace
application, you just need to modify two lines (376 and 390) in a single file (https://github.com/archivesspace/archivesspace/blob/master/stylesheets/as-ead-pdf.xsl).
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">Here’s what that looks like:
<a href="https://github.com/archivesspace/archivesspace/pull/475/files">https://github.com/archivesspace/archivesspace/pull/475/files</a><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">The bookmark titles will not retain their formatting with this fix, but the PDF generation process won’t fail anymore! I’m pretty sure I could add formatting
to the bookmark titles, as well (the formatting still shows up as expected in the Table of Contents links), but that would require a bit more investigation. In any event, this simple fix will mean that you can create PDF files for any finding aids that have
mixed content (i.e. emph, title, persname, and other tags) in their series, subseries, recordgrp, etc., unit titles.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">Mark<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">From:</span></b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"> archivesspace_users_group-bounces@lyralists.lyrasis.org [mailto:archivesspace_users_group-bounces@lyralists.lyrasis.org]
<b>On Behalf Of </b>Custer, Mark<br>
<b>Sent:</b> Wednesday, 22 June, 2016 4:44 PM<br>
<b>To:</b> Archivesspace Users Group<br>
<b>Subject:</b> Re: [Archivesspace_Users_Group] Error with Export to PDF following Migration from AT<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">Lora is right. I didn’t write the style sheets, but I have experience with XSL-FO, so I’ll take a look at this tonight. It should only require a minor change.
I’ll write back with an update tomorrow, unless someone else beats me to a fix for this.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">Mark<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">From:</span></b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">
</span><a href="mailto:archivesspace_users_group-bounces@lyralists.lyrasis.org"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">archivesspace_users_group-bounces@lyralists.lyrasis.org</span></a><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">
[</span><a href="mailto:archivesspace_users_group-bounces@lyralists.lyrasis.org"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">mailto:archivesspace_users_group-bounces@lyralists.lyrasis.org</span></a><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">]
<b>On Behalf Of </b>Lora Davis<br>
<b>Sent:</b> Wednesday, 22 June, 2016 4:27 PM<br>
<b>To:</b> Archivesspace Users Group<br>
<b>Subject:</b> Re: [Archivesspace_Users_Group] Error with Export to PDF following Migration from AT<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">Any chance there’s inline coding present in any of the fields that would be output to the table of contents of the PDF? (Most common scenario would be italicized
proper titles present in the titles.) <o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">If so, see: </span><a href="https://urldefense.proofpoint.com/v2/url?u=https-3A__archivesspace.atlassian.net_browse_AR-2D1312&d=CwMGaQ&c=-dg2m7zWuuDZ0MUcV7Sdqw&r=s7ciGQfUJeaV_ryx908hbeXDoU9aqDwDN0Z0VbfsJ3Y&m=1Ou8gWzR_OKQvdpkucDtbJc3Uh8WcCgjRogS5uV-bOM&s=EvwPj89fgz3q_A2BkhctMv_cIC3YLKrrMDsKcXZH6TI&e="><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">https://archivesspace.atlassian.net/browse/AR-1312</span></a><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">
which I reported back in August.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">Best,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">Lora<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">From:</span></b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">
</span><a href="mailto:archivesspace_users_group-bounces@lyralists.lyrasis.org"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">archivesspace_users_group-bounces@lyralists.lyrasis.org</span></a><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">
[</span><a href="mailto:archivesspace_users_group-bounces@lyralists.lyrasis.org"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">mailto:archivesspace_users_group-bounces@lyralists.lyrasis.org</span></a><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">]
<b>On Behalf Of </b>Chelsea Lobdell<br>
<b>Sent:</b> Wednesday, June 22, 2016 3:59 PM<br>
<b>To:</b> Archivesspace Users Group <</span><a href="mailto:archivesspace_users_group@lyralists.lyrasis.org"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">archivesspace_users_group@lyralists.lyrasis.org</span></a><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">><br>
<b>Subject:</b> [Archivesspace_Users_Group] Error with Export to PDF following Migration from AT<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">Hi,<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">I just recently migrated all our data from AT to AS. The migration was successful and the data looks good for the most part. Our college archivist did notice an error when trying to export records to a PDF.
Some records export successfully while others encounter the following error: <o:p>
</o:p></p>
<div>
<pre>Generating PDF for Howard Haines Brinton and Anna Shipley Cox Brinton papers <o:p></o:p></pre>
</div>
<div>
<pre>org.apache.fop.fo.ValidationException: "fo:inline" is not a valid child of "fo:bookmark-title"! (See position 129:-1)<o:p></o:p></pre>
<pre>net.sf.saxon.event.ContentHandlerProxy.handleSAXException(net/sf/saxon/event/ContentHandlerProxy.java:542)<o:p></o:p></pre>
<pre>net.sf.saxon.event.ContentHandlerProxy.startContent(net/sf/saxon/event/ContentHandlerProxy.java:386)<o:p></o:p></pre>
<pre>net.sf.saxon.event.NamespaceReducer.startContent(net/sf/saxon/event/NamespaceReducer.java:199)<o:p></o:p></pre>
<pre>net.sf.saxon.event.ReceivingContentHandler.startElement(net/sf/saxon/event/ReceivingContentHandler.java:351)<o:p></o:p></pre>
<pre>net.sf.saxon.event.Sender.sendSAXSource(net/sf/saxon/event/Sender.java:428)<o:p></o:p></pre>
<pre>net.sf.saxon.event.Sender.send(net/sf/saxon/event/Sender.java:170)<o:p></o:p></pre>
<pre>net.sf.saxon.IdentityTransformer.transform(net/sf/saxon/IdentityTransformer.java:46)<o:p></o:p></pre>
<pre>java.lang.reflect.Method.invoke(java/lang/reflect/Method.java:498)<o:p></o:p></pre>
<pre>RUBY.to_pdf(/usr/local/archivesspace/data/tmp/jetty-0.0.0.0-8089-backend.war-_-any-/webapp/WEB-INF/app/lib/AS_fop.rb:44)<o:p></o:p></pre>
<pre>RUBY.run(/usr/local/archivesspace/data/tmp/jetty-0.0.0.0-8089-backend.war-_-any-/webapp/WEB-INF/app/lib/print_to_pdf_runner.rb:46)<o:p></o:p></pre>
<pre>RequestContext.open(/usr/local/archivesspace/data/tmp/jetty-0.0.0.0-8089-backend.war-_-any-/webapp/WEB-INF/app/lib/request_context.rb:24)<o:p></o:p></pre>
<pre>RequestContext.open(/usr/local/archivesspace/data/tmp/jetty-0.0.0.0-8089-backend.war-_-any-/webapp/WEB-INF/app/lib/request_context.rb:24)<o:p></o:p></pre>
<pre>RequestContext.open(/usr/local/archivesspace/data/tmp/jetty-0.0.0.0-8089-backend.war-_-any-/webapp/WEB-INF/app/lib/request_context.rb:23)<o:p></o:p></pre>
<pre>RequestContext.open(/usr/local/archivesspace/data/tmp/jetty-0.0.0.0-8089-backend.war-_-any-/webapp/WEB-INF/app/lib/request_context.rb:23)<o:p></o:p></pre>
<pre>RUBY.run(/usr/local/archivesspace/data/tmp/jetty-0.0.0.0-8089-backend.war-_-any-/webapp/WEB-INF/app/lib/print_to_pdf_runner.rb:23)<o:p></o:p></pre>
<pre>BackgroundJobQueue.run_pending_job(/usr/local/archivesspace/data/tmp/jetty-0.0.0.0-8089-backend.war-_-any-/webapp/WEB-INF/app/lib/background_job_queue.rb:100)<o:p></o:p></pre>
<pre>BackgroundJobQueue.run_pending_job(/usr/local/archivesspace/data/tmp/jetty-0.0.0.0-8089-backend.war-_-any-/webapp/WEB-INF/app/lib/background_job_queue.rb:100)<o:p></o:p></pre>
<pre>RUBY.start_background_thread(/usr/local/archivesspace/data/tmp/jetty-0.0.0.0-8089-backend.war-_-any-/webapp/WEB-INF/app/lib/background_job_queue.rb:128)<o:p></o:p></pre>
<pre>java.lang.Thread.run(java/lang/Thread.java:745)<o:p></o:p></pre>
</div>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">I could discern no major differences in the data between successfully exporting records and records that failed the export. Has anyone encountered this error before? Any advice would be greatly appreciated!
<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">- Chelsea<o:p></o:p></p>
</div>
<div>
<div>
<div>
<div>
<div>
<div>
<p class="MsoNormal"><i><span style="color:gray">---------------</span></i><br>
<i><span style="color:gray">Chelsea Lobdell</span></i><br>
<i><span style="color:gray">Library Web Developer/ Swarthmore College</span></i><br>
<a href="mailto:clobdel1@swarthmore.edu" target="_blank"><i>clobdel1@swarthmore.edu</i></a><i><span style="color:gray"> / (610)690-6818</span></i><o:p></o:p></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>