[Archivesspace_Users_Group] Request for Assistance with Troubleshooting EAC-CPF Exports for Agent Persons

James R Griffin III jrg5 at princeton.edu
Thu May 7 10:19:18 EDT 2020


Dear Christine and Mark,

Apologies for the delay in my response, and thank 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.

I will definitely look to see about trying to add this custom option for "note_text". Thank you again.

Sincerely,
James
________________________________
From: archivesspace_users_group-bounces at lyralists.lyrasis.org <archivesspace_users_group-bounces at lyralists.lyrasis.org> on behalf of Custer, Mark <mark.custer at yale.edu>
Sent: Friday, April 24, 2020 9:54 AM
To: Archivesspace Users Group <archivesspace_users_group at lyralists.lyrasis.org>
Subject: Re: [Archivesspace_Users_Group] Request for Assistance with Troubleshooting EAC-CPF Exports for Agent Persons

Christine, that's great to hear!  It will be really nice to start using those options.

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:  https://github.com/archivesspace/archivesspace/blob/master/backend/app/exporters/serializers/eac.rb#L113-L158

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.

I hope that helps,

Mark



________________________________
From: archivesspace_users_group-bounces at lyralists.lyrasis.org <archivesspace_users_group-bounces at lyralists.lyrasis.org> on behalf of Christine Di Bella <christine.dibella at lyrasis.org>
Sent: Friday, April 24, 2020 9:12 AM
To: Archivesspace Users Group <archivesspace_users_group at lyralists.lyrasis.org>
Subject: Re: [Archivesspace_Users_Group] Request for Assistance with Troubleshooting EAC-CPF Exports for Agent Persons


Hi all,



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 (http://aspace-anw-429.lyrtech.org/)<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> 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 https://drive.google.com/file/d/1F0RCwl9ZXRoUnT2C6ICuVW42hogzL7RX/view?usp=sharing<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>. All comments and testing for this work in progress very much welcome!



Christine



Christine Di Bella

ArchivesSpace Program Manager

christine.dibella at lyrasis.org<mailto:christine.dibella at lyrasis.org>

800.999.8558 x2905

678-235-2905

cdibella13 (Skype)



[ASpaceOrgHomeMedium]







From: archivesspace_users_group-bounces at lyralists.lyrasis.org <archivesspace_users_group-bounces at lyralists.lyrasis.org> On Behalf Of Custer, Mark
Sent: Friday, April 24, 2020 9:05 AM
To: Archivesspace Users Group <archivesspace_users_group at lyralists.lyrasis.org>
Subject: Re: [Archivesspace_Users_Group] Request for Assistance with Troubleshooting EAC-CPF Exports for Agent Persons



James,



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!



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 http://aspace-anw-429.lyrtech.org/<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>), 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.



Mark





________________________________

From: archivesspace_users_group-bounces at lyralists.lyrasis.org<mailto:archivesspace_users_group-bounces at lyralists.lyrasis.org> <archivesspace_users_group-bounces at lyralists.lyrasis.org<mailto:archivesspace_users_group-bounces at lyralists.lyrasis.org>> on behalf of James R Griffin III <jrg5 at princeton.edu<mailto:jrg5 at princeton.edu>>
Sent: Friday, April 24, 2020 8:45 AM
To: Archivesspace Users Group <archivesspace_users_group at lyralists.lyrasis.org<mailto:archivesspace_users_group at lyralists.lyrasis.org>>
Subject: Re: [Archivesspace_Users_Group] Request for Assistance with Troubleshooting EAC-CPF Exports for Agent Persons



Dear Joshua,



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.



I will proceed by seeing if maybe there are duplicate or problematic entries in the RDBMS backend.



Best regards,

James

________________________________

From: archivesspace_users_group-bounces at lyralists.lyrasis.org<mailto:archivesspace_users_group-bounces at lyralists.lyrasis.org> <archivesspace_users_group-bounces at lyralists.lyrasis.org<mailto:archivesspace_users_group-bounces at lyralists.lyrasis.org>> on behalf of Joshua D. Shaw <Joshua.D.Shaw at dartmouth.edu<mailto:Joshua.D.Shaw at dartmouth.edu>>
Sent: Thursday, April 23, 2020 12:27 PM
To: Archivesspace Users Group <archivesspace_users_group at lyralists.lyrasis.org<mailto:archivesspace_users_group at lyralists.lyrasis.org>>
Subject: Re: [Archivesspace_Users_Group] Request for Assistance with Troubleshooting EAC-CPF Exports for Agent Persons



Hey James-



Are the bioghist note(s) published - including any subnotes? Only bioghist notes and their subnotes will get added to the EAC if published.



Joshua



________________________________

From: archivesspace_users_group-bounces at lyralists.lyrasis.org<mailto:archivesspace_users_group-bounces at lyralists.lyrasis.org> <archivesspace_users_group-bounces at lyralists.lyrasis.org<mailto:archivesspace_users_group-bounces at lyralists.lyrasis.org>> on behalf of James R Griffin III <jrg5 at princeton.edu<mailto:jrg5 at princeton.edu>>
Sent: Thursday, April 23, 2020 12:13 PM
To: Archivesspace Users Group <archivesspace_users_group at lyralists.lyrasis.org<mailto:archivesspace_users_group at lyralists.lyrasis.org>>
Subject: [Archivesspace_Users_Group] Request for Assistance with Troubleshooting EAC-CPF Exports for Agent Persons



Hello Everyone,



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.



I believe that the area of the code base where this is found is in: https://github.com/archivesspace/archivesspace/blob/master/backend/app/exporters/serializers/eac.rb#L109<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>



Please let me know if I can provide any further information. Thank you very much for your attention.



Sincerely,

James
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lyralists.lyrasis.org/pipermail/archivesspace_users_group/attachments/20200507/09b4c447/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image003.jpg
Type: image/jpeg
Size: 6608 bytes
Desc: image003.jpg
URL: <http://lyralists.lyrasis.org/pipermail/archivesspace_users_group/attachments/20200507/09b4c447/attachment.jpg>


More information about the Archivesspace_Users_Group mailing list