<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
<div style="margin: 0px; font-size: 12pt; font-family: Calibri, Arial, Helvetica, sans-serif; color: black; background-color: white;">
Dear Christine and Mark,</div>
<div style="margin: 0px; font-size: 12pt; font-family: Calibri, Arial, Helvetica, sans-serif; color: black; background-color: white;">
<br>
Apologies for the delay in my response, and t<span style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt;">hank you both very much for clarifying this! I did not mean to impose with any of this as a bug report, and create any additional
 labor given that much of this work is already being considered for future sprints.</span><br>
</div>
<div style="margin: 0px; font-size: 12pt; font-family: Calibri, Arial, Helvetica, sans-serif; color: black; background-color: white;">
<br>
</div>
<div style="margin: 0px; font-size: 12pt; font-family: Calibri, Arial, Helvetica, sans-serif; color: black; background-color: white;">
I will definitely look to see about trying to add this custom option for "note_text". Thank you again.<br>
<br>
Sincerely,<br>
James</div>
</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> archivesspace_users_group-bounces@lyralists.lyrasis.org <archivesspace_users_group-bounces@lyralists.lyrasis.org> on behalf of Custer, Mark
 <mark.custer@yale.edu><br>
<b>Sent:</b> Friday, April 24, 2020 9:54 AM<br>
<b>To:</b> Archivesspace Users Group <archivesspace_users_group@lyralists.lyrasis.org><br>
<b>Subject:</b> Re: [Archivesspace_Users_Group] Request for Assistance with Troubleshooting EAC-CPF Exports for Agent Persons</font>
<div> </div>
</div>
<style type="text/css" style="display:none">
<!--
p
        {margin-top:0;
        margin-bottom:0}
-->
</style>
<div dir="ltr">
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Christine, that's great to hear!  It will be really nice to start using those options.</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
James, as for how to fix the issue presently, I just checked and you can indeed override the current exporter in a plugin. The main issue for why you're not seeing a bioghist note in your exports is due to this part of the the core code:  <a href="https://github.com/archivesspace/archivesspace/blob/master/backend/app/exporters/serializers/eac.rb#L113-L158" id="LPlnk563635">https://github.com/archivesspace/archivesspace/blob/master/backend/app/exporters/serializers/eac.rb#L113-L158</a></div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
The issue is that the default sub note that ASpace uses when you create a bioghist note is a sub note with a type of "note_text".  But that "note_text" type is not one of the sub note options in the exporter, and there's no else clause in the above case statement.
  So, you could either add an option for "note_text" to export that data to paragraph tags, or you could add a catch all that would pick up those note_text sub notes.   That said, there would be other things ArchivesSpace would need to do to ensure valid EAC
 bioghist notes, since right now EAC specifies that an abstract element would have to be the first child element of a biogHist note if it's available.  But, the ASpace exporter is just going to put those notes in the order the they're entered.</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
I hope that helps,</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Mark</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div id="x_appendonsend"></div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="x_divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> archivesspace_users_group-bounces@lyralists.lyrasis.org <archivesspace_users_group-bounces@lyralists.lyrasis.org> on behalf of Christine
 Di Bella <christine.dibella@lyrasis.org><br>
<b>Sent:</b> Friday, April 24, 2020 9:12 AM<br>
<b>To:</b> Archivesspace Users Group <archivesspace_users_group@lyralists.lyrasis.org><br>
<b>Subject:</b> Re: [Archivesspace_Users_Group] Request for Assistance with Troubleshooting EAC-CPF Exports for Agent Persons</font>
<div> </div>
</div>
<style>
<!--
@font-face
        {font-family:"Cambria Math"}
@font-face
        {font-family:Calibri}
p.x_x_MsoNormal, li.x_x_MsoNormal, div.x_x_MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif}
a:link, span.x_x_MsoHyperlink
        {color:blue;
        text-decoration:underline}
span.x_x_EmailStyle20
        {font-family:"Calibri",sans-serif;
        color:windowtext}
.x_x_MsoChpDefault
        {font-size:10.0pt}
@page WordSection1
        {margin:1.0in 1.0in 1.0in 1.0in}
-->
</style>
<div lang="EN-US">
<div class="x_x_WordSection1">
<p class="x_x_MsoNormal">Hi all,</p>
<p class="x_x_MsoNormal"> </p>
<p class="x_x_MsoNormal">Updating the EAC-CPF exporter very substantially is part of the work that’s currently happening for the expansion to the agents module. In fact, the test branch Mark points to (<a href="https://nam05.safelinks.protection.outlook.com/?url=http%3A%2F%2Faspace-anw-429.lyrtech.org%2F)&data=02%7C01%7Cmark.custer%40yale.edu%7Cb66edc0a3f884a21330308d7e85129ef%7Cdd8cbebb21394df8b4114e3e87abeb5c%7C0%7C0%7C637233307602160562&sdata=X3nCpGCtB0uZ9tj83gsKMW%2FDL15mBmw497Fs1ozeRwc%3D&reserved=0" originalsrc="http://aspace-anw-429.lyrtech.org/)" shash="IpSETEkwM+s8i8wXVrSaaX7DaM3vIQDbn6TLOmh/dIE4T+78T7cHRqj2FrBOYRE8T8Ja/VjyzR7wxYE+TkH3UaEJil2gcUKF8qvXpPvui2UHBAEFVrJXXV8lYvb0PKBjxDThh1946YFzfMyDt4eR1vZ8WtBeh098ySG5eSxtnpI=">http://aspace-anw-429.lyrtech.org/)</a>
 already has some of the changes to the import side (not complete yet, however), and the export side is next. If anyone’s interested in looking or commenting on the map we’re working off of, it’s available at
<a href="https://nam05.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdrive.google.com%2Ffile%2Fd%2F1F0RCwl9ZXRoUnT2C6ICuVW42hogzL7RX%2Fview%3Fusp%3Dsharing&data=02%7C01%7Cmark.custer%40yale.edu%7Cb66edc0a3f884a21330308d7e85129ef%7Cdd8cbebb21394df8b4114e3e87abeb5c%7C0%7C0%7C637233307602170571&sdata=DThDJQ1ZJkVvA3Lqs53J1V1L4nsDs33CcrqesFqEOdU%3D&reserved=0" originalsrc="https://drive.google.com/file/d/1F0RCwl9ZXRoUnT2C6ICuVW42hogzL7RX/view?usp=sharing" shash="wwAmrpKqJHhsS494NJ28vh4Cq3R3JbB05IevhOiSqDa3by849Zf1uzCwmbqx471Vn/7kllF86WQRAPr7GT4qj4OgtNXdsb9Raa51/Rr5d2CQDOAyAZMZxmb5WJVaBF+3lFXqfcWy4207GTanJQW9UEb2EXVrLuBLxFJVra2EcVA=">
https://drive.google.com/file/d/1F0RCwl9ZXRoUnT2C6ICuVW42hogzL7RX/view?usp=sharing</a>. All comments and testing for this work in progress very much welcome!</p>
<p class="x_x_MsoNormal"> </p>
<p class="x_x_MsoNormal">Christine</p>
<p class="x_x_MsoNormal"> </p>
<p class="x_x_MsoNormal"><span style="font-family:"Arial",sans-serif; color:#1F497D">Christine Di Bella</span></p>
<p class="x_x_MsoNormal"><span style="font-family:"Arial",sans-serif; color:#1F497D">ArchivesSpace Program Manager</span></p>
<p class="x_x_MsoNormal"><span style="font-family:"Arial",sans-serif; color:#1F497D"><a href="mailto:christine.dibella@lyrasis.org"><span style="color:#0563C1">christine.dibella@lyrasis.org</span></a></span></p>
<p class="x_x_MsoNormal"><span style="font-family:"Arial",sans-serif; color:#1F497D">800.999.8558 x2905</span></p>
<p class="x_x_MsoNormal"><span style="font-family:"Arial",sans-serif; color:#1F497D">678-235-2905</span></p>
<p class="x_x_MsoNormal"><span style="font-family:"Arial",sans-serif; color:#1F497D">cdibella13 (Skype)</span><span style="color:#1F497D"></span></p>
<p class="x_x_MsoNormal"> </p>
<p class="x_x_MsoNormal"><img border="0" width="267" height="61" id="x_x_Picture_x0020_1" alt="ASpaceOrgHomeMedium" style="width:2.7777in; height:.6388in" data-outlook-trace="F:2|T:2" src="cid:image003.jpg@01D61A18.7C617F70"></p>
<p class="x_x_MsoNormal"> </p>
<p class="x_x_MsoNormal"> </p>
<p class="x_x_MsoNormal"> </p>
<div>
<div style="border:none; border-top:solid #E1E1E1 1.0pt; padding:3.0pt 0in 0in 0in">
<p class="x_x_MsoNormal"><b>From:</b> archivesspace_users_group-bounces@lyralists.lyrasis.org <archivesspace_users_group-bounces@lyralists.lyrasis.org>
<b>On Behalf Of </b>Custer, Mark<br>
<b>Sent:</b> Friday, April 24, 2020 9:05 AM<br>
<b>To:</b> Archivesspace Users Group <archivesspace_users_group@lyralists.lyrasis.org><br>
<b>Subject:</b> Re: [Archivesspace_Users_Group] Request for Assistance with Troubleshooting EAC-CPF Exports for Agent Persons</p>
</div>
</div>
<p class="x_x_MsoNormal"> </p>
<div>
<p class="x_x_MsoNormal"><span style="font-size:12.0pt; color:black">James,</span></p>
</div>
<div>
<p class="x_x_MsoNormal"><span style="font-size:12.0pt; color:black"> </span></p>
</div>
<div>
<p class="x_x_MsoNormal"><span style="font-size:12.0pt; color:black">I haven't had a chance to look into this, but my hunch is that the issue would reside in ArchivesSpace's EAC exporter, not your database. The EAC importer and exporter in ArchivesSpace aren't
 really finished; you can never (for instance) export a valid EAC record, regardless of the data!</span></p>
</div>
<div>
<p class="x_x_MsoNormal"><span style="font-size:12.0pt; color:black"> </span></p>
</div>
<div>
<p class="x_x_MsoNormal"><span style="font-size:12.0pt; color:black">I'll try to look into it later today or next week, but I suspect that if you want to export any EAC records from ASpace, then you'll need to use a plugin for that for now.  I'm not sure if
 the issue of EAC imports/exports is part of the updates to agent records (see <a href="https://nam05.safelinks.protection.outlook.com/?url=http%3A%2F%2Faspace-anw-429.lyrtech.org%2F&data=02%7C01%7Cmark.custer%40yale.edu%7Cb66edc0a3f884a21330308d7e85129ef%7Cdd8cbebb21394df8b4114e3e87abeb5c%7C0%7C0%7C637233307602180557&sdata=wKbjw1N9vi4FglDfCTIps6AdsdsdIrxH507lTcrOv%2Bk%3D&reserved=0" originalsrc="http://aspace-anw-429.lyrtech.org/" shash="HYXscxPjdkfVTR+WPQFLRsL49ERHvCSIzGTdofRBFjxJBtx7xN9FKy1T70LjzpB7Te6O3blhGSPSzM9lj12buwjirNWon9usUOjwRtH7KoV00RjQVVdUIzTAYatVhGj4n+muia3y1+imrePuxEOXBAShbTNQJMC3KsgawX/6JGw=">http://aspace-anw-429.lyrtech.org/</a>),
 but I quickly tested imports into that test application a while back and I didn't note any differences from the original EAC importer, so I suspect not.</span></p>
</div>
<div>
<p class="x_x_MsoNormal"><span style="font-size:12.0pt; color:black"> </span></p>
</div>
<div>
<p class="x_x_MsoNormal"><span style="font-size:12.0pt; color:black">Mark</span></p>
</div>
<div>
<p class="x_x_MsoNormal"><span style="font-size:12.0pt; color:black"> </span></p>
</div>
<div>
<p class="x_x_MsoNormal"><span style="font-size:12.0pt; color:black"> </span></p>
</div>
<div class="x_x_MsoNormal" align="center" style="text-align:center">
<hr size="2" width="98%" align="center">
</div>
<div id="x_x_divRplyFwdMsg">
<p class="x_x_MsoNormal"><b><span style="color:black">From:</span></b><span style="color:black">
<a href="mailto:archivesspace_users_group-bounces@lyralists.lyrasis.org">archivesspace_users_group-bounces@lyralists.lyrasis.org</a> <<a href="mailto:archivesspace_users_group-bounces@lyralists.lyrasis.org">archivesspace_users_group-bounces@lyralists.lyrasis.org</a>>
 on behalf of James R Griffin III <<a href="mailto:jrg5@princeton.edu">jrg5@princeton.edu</a>><br>
<b>Sent:</b> Friday, April 24, 2020 8:45 AM<br>
<b>To:</b> Archivesspace Users Group <<a href="mailto:archivesspace_users_group@lyralists.lyrasis.org">archivesspace_users_group@lyralists.lyrasis.org</a>><br>
<b>Subject:</b> Re: [Archivesspace_Users_Group] Request for Assistance with Troubleshooting EAC-CPF Exports for Agent Persons</span>
</p>
<div>
<p class="x_x_MsoNormal"> </p>
</div>
</div>
<div>
<div>
<p class="x_x_MsoNormal" style="background:white"><span style="font-size:12.0pt; color:black">Dear Joshua,</span></p>
</div>
<div>
<p class="x_x_MsoNormal" style="background:white"><span style="font-size:12.0pt; color:black"> </span></p>
</div>
<div>
<p class="x_x_MsoNormal" style="background:white"><span style="font-size:12.0pt; color:black">Thank you very much for this, but unfortunately, the bioghist note (and its single subnote) are both marked as explicitly published, and I am still not finding the
 export in the EAC Document.</span></p>
</div>
<div>
<p class="x_x_MsoNormal" style="background:white"><span style="font-size:12.0pt; color:black"> </span></p>
</div>
<div>
<p class="x_x_MsoNormal" style="background:white"><span style="font-size:12.0pt; color:black">I will proceed by seeing if maybe there are duplicate or problematic entries in the RDBMS backend.</span></p>
</div>
<div>
<p class="x_x_MsoNormal" style="background:white"><span style="font-size:12.0pt; color:black"> </span></p>
</div>
<div>
<p class="x_x_MsoNormal" style="background:white"><span style="font-size:12.0pt; color:black">Best regards,</span></p>
</div>
<div>
<p class="x_x_MsoNormal" style="background:white"><span style="font-size:12.0pt; color:black">James</span></p>
</div>
<div class="x_x_MsoNormal" align="center" style="text-align:center">
<hr size="2" width="98%" align="center">
</div>
<div id="x_x_x_divRplyFwdMsg">
<p class="x_x_MsoNormal"><b><span style="color:black">From:</span></b><span style="color:black">
<a href="mailto:archivesspace_users_group-bounces@lyralists.lyrasis.org">archivesspace_users_group-bounces@lyralists.lyrasis.org</a> <<a href="mailto:archivesspace_users_group-bounces@lyralists.lyrasis.org">archivesspace_users_group-bounces@lyralists.lyrasis.org</a>>
 on behalf of Joshua D. Shaw <<a href="mailto:Joshua.D.Shaw@dartmouth.edu">Joshua.D.Shaw@dartmouth.edu</a>><br>
<b>Sent:</b> Thursday, April 23, 2020 12:27 PM<br>
<b>To:</b> Archivesspace Users Group <<a href="mailto:archivesspace_users_group@lyralists.lyrasis.org">archivesspace_users_group@lyralists.lyrasis.org</a>><br>
<b>Subject:</b> Re: [Archivesspace_Users_Group] Request for Assistance with Troubleshooting EAC-CPF Exports for Agent Persons</span>
</p>
<div>
<p class="x_x_MsoNormal"> </p>
</div>
</div>
<div>
<div>
<p class="x_x_MsoNormal"><span style="font-size:12.0pt; color:black">Hey James-</span></p>
</div>
<div>
<p class="x_x_MsoNormal"><span style="font-size:12.0pt; color:black"> </span></p>
</div>
<div>
<p class="x_x_MsoNormal"><span style="font-size:12.0pt; color:black">Are the bioghist note(s) published - including any subnotes? Only bioghist notes and their subnotes will get added to the EAC if published.</span></p>
</div>
<div>
<p class="x_x_MsoNormal"><span style="font-size:12.0pt; color:black"> </span></p>
</div>
<div>
<p class="x_x_MsoNormal"><span style="font-size:12.0pt; color:black">Joshua</span></p>
</div>
<div>
<div>
<p class="x_x_MsoNormal"><span style="font-size:12.0pt; color:black"> </span></p>
</div>
<div class="x_x_MsoNormal" align="center" style="text-align:center">
<hr size="2" width="98%" align="center">
</div>
<div id="x_x_x_x_divRplyFwdMsg">
<p class="x_x_MsoNormal"><b><span style="color:black">From:</span></b><span style="color:black">
<a href="mailto:archivesspace_users_group-bounces@lyralists.lyrasis.org">archivesspace_users_group-bounces@lyralists.lyrasis.org</a> <<a href="mailto:archivesspace_users_group-bounces@lyralists.lyrasis.org">archivesspace_users_group-bounces@lyralists.lyrasis.org</a>>
 on behalf of James R Griffin III <<a href="mailto:jrg5@princeton.edu">jrg5@princeton.edu</a>><br>
<b>Sent:</b> Thursday, April 23, 2020 12:13 PM<br>
<b>To:</b> Archivesspace Users Group <<a href="mailto:archivesspace_users_group@lyralists.lyrasis.org">archivesspace_users_group@lyralists.lyrasis.org</a>><br>
<b>Subject:</b> [Archivesspace_Users_Group] Request for Assistance with Troubleshooting EAC-CPF Exports for Agent Persons</span>
</p>
<div>
<p class="x_x_MsoNormal"> </p>
</div>
</div>
<div>
<div>
<p class="x_x_MsoNormal" style="background:white"><span style="font-size:12.0pt; color:black">Hello Everyone,</span></p>
</div>
<div>
<p class="x_x_MsoNormal" style="background:white"><span style="font-size:12.0pt; color:black"> </span></p>
</div>
<div>
<p class="x_x_MsoNormal" style="background:white"><span style="font-size:12.0pt; color:black">Apologies in advance for any trouble, but I am currently experiencing difficulty attempting to export an EAC-CPF record. Currently there are "Notes" which exist within
 the database record for the Agent Person (I have verified that these exist in the `note` table within the relational database), but these are not being exported into a EAC-CPF document.</span></p>
</div>
<div>
<p class="x_x_MsoNormal" style="background:white"><span style="font-size:12.0pt; color:black"> </span></p>
</div>
<div>
<p class="x_x_MsoNormal" style="background:white"><span style="font-size:12.0pt; color:black">I believe that the area of the code base where this is found is in: <a href="https://nam05.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Farchivesspace%2Farchivesspace%2Fblob%2Fmaster%2Fbackend%2Fapp%2Fexporters%2Fserializers%2Feac.rb%23L109&data=02%7C01%7Cmark.custer%40yale.edu%7Cb66edc0a3f884a21330308d7e85129ef%7Cdd8cbebb21394df8b4114e3e87abeb5c%7C0%7C0%7C637233307602180557&sdata=lcmx1%2BM%2Bfh%2FGVWu6lKBJCgRmKnd3XEPcMI5VdbYF30U%3D&reserved=0" originalsrc="https://github.com/archivesspace/archivesspace/blob/master/backend/app/exporters/serializers/eac.rb#L109" shash="VMaw73F6Tbm/3I4frJMWJtncUpq1l44kmWnEBTkX4Cn++7KkeIMr1YvXbq2ancMFMUiM2ht93LfU67B/tv1xgPfqqV60En3NILYpXwlKiYWc5GYwGadTWN0Wvyk+RbYsKweGbcUN1qcWKOhld5aDPZmuOZuhZK4G8Ar+DVCou7Y=">https://github.com/archivesspace/archivesspace/blob/master/backend/app/exporters/serializers/eac.rb#L109</a></span></p>
</div>
<div>
<p class="x_x_MsoNormal" style="background:white"><span style="font-size:12.0pt; color:black"> </span></p>
</div>
<div>
<p class="x_x_MsoNormal" style="background:white"><span style="font-size:12.0pt; color:black">Please let me know if I can provide any further information. Thank you very much for your attention.</span></p>
</div>
<div>
<div>
<p class="x_x_MsoNormal"><span style="font-size:12.0pt; color:black"> </span></p>
</div>
<div id="x_x_x_x_x_Signature">
<div>
<p><span style="color:black">Sincerely,</span></p>
<p><span style="color:black">James</span></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>