<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class=""><br class=""></div><br class=""><div><blockquote type="cite" class=""><div class="">On May 16, 2018, at 11:51 AM, Celia Caust-Ellenbogen <<a href="mailto:ccauste1@swarthmore.edu" class="">ccauste1@swarthmore.edu</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html; charset=utf-8" class=""><div dir="ltr" class="">Thanks, Steve, for the tip! Validating the EAD showed me an unescaped ampersand that was causing the problem.<div class=""><br class=""></div><div class="">I'm worried there might be more culprits like this lurking in our database...does anyone know of an existing script to check for rogue unencoded special characters?</div><div class=""><br class=""></div><div class="">And I am still curious about the API endpoint for EAD...has anyone used this successfully? Is the problem specific to me or should I create a JIRA ticket?</div></div><div class="gmail_extra"><br class=""></div></div></blockquote><div><br class=""></div><div>Yes. I’ve been using it. All of the outstanding issues I’ve seen have been content dependent, and are due to that particular content producing malformed EAD that fails on the next step. It might be good to collect some examples of the different failure modes. </div><div>Two others that I recall seeing ( unfortunately, I don’t have saved examples at hand, so just going by memory and missing some details) : </div><div><br class=""></div><div>  If a note contains mixed content, like title or emphasis tags, especially if the tag begins an implicit paragraph, it can serialize the output with the tags overlapping rather than embedded. </div><div><br class=""></div><div>  If a note or resource is marked published, but some inner note that is required to complete the EAD serialization is unpublished, and export unpublished is not selected, it can produce EAD that doesn’t validate due to the missing element. ( I really wish I could recall or reconstruct the exact elements that this occurred on! ) </div><div><br class=""></div><div>If you are trying to script PDF production using the API, it may be better to export EAD and and run the other steps ( validation, as-ead-pdf.xsl stylesheet, FOP processor ) in the script that is calling the ASpace API. </div><div><br class=""></div><div><br class=""></div><div>— Steve. </div><div><br class=""></div><div><br class=""></div><br class=""><blockquote type="cite" class=""><div class=""><div class="gmail_extra"><div class="gmail_quote">On Tue, May 15, 2018 at 4:19 PM, Majewski, Steven Dennis (sdm7g) <span dir="ltr" class=""><<a href="mailto:sdm7g@virginia.edu" target="_blank" class="">sdm7g@virginia.edu</a>></span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word" class=""><div class="">Try exporting the EAD and validating. </div><div class="">There are still some cases where it exports malformed XML in some cases where these is mixed content in a note.</div><div class="">The staff PDF export, first exports EAD which then goes to the as-ead-pdf.xsl stylesheet and then to the FOP processor. </div><div class="">Feeding badly formed XML to the stylesheet will fail, and the error messages don’t seem to be caught. </div><div class=""><br class=""></div><div class="">— Steve. </div><div class=""><div class="h5"><div class=""><br class=""></div><div class=""><br class=""></div><br class=""><div class=""><blockquote type="cite" class=""><div class="">On May 15, 2018, at 4:12 PM, Celia Caust-Ellenbogen <<a href="mailto:ccauste1@swarthmore.edu" target="_blank" class="">ccauste1@swarthmore.edu</a>> wrote:</div><br class="m_-466375423996074481Apple-interchange-newline"><div class=""><div dir="ltr" class="">This is on 2.3.2. I can print PDFs manually from the PUI but when I try to automate printing via the API, I get these blank PDFs.<div class=""><br class=""></div><div class="">I'm doing all this because I have a particular resource record that is mysteriously giving me an error message when I try to print a PDF from the PUI (this one: <a href="http://archives.tricolib.brynmawr.edu/repositories/9/resources/5678" target="_blank" class="">http://archives.tricolib.<wbr class="">brynmawr.edu/repositories/9/<wbr class="">resources/5678</a>) and I am trying to understand what might be causing the problem.</div><div class=""><br class=""></div><div class="">Thanks in advance for any advice or insight!</div></div><div class="gmail_extra"><br class=""><div class="gmail_quote">On Tue, May 15, 2018 at 3:05 PM, Seth Shaw <span dir="ltr" class=""><<a href="mailto:seth.shaw@unlv.edu" target="_blank" class="">seth.shaw@unlv.edu</a>></span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr" class="">What version do you have running? PDF export via API broke with 2.2.0 but was fixed in 2.3.0.</div><div class="gmail_extra"><br class=""><div class="gmail_quote"><div class=""><div class="m_-466375423996074481h5">On Tue, May 15, 2018 at 11:55 AM, Celia Caust-Ellenbogen <span dir="ltr" class=""><<a href="mailto:ccauste1@swarthmore.edu" target="_blank" class="">ccauste1@swarthmore.edu</a>></span> wrote:<br class=""></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class=""><div class="m_-466375423996074481h5"><div dir="ltr" class="">Hello all,<div class=""><br class=""></div><div class="">Has anyone had luck using the API endpoint to print a PDF? I am getting blank PDFs that have appropriate bookmarks (different for each PDF I print, appropriate headings for the specific resource) but no text in the document. Am I doing this wrong or does the endpoint not work? </div><div class=""><br class=""></div><div class="">I noticed the API documentation says "EAD" instead of "PDF" ([:GET] /repositories/:repo_id/resourc<wbr class="">e_descriptions/:id.pdf        Description: Get an EAD representation of a Resource) so I suspect this feature may not be fully developed.</div><div class=""><br class=""></div><div class=""><div class="">Thanks!</div><span class="m_-466375423996074481m_71689229550784532HOEnZb"><font color="#888888" class=""><div class="">Celia</div><div class=""><br class=""></div>-- <br class=""><div class="m_-466375423996074481m_71689229550784532m_-1503376144902247284gmail_signature"><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><font size="1" class="">Celia Caust-Ellenbogen </font><div class=""><a href="http://swarthmore.edu/friends-historical-library" target="_blank" class=""><font size="1" class="">Friends Historical Library of Swarthmore College</font></a></div><div class=""><font size="1" class="">610-328-8496</font></div><div class=""><a href="mailto:ccauste1@swarthmore.edu" style="font-size:x-small" target="_blank" class="">ccauste1@swarthmore.edu</a></div><div class=""><font size="1" class=""><a href="https://www.mypronouns.org/she-her" target="_blank" class="">she/her/hers</a></font></div><div class=""><br class=""></div><div class=""><br class=""></div></div></div></div></div></div></div></div></div>
</font></span></div></div>
<br class=""></div></div>______________________________<wbr class="">_________________<br class="">
Archivesspace_Users_Group mailing list<br class="">
<a href="mailto:Archivesspace_Users_Group@lyralists.lyrasis.org" target="_blank" class="">Archivesspace_Users_Group@lyra<wbr class="">lists.lyrasis.org</a><br class="">
<a href="http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group" rel="noreferrer" target="_blank" class="">http://lyralists.lyrasis.org/m<wbr class="">ailman/listinfo/archivesspace_<wbr class="">users_group</a><br class="">
<br class=""></blockquote></div><br class=""></div>
<br class="">______________________________<wbr class="">_________________<br class="">
Archivesspace_Users_Group mailing list<br class="">
<a href="mailto:Archivesspace_Users_Group@lyralists.lyrasis.org" target="_blank" class="">Archivesspace_Users_Group@lyra<wbr class="">lists.lyrasis.org</a><br class="">
<a href="http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group" rel="noreferrer" target="_blank" class="">http://lyralists.lyrasis.org/m<wbr class="">ailman/listinfo/archivesspace_<wbr class="">users_group</a><br class="">
<br class=""></blockquote></div><br class=""><br clear="all" class=""><div class=""><br class=""></div>-- <br class=""><div class="m_-466375423996074481gmail_signature" data-smartmail="gmail_signature"><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><font size="1" class="">Celia Caust-Ellenbogen </font><div class=""><a href="http://swarthmore.edu/friends-historical-library" target="_blank" class=""><font size="1" class="">Friends Historical Library of Swarthmore College</font></a></div><div class=""><font size="1" class="">610-328-8496</font></div><div class=""><a href="mailto:ccauste1@swarthmore.edu" style="font-size:x-small" target="_blank" class="">ccauste1@swarthmore.edu</a></div><div class=""><font size="1" class=""><a href="https://www.mypronouns.org/she-her" target="_blank" class="">she/her/hers</a></font></div><div class=""><br class=""></div><div class=""><br class=""></div></div></div></div></div></div></div></div></div>
</div>
______________________________<wbr class="">_________________<br class="">Archivesspace_Users_Group mailing list<br class=""><a href="mailto:Archivesspace_Users_Group@lyralists.lyrasis.org" target="_blank" class="">Archivesspace_Users_Group@<wbr class="">lyralists.lyrasis.org</a><br class=""><a href="http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group" target="_blank" class="">http://lyralists.lyrasis.org/<wbr class="">mailman/listinfo/<wbr class="">archivesspace_users_group</a><br class=""></div></blockquote></div><br class=""></div></div></div><br class="">______________________________<wbr class="">_________________<br class="">
Archivesspace_Users_Group mailing list<br class="">
<a href="mailto:Archivesspace_Users_Group@lyralists.lyrasis.org" class="">Archivesspace_Users_Group@<wbr class="">lyralists.lyrasis.org</a><br class="">
<a href="http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group" rel="noreferrer" target="_blank" class="">http://lyralists.lyrasis.org/<wbr class="">mailman/listinfo/<wbr class="">archivesspace_users_group</a><br class="">
<br class=""></blockquote></div><br class=""><br clear="all" class=""><div class=""><br class=""></div>-- <br class=""><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><font size="1" class="">Celia Caust-Ellenbogen </font><div class=""><a href="http://swarthmore.edu/friends-historical-library" target="_blank" class=""><font size="1" class="">Friends Historical Library of Swarthmore College</font></a></div><div class=""><font size="1" class="">610-328-8496</font></div><div class=""><a href="mailto:ccauste1@swarthmore.edu" style="font-size:x-small" target="_blank" class="">ccauste1@swarthmore.edu</a></div><div class=""><font size="1" class=""><a href="https://www.mypronouns.org/she-her" target="_blank" class="">she/her/hers</a></font></div><div class=""><br class=""></div><div class=""><br class=""></div></div></div></div></div></div></div></div></div>
</div>
_______________________________________________<br class="">Archivesspace_Users_Group mailing list<br class=""><a href="mailto:Archivesspace_Users_Group@lyralists.lyrasis.org" class="">Archivesspace_Users_Group@lyralists.lyrasis.org</a><br class="">http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group<br class=""></div></blockquote></div><br class=""></body></html>