<div dir="ltr">We definitely had lots of duplicate <head>s appear when we imported our EADs here at the University of Minnesota Libraries.  The pattern seemed to be that it only happened if there was any attributes inside the <head> tag.  <div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Sep 29, 2016 at 4:20 PM, Majewski, Steven Dennis (sdm7g) <span dir="ltr"><<a href="mailto:sdm7g@eservices.virginia.edu" target="_blank">sdm7g@eservices.virginia.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">



<div style="word-wrap:break-word">
<div><br>
</div>
I noticed that importing EAD with this accessrestrict element:<br>
<div><br>
</div>
<div>
<div style="margin:0px;font-size:12px;line-height:normal;font-family:Helvetica">
  <span style="color:#021da7"><accessrestrict></span><br>
         <span style="color:#021da7"><head </span><span style="color:rgb(0,170,214)">xmlns:xlink</span><span style="color:rgb(255,148,80)">=</span><span style="color:rgb(171,69,0)">"<a href="http://www.w3.org/1999/xlink" target="_blank">http://<wbr>www.w3.org/1999/xlink</a>"</span><span style="color:rgb(249,151,94)">
</span><span style="color:rgb(0,170,214)">xmlns:xtf</span><span style="color:rgb(255,148,80)">=</span><span style="color:rgb(171,69,0)">"<a href="http://cdlib.org/xtf" target="_blank">http://cdlib.org/<wbr>xtf</a>"</span><span style="color:rgb(2,29,167)">></span>Access
 Restrictions<span style="color:rgb(2,29,167)"></head></span></div>
<div style="margin:0px;font-size:12px;line-height:normal;font-family:Helvetica">
         <span style="color:#021da7"><p></span>The collection is without restrictions.<span style="color:#021da7"></p></span><br>
  <span style="color:#021da7"></accessrestrict></span></div>
</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div>Produces this in ArchivesSpace (1.5.1):</div>
<div><br>
</div>
<div>
<ul style="margin:0px;color:rgb(51,51,51);font-family:'Helvetica Neue',Helvetica,Arial,sans-serif">
<li style="list-style:none">
<div style="background-color:rgb(255,255,255);border:1px solid rgb(221,221,221);border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-right-radius:4px;border-bottom-left-radius:4px;margin-top:10px;padding:10px">
<h4 style="font-family:inherit;font-weight:500;line-height:36px;color:inherit;margin:0px;font-size:18px;background-color:rgb(246,246,246);background-image:linear-gradient(rgb(243,243,243) 0px,rgb(237,237,237) 100%);padding-left:10px;min-height:1.4em;border-bottom-width:1px;border-bottom-style:solid;border-bottom-color:rgb(221,221,221);border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-right-radius:0px;border-bottom-left-radius:0px;background-repeat:repeat no-repeat">
Conditions Governing Access</h4>
<div style="margin:0px 10px;padding:0px 0px 10px">
<div style="margin:0px!important;padding:4px 0px">
<label style="display:inline-block;max-width:100%;margin-bottom:0px;min-height:1px;padding-left:15px;padding-right:15px;float:left;width:130.078125px;text-align:right;padding-top:7px">Persistent
 ID</label>
<div style="min-height:1px;padding-left:15px;padding-right:15px;float:left;width:585.375px;padding-top:7px">
ec37b6585f7b376a84ab03fdf54022<wbr>fd</div>
</div>
<div style="margin:0px!important;padding:4px 0px">
<label title="" style="display:inline-block;max-width:100%;margin-bottom:0px;min-height:1px;padding-left:15px;padding-right:15px;float:left;width:130.078125px;text-align:right;padding-top:7px">Label</label>
<div style="min-height:1px;padding-left:15px;padding-right:15px;float:left;width:585.375px;padding-top:7px">
Access Restrictions</div>
</div>
<div style="margin:0px!important;padding:4px 0px">
<label title="" style="display:inline-block;max-width:100%;margin-bottom:0px;min-height:1px;padding-left:15px;padding-right:15px;float:left;width:130.078125px;text-align:right;padding-top:7px">Type</label>
<div style="min-height:1px;padding-left:15px;padding-right:15px;float:left;width:260.15625px;padding-top:7px">
Conditions Governing Access</div>
</div>
<div style="margin:0px!important;padding:4px 0px">
<label title="" style="display:inline-block;max-width:100%;margin-bottom:0px;min-height:1px;padding-left:15px;padding-right:15px;float:left;width:130.078125px;text-align:right;padding-top:7px">Publish?</label>
<div style="min-height:1px;padding-left:15px;padding-right:15px;float:left;width:65.03125px;padding-top:7px">
True</div>
</div>
<section style="margin:0px 20px">
<div><label title="" style="display:inline-block;max-width:100%;margin-bottom:0px;text-align:right;padding-top:7px">Local
 Access Restriction Type</label>
<div>
<ul style="margin-top:0px;margin-bottom:0px">
</ul>
</div>
</div>
</section><section style="clear:both;margin:10px 0px;background-color:rgb(250,250,250)">
<h5 style="font-family:inherit;font-weight:500;line-height:30px;color:inherit;margin:0px;font-size:14px;background-color:rgb(246,246,246);background-image:linear-gradient(rgb(243,243,243) 0px,rgb(237,237,237) 100%);padding-left:10px;min-height:1.4em;border-bottom-width:1px;border-bottom-style:solid;border-bottom-color:rgb(221,221,221);border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-right-radius:0px;border-bottom-left-radius:0px;background-repeat:repeat no-repeat">
Sub Notes</h5>
<div style="margin:0px 10px;padding:0px 0px 10px">
<ul style="margin:0px">
<li style="list-style:none">
<div style="background-color:rgb(255,255,255);border:1px solid rgb(221,221,221);border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-right-radius:4px;border-bottom-left-radius:4px;margin-top:10px;padding:10px">
<h4 style="font-family:inherit;font-weight:500;line-height:36px;color:inherit;margin:0px;font-size:18px;background-color:rgb(246,246,246);background-image:linear-gradient(rgb(243,243,243) 0px,rgb(237,237,237) 100%);border-bottom-width:1px;border-bottom-style:solid;border-bottom-color:rgb(221,221,221);padding-left:10px;min-height:1.4em;border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-right-radius:0px;border-bottom-left-radius:0px;background-repeat:repeat no-repeat">
Text</h4>
<div style="margin:0px 10px;padding:0px 0px 10px">
<div style="background-color:rgb(246,246,246)!important;border:1px solid rgb(221,221,221);border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-right-radius:4px;border-bottom-left-radius:4px;margin-top:10px;padding:10px">
<div>
<div style="overflow:visible;background-color:white;padding:10px;border-width:1px 1px 0px;border-left-style:solid;border-left-color:rgb(221,221,221);border-top-style:solid;border-top-color:rgb(221,221,221);border-right-style:solid;border-right-color:rgb(221,221,221)">
<div>
<head xmlns:xlink="<a href="http://www.w3.org/1999/xlink" target="_blank">http://www.w3.<wbr>org/1999/xlink</a>" xmlns:xtf="<a href="http://cdlib.org/xtf" target="_blank">http://cdlib.org/<wbr>xtf</a>">Access Restrictions</head> The collection is without restrictions.</div>
</div>
<ul style="margin:0px;padding-left:0px;list-style:none;border-bottom-width:1px;border-bottom-style:solid;border-bottom-color:rgb(221,221,221)">
<li style="display:block;float:left">
<a href="http://localhost:8080/resources/191#resource_notes__3__subnotes__0__content__raw" title="The raw note content" style="background-color:rgb(255,255,255);color:rgb(85,85,85);text-decoration:none;display:block;padding:10px 15px;margin-right:2px;line-height:1.42857143;border-width:1px;border-style:solid;border-color:rgb(221,221,221) rgb(221,221,221) transparent;border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-right-radius:0px;border-bottom-left-radius:0px" target="_blank">Raw</a></li><li style="display:block;float:left">
<a href="http://localhost:8080/resources/191#resource_notes__3__subnotes__0__content__parsed" title="How the note will be rendered in the Public application" style="background-color:transparent;color:rgb(51,122,183);text-decoration:none;display:block;padding:10px 15px;margin-right:2px;line-height:1.42857143;border:1px solid transparent;border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-right-radius:0px;border-bottom-left-radius:0px" target="_blank">Formatted</a></li></ul>
</div>
</div>
</div>
</div>
</li></ul>
</div>
</section></div>
</div>
</li></ul>
<div><br>
</div>
</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div>Which on export produces this: </div>
<div><br>
</div>
<div>
<div style="margin:0px;font-size:12px;line-height:normal;font-family:Helvetica">
<span style="color:#021da7"><accessrestrict</span><span style="color:#f9975e"> id</span><span style="color:#ff9450">=</span><span style="color:#ab4500">"aspace_<wbr>ec37b6585f7b376a84ab03fdf54022<wbr>fd"</span><span style="color:#021da7">></span><br>
      <span style="color:#021da7"><head></span>Access Restrictions<span style="color:#021da7"></head></span><br>
      <span style="color:#021da7"><p><head </span><span style="color:rgb(0,170,214)">xmlns:xlink</span><span style="color:rgb(255,148,80)">=</span><span style="color:rgb(171,69,0)">"<a href="http://www.w3.org/1999/xlink" target="_blank">http://<wbr>www.w3.org/1999/xlink</a>"</span><span style="color:rgb(249,151,94)">
</span><span style="color:rgb(0,170,214)">xmlns:xtf</span><span style="color:rgb(255,148,80)">=</span><span style="color:rgb(171,69,0)">"<a href="http://cdlib.org/xtf" target="_blank">http://cdlib.org/<wbr>xtf</a>"</span><font color="#ab4500"> </font><span style="color:rgb(2,29,167)">></span>Access</div>
<div style="margin:0px;font-size:12px;line-height:normal;font-family:Helvetica">
          Restrictions<span style="color:#021da7"></head></span> The collection is without restrictions.<span style="color:#021da7"></p></span><br>
    <span style="color:#021da7"></accessrestrict></span></div>
</div>
<div style="margin:0px;font-size:12px;line-height:normal;font-family:Helvetica">
<span style="color:#021da7"><br>
</span></div>
<div style="margin:0px;font-size:12px;line-height:normal;font-family:Helvetica">
<span style="color:#021da7"><br>
</span></div>
<div style="margin:0px;font-size:12px;line-height:normal;font-family:Helvetica">
<span style="color:#021da7"><br>
</span></div>
<div style="margin:0px;font-size:12px;line-height:normal;font-family:Helvetica">
<span style="font-family:Menlo;font-size:14px">Which does not validate due to the nested: <head><p><head> </span></div>
<div style="margin:0px;line-height:normal">Two problems: duplicate head  and  head wrapped in <p> tag. </div>
<div style="margin:0px;line-height:normal"><br>
</div>
<div style="margin:0px;line-height:normal">Indiscriminate wrapping of content in <p> tags has been a commonly  seen problem. </div>
<div style="margin:0px;line-height:normal">I’m guessing it’s likely this duplicate <head> issue may occur in other types of notes as well. ( I will look for examples. ) </div>
<div style="margin:0px;line-height:normal"><br>
</div>
<div style="margin:0px;line-height:normal">Not sure of the best fix: The duplicate head issue should probably be caught on import. The paragraph wrapping would seem to be an output/serialization problem. </div>
<div style="margin:0px;line-height:normal"><br>
</div>
<div style="margin:0px;line-height:normal"><br>
</div>
<div style="margin:0px;line-height:normal">— Steve Majewski</div>
<div style="margin:0px;line-height:normal"><br>
</div>
<div style="margin:0px;line-height:normal"><br>
</div>
<div style="margin:0px;line-height:normal"><br>
</div>
<div style="margin:0px;font-size:12px;line-height:normal;font-family:Helvetica">
<br>
</div>
</div>

<br>______________________________<wbr>_________________<br>
Archivesspace_Users_Group mailing list<br>
<a href="mailto:Archivesspace_Users_Group@lyralists.lyrasis.org">Archivesspace_Users_Group@<wbr>lyralists.lyrasis.org</a><br>
<a href="http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group" rel="noreferrer" target="_blank">http://lyralists.lyrasis.org/<wbr>mailman/listinfo/<wbr>archivesspace_users_group</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>_________________________________<br></div><div><br><div>Lara D. Friedman-Shedlov<br>Kautz Family YMCA Archives | University of Minnesota Libraries<br><a href="mailto:ldfs@umn.edu" target="_blank">ldfs@umn.edu</a> |  612.626.7972 | <a href="http://www.lib.umn.edu/ymca" target="_blank">www.lib.umn.edu/ymca</a> | @yarchives<br>__________________________________</div></div></div></div>
</div>