<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p><br>
</p>
<p><br>
</p>
<p>Hi All,</p>
<br>
I actually think it's probably more important that people have a way to get their data out rather than attempting to disallow export based on the validation to EAD. If you have problems in your records, how would you know where to find them if you were not
allowed to export? <br>
<br>
Right, so if the exporter detects the note starts with markup, it assumes you've already inserted <p> in there, and so it leaves them. This is because a lot of folks put the <p> in their notes manually.
<br>
<br>
If you have a different use case, it's pretty easy to modify the exporter. <br>
<br>
<br>
<p>best, chris. <br>
</p>
<p><br>
<br>
</p>
<div id="Signature">
<div name="divtagdefaultwrapper" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:; margin:0">
<div class="BodyFragment"><font size="2">
<div class="PlainText">Chris Fitzpatrick | <font size="2">Developer, ArchivesSpace</font><br>
Skype: chrisfitzpat | Phone: 918.236.6048<br>
http://archivesspace.org/<br>
</div>
</font></div>
</div>
</div>
<br>
<br>
<div style="color: rgb(0, 0, 0);">
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" face="Calibri, sans-serif" color="#000000"><b>From:</b> archivesspace_users_group-bounces@lyralists.lyrasis.org <archivesspace_users_group-bounces@lyralists.lyrasis.org> on behalf of Chris Powell
<sooty@umich.edu><br>
<b>Sent:</b> Tuesday, September 15, 2015 3:07 PM<br>
<b>To:</b> Archivesspace Users Group<br>
<b>Subject:</b> Re: [Archivesspace_Users_Group] Invalid EAD export</font>
<div> </div>
</div>
<div>
<div dir="ltr">Good eye, Dallas! So yes, it looks like it just needs a better match -- on either "<p>" or "<p " -- to resolve the issue.
<div><br>
</div>
<div>I think, just on principle, ASpace should never export invalid EAD.</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Tue, Sep 15, 2015 at 8:58 AM, Dallas Pillen <span dir="ltr">
<<a href="mailto:djpillen@umich.edu" target="_blank">djpillen@umich.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex; border-left:1px #ccc solid; padding-left:1ex">
<div dir="ltr">Could this be what's causing the issue?
<div><br>
</div>
<div><a href="https://github.com/archivesspace/archivesspace/blob/master/backend/app/exporters/serializers/ead.rb#L18-L28" target="_blank">https://github.com/archivesspace/archivesspace/blob/master/backend/app/exporters/serializers/ead.rb#L18-L28</a><br>
</div>
<div><br>
</div>
<div>if ( content.strip.start_with?("<p") will match both "<p>" and "<persname>", so if a note starts with either of those (or any other tag that begins with p) the content will not get wrapped in a <p> tag on export.</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Tue, Sep 15, 2015 at 8:36 AM, Chris Powell <span dir="ltr">
<<a href="mailto:sooty@umich.edu" target="_blank">sooty@umich.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex; border-left:1px #ccc solid; padding-left:1ex">
<div dir="ltr">I am suspicious -- the ONLY instance where this occurs is when the initial tag is persname. It seems to me this could be some sort of failed test to see if <p> is already there.</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">
<div>
<div>On Tue, Sep 15, 2015 at 3:10 AM, Chris Fitzpatrick <span dir="ltr"><<a href="mailto:Chris.Fitzpatrick@lyrasis.org" target="_blank">Chris.Fitzpatrick@lyrasis.org</a>></span> wrote:<br>
</div>
</div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex; border-left:1px #ccc solid; padding-left:1ex">
<div>
<div>
<div dir="ltr">
<div style="font-size:12pt; color:#000000; background-color:#ffffff; font-family:Calibri,Arial,Helvetica,sans-serif">
<p>Hi Chris,</p>
<p><br>
</p>
<p>Yes, the <p> is one of the more unfortunate aspects of EAD. </p>
<p>For this use case ( where you start the note with markup ), you have to add your own <p> tags to wrap the note. </p>
<p>b,chris. <br>
</p>
<p><br>
</p>
<p><br>
</p>
<div>
<div name="divtagdefaultwrapper">
<div><font size="2">
<div>Chris Fitzpatrick | <font size="2">Developer, ArchivesSpace</font><br>
Skype: chrisfitzpat | Phone: <a href="tel:918.236.6048" value="+19182366048" target="_blank">
918.236.6048</a><br>
<a href="http://archivesspace.org/" target="_blank">http://archivesspace.org/</a><br>
</div>
</font></div>
</div>
</div>
<br>
<br>
<div style="color:rgb(0,0,0)">
<hr style="display:inline-block; width:98%">
<div dir="ltr"><font style="font-size:11pt" face="Calibri, sans-serif" color="#000000"><b>From:</b>
<a href="mailto:archivesspace_users_group-bounces@lyralists.lyrasis.org" target="_blank">
archivesspace_users_group-bounces@lyralists.lyrasis.org</a> <<a href="mailto:archivesspace_users_group-bounces@lyralists.lyrasis.org" target="_blank">archivesspace_users_group-bounces@lyralists.lyrasis.org</a>> on behalf of Chris Powell <<a href="mailto:sooty@umich.edu" target="_blank">sooty@umich.edu</a>><br>
<b>Sent:</b> Monday, September 14, 2015 5:42 PM<br>
<b>To:</b> archivesspace_users_group<br>
<b>Subject:</b> Re: [Archivesspace_Users_Group] Invalid EAD export</font>
<div> </div>
</div>
<div>
<div dir="ltr">Please disregard the hyphen in the example EAD import! The hazards of cutting and pasting out of Internet Explorer.
<div><br>
</div>
<div><span style="font-size:12.8px"><bioghist encodinganalog="545"><p><</span><span style="font-size:12.8px">persname>Francis Steiner</persname>was born January 16, 1895 in New Jersey, to German parents. He was the oldest of three children.</p><p>A communist
and conscientious objector [etc.] </p><p>There is no information regarding Francis Steiner after his last letter of November 7, 1920. </p></bioghist></span><br>
</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Mon, Sep 14, 2015 at 11:15 AM, Chris Powell <span dir="ltr">
<<a href="mailto:sooty@umich.edu" target="_blank">sooty@umich.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex; border-left:1px #ccc solid; padding-left:1ex">
<div dir="ltr">Hello --
<div><br>
</div>
<div>It appears that if the first word or phrase in any of the "notes" elements that contain a text block and support mixed content, like abstract, bioghist or scopecontent is wrapped in a persname, the EAD export is invalid as all paragraphs lack p element
wrappers. </div>
<div><br>
</div>
<div>I've tested this with other elements to start the first paragraph and persname to start the second paragraph and those do not cause problems, only persname to start the first paragraph.</div>
<div><br>
</div>
<div>Example bioghist EAD prior to import:</div>
<div><br>
</div>
<div><bioghist encodinganalog="545">-<p><persname>Francis Steiner</persname>was born January 16, 1895 in New Jersey, to German parents. He was the oldest of three children.</p><p>A communist and conscientious objector [etc.] </p><p>There is no information regarding
Francis Steiner after his last letter of November 7, 1920. </p></bioghist><br>
</div>
<div><br>
</div>
<div>Example bioghist EAD after export:</div>
<div><br>
</div>
<div><bioghist id="aspace_6e16003b2d18f8ad6c487cd5712fc162"><head>Biographical / Historical</head><persname>Francis Steiner</persname>was born January 16, 1895 in New Jersey, to German parents. He was the oldest of three children. A communist and conscientious
objector [etc.] There is no information regarding Francis Steiner after his last letter of November 7, 1920. </bioghist><span><font color="#888888"><br>
</font></span></div>
<span><font color="#888888">
<div><br>
</div>
<div><br>
</div>
<div>Chris Powell</div>
<div>University of Michigan</div>
<div>Digital Library Production Service</div>
</font></span></div>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</div>
</div>
<br>
</div>
</div>
_______________________________________________<br>
Archivesspace_Users_Group mailing list<br>
<a href="mailto:Archivesspace_Users_Group@lyralists.lyrasis.org" target="_blank">Archivesspace_Users_Group@lyralists.lyrasis.org</a><br>
<a href="http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group" rel="noreferrer" target="_blank">http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group</a><br>
<br>
</blockquote>
</div>
<br>
</div>
<br>
_______________________________________________<br>
Archivesspace_Users_Group mailing list<br>
<a href="mailto:Archivesspace_Users_Group@lyralists.lyrasis.org" target="_blank">Archivesspace_Users_Group@lyralists.lyrasis.org</a><br>
<a href="http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group" rel="noreferrer" target="_blank">http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group</a><br>
<br>
</blockquote>
</div>
<span class="HOEnZb"><font color="#888888"><br>
<br clear="all">
<div><br>
</div>
-- <br>
<div>
<div dir="ltr">
<div>
<div dir="ltr">
<div dir="ltr">
<div style="font-size:12.8000001907349px"><b>Dallas Pillen<br>
</b>Project Archivist<b><br>
</b></div>
<div style="font-size:12.8000001907349px"><br>
</div>
<div style="font-size:12.8000001907349px; color:rgb(0,0,0)"><img style="-moz-user-select: none;" height="40" width="351" src=""><br>
</div>
<div style="font-size:12.8000001907349px; color:rgb(0,0,0)"><font size="1"> <a href="http://bentley.umich.edu/" target="_blank" style="color:rgb(17,85,204)">Bentley Historical Library</a></font></div>
<div style="font-size:12.8000001907349px; color:rgb(0,0,0)"><font size="1"> 1150 Beal Avenue</font></div>
<div style="font-size:12.8000001907349px; color:rgb(0,0,0)"><font size="1"> Ann Arbor, Michigan 48109-2113</font><span style="font-size:x-small"> </span></div>
<div style="font-size:12.8000001907349px"><a value="+17347643482" style="font-size:x-small"><font color="#000000"> </font></a><a value="+17347643482" style="color:rgb(34,34,34); font-size:x-small">734.647.3559</a></div>
<div style="font-size:12.8000001907349px; color:rgb(0,0,0)"><font size="1"> <a href="https://twitter.com/umichBentley" target="_blank" style="color:rgb(17,85,204)">Twitter</a> <a href="https://www.facebook.com/bentleyhistoricallibrary" target="_blank" style="color:rgb(17,85,204)">Facebook </a></font></div>
</div>
</div>
</div>
</div>
</div>
</font></span></div>
<br>
_______________________________________________<br>
Archivesspace_Users_Group mailing list<br>
<a href="mailto:Archivesspace_Users_Group@lyralists.lyrasis.org">Archivesspace_Users_Group@lyralists.lyrasis.org</a><br>
<a href="http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group" rel="noreferrer" target="_blank">http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group</a><br>
<br>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</div>
</body>
</html>