[Archivesspace_Users_Group] Detailed data map for LCNAF plug-in?

Majewski, Steven Dennis (sdm7g) sdm7g at virginia.edu
Thu May 26 15:48:47 EDT 2022


I haven’t looked at the code since before 3.0, and I can see there have been a bunch of changes since, but although the code has changed, it looks like the basic structure stays roughly the same. 

Start at the LCNAF plugin controller:

https://github.com/archivesspace/archivesspace/blob/master/plugins/lcnaf/frontend/controllers/lcnaf_controller.rb

And you will see that it sets up a batch converter job, depending on whether it’s importing subjects or agents:

 # agents are processed by MarcXMLAuthAgentConverter introduced in ANW-429
 # subjects are processed by MarcXMLBibConverter as before ANW-429


Batch jobs like converters and exporters get dispatched to the backend service, so look for those in:

https://github.com/archivesspace/archivesspace/tree/master/backend/app/converters <https://github.com/archivesspace/archivesspace/tree/master/backend/app/converters>

Where you won’t find any answers because all of the work and mappings for these converters is actually in the base maps in the converters/lib/ directory, where you can see how MARC XML fields are mapped into ArchivesSpace agent or subject JSON schema: 


https://github.com/archivesspace/archivesspace/blob/master/backend/app/converters/lib/marcxml_auth_agent_base_map.rb <https://github.com/archivesspace/archivesspace/blob/master/backend/app/converters/lib/marcxml_auth_agent_base_map.rb>

https://github.com/archivesspace/archivesspace/blob/master/backend/app/converters/lib/marcxml_bib_base_map.rb <https://github.com/archivesspace/archivesspace/blob/master/backend/app/converters/lib/marcxml_bib_base_map.rb>


Hope that helps as a start. 
I still find it rough going from there, but that’s mainly because I don’t know MARC that well. 


Somewhere, there was a document outlining mappings for MARC,EAD,etc. but that prepared long ago as developer specifications — last I looked, those documents weren’t being updated to track changes in the code, so I don’t know how reliable they are. 

https://archivesspace.atlassian.net/browse/ANW-429 <https://archivesspace.atlassian.net/browse/ANW-429> references in the code above might be a better source. 


— Steve M.


> On May 26, 2022, at 12:20 PM, Bowers, Kate A. <kate_bowers at harvard.edu> wrote:
> 
> Does anyone know where I can find a list of exactly which fields from LCNAF authority records go into which fields in AS agent records if one implements the LCNAF plug-in?
>  
> I’ve search git-hub and the AS wiki’d and AS help and I have not found details on exactly what the import does.
>  
> Thanks!
>  
> Kate
> _______________________________________________
> Archivesspace_Users_Group mailing list
> Archivesspace_Users_Group at lyralists.lyrasis.org <mailto:Archivesspace_Users_Group at lyralists.lyrasis.org>
> http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group <http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lyralists.lyrasis.org/pipermail/archivesspace_users_group/attachments/20220526/f757545b/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3342 bytes
Desc: not available
URL: <http://lyralists.lyrasis.org/pipermail/archivesspace_users_group/attachments/20220526/f757545b/attachment.bin>


More information about the Archivesspace_Users_Group mailing list