<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>
<div class="">Thanks: No attributes in that example, but namespace pseudo-attributes may be causing the same problem. </div>
<div class="">( My pre-flight stylesheet removes empty attributes but appears to leave the namespace declarations. ) </div>
<div class=""><br class="">
</div>
<div class="">— Steve Majewski</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
<br class="">
<div>
<blockquote type="cite" class="">
<div class="">On Sep 29, 2016, at 5:25 PM, Lara Friedman-Shedlov <<a href="mailto:ldfs@umn.edu" class="">ldfs@umn.edu</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div dir="ltr" class="">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 class=""><br class="">
</div>
<div class=""><br class="">
</div>
</div>
<div class="gmail_extra"><br class="">
<div class="gmail_quote">On Thu, Sep 29, 2016 at 4:20 PM, Majewski, Steven Dennis (sdm7g)
<span dir="ltr" class=""><<a href="mailto:sdm7g@eservices.virginia.edu" target="_blank" class="">sdm7g@eservices.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=""><br class="">
</div>
I noticed that importing EAD with this accessrestrict element:<br class="">
<div class=""><br class="">
</div>
<div class="">
<div style="margin:0px;font-size:12px;line-height:normal;font-family:Helvetica" class="">
<span style="color:#021da7" class=""><accessrestrict></span><br class="">
<span style="color:#021da7" class=""><head </span><span style="color:rgb(0,170,214)" class="">xmlns:xlink</span><span style="color:rgb(255,148,80)" class="">=</span><span style="color:rgb(171,69,0)" class="">"<a href="http://www.w3.org/1999/xlink" target="_blank" class="">http://<wbr class="">www.w3.org/1999/xlink</a>"</span><span style="color:rgb(249,151,94)" class="">
</span><span style="color:rgb(0,170,214)" class="">xmlns:xtf</span><span style="color:rgb(255,148,80)" class="">=</span><span style="color:rgb(171,69,0)" class="">"<a href="http://cdlib.org/xtf" target="_blank" class="">http://cdlib.org/<wbr class="">xtf</a>"</span><span style="color:rgb(2,29,167)" class="">></span>Access
Restrictions<span style="color:rgb(2,29,167)" class=""></head></span></div>
<div style="margin:0px;font-size:12px;line-height:normal;font-family:Helvetica" class="">
<span style="color:#021da7" class=""><p></span>The collection is without restrictions.<span style="color:#021da7" class=""></p></span><br class="">
<span style="color:#021da7" class=""></accessrestrict></span></div>
</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
<div class="">Produces this in ArchivesSpace (1.5.1):</div>
<div class=""><br class="">
</div>
<div class="">
<ul style="margin:0px;color:rgb(51,51,51);font-family:'Helvetica Neue',Helvetica,Arial,sans-serif" class="">
<li style="list-style:none" class="">
<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" class="">
<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" class="">
Conditions Governing Access</h4>
<div style="margin:0px 10px;padding:0px 0px 10px" class="">
<div style="margin:0px!important;padding:4px 0px" class=""><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" class="">Persistent
ID</label>
<div style="min-height:1px;padding-left:15px;padding-right:15px;float:left;width:585.375px;padding-top:7px" class="">
ec37b6585f7b376a84ab03fdf54022<wbr class="">fd</div>
</div>
<div style="margin:0px!important;padding:4px 0px" class=""><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" class="">Label</label>
<div style="min-height:1px;padding-left:15px;padding-right:15px;float:left;width:585.375px;padding-top:7px" class="">
Access Restrictions</div>
</div>
<div style="margin:0px!important;padding:4px 0px" class=""><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" class="">Type</label>
<div style="min-height:1px;padding-left:15px;padding-right:15px;float:left;width:260.15625px;padding-top:7px" class="">
Conditions Governing Access</div>
</div>
<div style="margin:0px!important;padding:4px 0px" class=""><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" class="">Publish?</label>
<div style="min-height:1px;padding-left:15px;padding-right:15px;float:left;width:65.03125px;padding-top:7px" class="">
True</div>
</div>
<section style="margin:0px 20px" class="">
<div class=""><label title="" style="display:inline-block;max-width:100%;margin-bottom:0px;text-align:right;padding-top:7px" class="">Local Access Restriction Type</label>
<div class="">
<ul style="margin-top:0px;margin-bottom:0px" class="">
</ul>
</div>
</div>
</section><section style="clear:both;margin:10px 0px;background-color:rgb(250,250,250)" class="">
<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" class="">
Sub Notes</h5>
<div style="margin:0px 10px;padding:0px 0px 10px" class="">
<ul style="margin:0px" class="">
<li style="list-style:none" class="">
<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" class="">
<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" class="">
Text</h4>
<div style="margin:0px 10px;padding:0px 0px 10px" class="">
<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" class="">
<div class="">
<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)" class="">
<div class=""><head xmlns:xlink="<a href="http://www.w3.org/1999/xlink" target="_blank" class="">http://www.w3.<wbr class="">org/1999/xlink</a>" xmlns:xtf="<a href="http://cdlib.org/xtf" target="_blank" class="">http://cdlib.org/<wbr class="">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)" class="">
<li style="display:block;float:left" class=""><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" class="">Raw</a></li><li style="display:block;float:left" class=""><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" class="">Formatted</a></li></ul>
</div>
</div>
</div>
</div>
</li></ul>
</div>
</section></div>
</div>
</li></ul>
<div class=""><br class="">
</div>
</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
<div class="">Which on export produces this: </div>
<div class=""><br class="">
</div>
<div class="">
<div style="margin:0px;font-size:12px;line-height:normal;font-family:Helvetica" class="">
<span style="color:#021da7" class=""><accessrestrict</span><span style="color:#f9975e" class=""> id</span><span style="color:#ff9450" class="">=</span><span style="color:#ab4500" class="">"aspace_<wbr class="">ec37b6585f7b376a84ab03fdf54022<wbr class="">fd"</span><span style="color:#021da7" class="">></span><br class="">
<span style="color:#021da7" class=""><head></span>Access Restrictions<span style="color:#021da7" class=""></head></span><br class="">
<span style="color:#021da7" class=""><p><head </span><span style="color:rgb(0,170,214)" class="">xmlns:xlink</span><span style="color:rgb(255,148,80)" class="">=</span><span style="color:rgb(171,69,0)" class="">"<a href="http://www.w3.org/1999/xlink" target="_blank" class="">http://<wbr class="">www.w3.org/1999/xlink</a>"</span><span style="color:rgb(249,151,94)" class="">
</span><span style="color:rgb(0,170,214)" class="">xmlns:xtf</span><span style="color:rgb(255,148,80)" class="">=</span><span style="color:rgb(171,69,0)" class="">"<a href="http://cdlib.org/xtf" target="_blank" class="">http://cdlib.org/<wbr class="">xtf</a>"</span><font color="#ab4500" class=""> </font><span style="color:rgb(2,29,167)" class="">></span>Access</div>
<div style="margin:0px;font-size:12px;line-height:normal;font-family:Helvetica" class="">
Restrictions<span style="color:#021da7" class=""></head></span> The collection is without restrictions.<span style="color:#021da7" class=""></p></span><br class="">
<span style="color:#021da7" class=""></accessrestrict></span></div>
</div>
<div style="margin:0px;font-size:12px;line-height:normal;font-family:Helvetica" class="">
<span style="color:#021da7" class=""><br class="">
</span></div>
<div style="margin:0px;font-size:12px;line-height:normal;font-family:Helvetica" class="">
<span style="color:#021da7" class=""><br class="">
</span></div>
<div style="margin:0px;font-size:12px;line-height:normal;font-family:Helvetica" class="">
<span style="color:#021da7" class=""><br class="">
</span></div>
<div style="margin:0px;font-size:12px;line-height:normal;font-family:Helvetica" class="">
<span style="font-family:Menlo;font-size:14px" class="">Which does not validate due to the nested: <head><p><head> </span></div>
<div style="margin:0px;line-height:normal" class="">Two problems: duplicate head and head wrapped in <p> tag. </div>
<div style="margin:0px;line-height:normal" class=""><br class="">
</div>
<div style="margin:0px;line-height:normal" class="">Indiscriminate wrapping of content in <p> tags has been a commonly seen problem. </div>
<div style="margin:0px;line-height:normal" class="">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" class=""><br class="">
</div>
<div style="margin:0px;line-height:normal" class="">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" class=""><br class="">
</div>
<div style="margin:0px;line-height:normal" class=""><br class="">
</div>
<div style="margin:0px;line-height:normal" class="">— Steve Majewski</div>
<div style="margin:0px;line-height:normal" class=""><br class="">
</div>
<div style="margin:0px;line-height:normal" class=""><br class="">
</div>
<div style="margin:0px;line-height:normal" class=""><br class="">
</div>
<div style="margin:0px;font-size:12px;line-height:normal;font-family:Helvetica" class="">
<br class="">
</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="">_________________________________<br class="">
</div>
<div class=""><br class="">
<div class="">Lara D. Friedman-Shedlov<br class="">
Kautz Family YMCA Archives | University of Minnesota Libraries<br class="">
<a href="mailto:ldfs@umn.edu" target="_blank" class="">ldfs@umn.edu</a> | 612.626.7972 |
<a href="http://www.lib.umn.edu/ymca" target="_blank" class="">www.lib.umn.edu/ymca</a> | @yarchives<br class="">
__________________________________</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>