<div dir="ltr">Thanks, we will do that.  As Robin Wendler's message points out, this is likely a widespread issue and one that is difficult to fix.</div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Sep 15, 2015 at 9:30 AM, Chris Fitzpatrick <span dir="ltr"><<a href="mailto:Chris.Fitzpatrick@lyrasis.org" target="_blank">Chris.Fitzpatrick@lyrasis.org</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">
<div style="font-size:12pt;color:#000000;background-color:#ffffff;font-family:Calibri,Arial,Helvetica,sans-serif">
<p><br>
</p>
<p><br>
</p>
<p>Hi Chris,</p>
<p><br>
</p>
<p>No, unfortunately it won't. </p>
<p>The problem is that there are so many edges cases with how people use EAD, that it's pretty much impossible to predict them all. I've probably devoted over 30 hours to the problems with <p> tags alone. </p>
<p><br>
</p>
<p>The best bet if for you to either make a plugin or send us a pull-request with what you think the changes should be. </p>
<p><br>
</p>
<p>best,  Chris. <br>
</p>
<br>
<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> Tuesday, September 15, 2015 3:25 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">
<div>Aside from the theoretical question of export validity, this is a case where ArchivesSpace itself is importing a valid EAD and exporting invalid EAD when no changes have been made to the resource at all.  Is it safe to assume that the </div>
<div><span style="color:rgb(0,0,0);font-family:Calibri,Arial,Helvetica,sans-serif;font-size:16px"><br>
</span></div>
<div><span style="color:rgb(0,0,0);font-family:Calibri,Arial,Helvetica,sans-serif;font-size:16px">( content.strip.start_with?("<p"</span><span style="color:rgb(0,0,0);font-family:Calibri,Arial,Helvetica,sans-serif;font-size:16px">) </span></div>
<div><span style="color:rgb(0,0,0);font-family:Calibri,Arial,Helvetica,sans-serif;font-size:16px"><br>
</span></div>
will be modified for the next release?</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Tue, Sep 15, 2015 at 9:18 AM, Chris Fitzpatrick <span dir="ltr">
<<a href="mailto:Chris.Fitzpatrick@lyrasis.org" target="_blank">Chris.Fitzpatrick@lyrasis.org</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">
<div 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>
<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> 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><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 height="40" width="351"><br>
</div>
<div style="font-size:12.8000001907349px;color:rgb(0,0,0)"><font size="1">  <a href="http://bentley.umich.edu/" style="color:rgb(17,85,204)" target="_blank">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" style="color:rgb(17,85,204)" target="_blank">Twitter</a> <a href="https://www.facebook.com/bentleyhistoricallibrary" style="color:rgb(17,85,204)" target="_blank">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" 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>
</div>
</div>
</div>
</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>
<br>
</div>
</div>
</div>
</div>
</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>