<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="#0563C1" vlink="#954F72" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal">Hi all, <o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">We’re trying to figure out the fastest way to generate stub resource records in ASpace from MARC XML for about 300 collections. The MARC XML we get from our Sierra OPAC creates really messy resource records using the MARC import function
 baked into ASpace, so while we <i>could</i> do that and spend our time on clean-up after ingest, I feel like there must be a way to convert the MARC XML into clean JSON in bulk (maybe with a CSV intermediary step?) and then import via the API. Before I go
 too far down the “I’ll just do it all myself” route, has anyone done this before and could share workflows or scripts? Or gently tell me why this won’t work?<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I’m aware of this from Smith: <a href="https://github.com/smith-special-collections/a2c-tools/tree/master/mrbc_resources">
https://github.com/smith-special-collections/a2c-tools/tree/master/mrbc_resources</a>
<o:p></o:p></p>
<p class="MsoNormal">and the <a href="https://support.atlas-sys.com/hc/en-us/articles/360052217114-The-ArchivesSpace-API-Playbook">
API Playbook</a> from Atlas, <a href="https://archivesspace.github.io/archivesspace/api/">
the official API wiki</a> and its sample scripts, and various blog posts/guides for ArchivesSnake and PyMARC.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Other suggestions?<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Thank you!<o:p></o:p></p>
</div>



<p style="FONT-SIZE: 11pt; FONT-FAMILY: Calibri"><font face="Calibri">__________________________________ <br><br style="FONT-SIZE: 11pt; FONT-FAMILY: Calibri">Sarah Newhouse   <em>(she, her, hers)</em> <br style="FONT-SIZE: 11pt; FONT-FAMILY: Calibri">Digital Preservation Archivist  <br style="FONT-SIZE: 11pt; FONT-FAMILY: Calibri"></font><span style="font-size: 14.6667px;">Othmer Library of Chemical History</span><font face="Calibri">   <br style="FONT-SIZE: 11pt; FONT-FAMILY: Calibri">t. +1.215.873.8249  
 <br></font></p>



<p style="FONT-SIZE: 11pt; FONT-FAMILY: Calibri"><font face="Calibri"><strong>Science History Institute </strong><br style="FONT-SIZE: 11pt; FONT-FAMILY: Calibri">Chemistry &#x2022; Engineering 
&#x2022; Life Sciences <br style="FONT-SIZE: 11pt; FONT-FAMILY: Calibri">315 
Chestnut Street &#x2022; Philadelphia, PA 19106 &#x2022; U.S.A. <br style="FONT-SIZE: 11pt; FONT-FAMILY: Calibri">Learn about the scientific 
discoveries that changed our world at <a title="" href="https://www.sciencehistory.org/learn">sciencehistory.org/learn</a></font></p>
</body>
</html>