<div dir="ltr">Hi Patrick,<div>I believe you'd have to modify the ead_converter.rb and add: :publish => att('audience') != 'internal' in the relevant sections of the converter that deal with the types of notes you're bringing in and load it as a plugin. If these are all general notes (<odd>), you'd need to do something like:<br><br><div> %w(accessrestrict accessrestrict/legalstatus \</div><div> accruals acqinfo altformavail appraisal arrangement \</div><div> bioghist custodhist dimensions \</div><div> fileplan odd otherfindaid originalsloc phystech \</div><div> prefercite processinfo relatedmaterial scopecontent \</div><div> separatedmaterial userestrict ).each do |note|</div><div> with note do |node|</div><div> content = inner_xml.tap {|xml|</div><div> xml.sub!(/<head>.*?<\/head>/m, '')</div><div> # xml.sub!(/<list [^>]*>.*?<\/list>/m, '')</div><div> # xml.sub!(/<chronlist [^>]*>.*<\/chronlist>/m, '')</div><div> }</div><div><br></div><div> make :note_multipart, {</div><div> :type => <a href="http://node.name">node.name</a>,</div><div> :persistent_id => att('id'),</div><div><span style="white-space:pre"> </span>:publish => att('audience') != 'internal' <---- add this at line 324 in the file.</div><div> :subnotes => {</div><div> 'jsonmodel_type' => 'note_text',</div><div> 'content' => format_content( content )</div><div> }</div><div> } do |note|</div><div> set ancestor(:resource, :archival_object), :notes, note</div><div> end</div><div> end </div><div> end</div></div><div><br></div><div>I did something like this for agent creation and it worked so you can try it with the notes and see if it helps!</div><div><br></div><div>-Maura</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Apr 8, 2015 at 4:36 PM, Galligan, Patrick <span dir="ltr"><<a href="mailto:PGalligan@rockarch.org" target="_blank">PGalligan@rockarch.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div lang="EN-US" link="blue" vlink="purple"><div><p class="MsoNormal">Hi all,<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">I’ve been experimenting with EAD import into AS for a collection of about 50,000 components, and I had a few questions about having the system publish notes.<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Each component has a few notes attached to it, some that we want published, and some that we don’t. I assumed that AS would default to publishing notes without audience=”internal,” but that does not appear to be the case.<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Some guidance on how to get the system to publish specific notes through EAD import would be appreciated if anyone has experience with that. We don’t do much EAD importing into the system here, so I don’t have tons of experience getting this to work.<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Thanks!<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Patrick Galligan<u></u><u></u></p><p class="MsoNormal">Rockefeller Archive Center<u></u><u></u></p><p class="MsoNormal">Assistant Digital Archivist<u></u><u></u></p><p class="MsoNormal"><a href="tel:914-366-6386" value="+19143666386" target="_blank">914-366-6386</a><u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p></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" target="_blank">http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr">Maura Carbone<div>Digital Initiatives Librarian<br>Brandeis University<br>Library and Technology Services<br>(781) 736-4659<br>415 South Street, (MS 017/P.O. Box 549110)<br>Waltham, MA 02454-9110<br>email: <a href="mailto:mauraa@brandeis.edu" target="_blank">mauraa@brandeis.edu</a><br></div></div></div>
</div>