<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<p>The simple "language" property of resources and archival objects
(which I assume is what is held in the obj variable in your code),
that held a single ISO 639/2 language code, was scrapped in 2.7.0.
Instead, there is now a "lang_materials" property, holding a much
more complicated data structure, to allow multiple ISO 639/2
language codes and/or language notes to be added to a record.
Here's how the core ArchivesSpace MARCXML exporter handles that:</p>
<p><br>
</p>
<p><a class="moz-txt-link-freetext" href="https://github.com/archivesspace/archivesspace/blob/3851abd72727270e6c07b5d1bfe7efdcda55c9f5/backend/app/exporters/models/marc21.rb#L137-L144">https://github.com/archivesspace/archivesspace/blob/3851abd72727270e6c07b5d1bfe7efdcda55c9f5/backend/app/exporters/models/marc21.rb#L137-L144</a><br>
</p>
<p><br>
</p>
<p>Andrew.</p>
<p><br>
</p>
<p><br>
</p>
<div class="moz-cite-prefix">On 11/1/21 13:27, Mark Cyzyk wrote:<br>
</div>
<blockquote type="cite" cite="mid:MN2PR01MB5840EBFA26AF61FE21268401C88A9@MN2PR01MB5840.prod.exchangelabs.com">
<style type="text/css" style="display:none;">P {margin-top:0;margin-bottom:0;}</style>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif;
font-size: 12pt; color: rgb(0, 0, 0);">
All,</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 have tracked down an error to Line 28 in our custom MARCXML
export plugin:
<div><br>
</div>
<div>#20160621LJD: 008 - Change 'xx' at positions 15-16 with
'mdu' for Maryland per technical services.</div>
<div>def self.assemble_controlfield_string(obj)</div>
<div>date = obj.dates[0] || {}</div>
<div>string = obj['system_mtime'].scan(/\d{2}/)[1..3].join('')</div>
<div>string += obj.level == 'item' && date['date_type']
== 'single' ? 's' : 'i'</div>
<div>string += date['begin'] ? date['begin'][0..3] : " "</div>
<div>string += date['end'] ? date['end'][0..3] : " "</div>
<div>string += "mdu"</div>
<div>17.times { string += ' ' }</div>
<div>string += (obj.language || '|||')
← LINE 28</div>
<div>string += ' d'</div>
<div><br>
</div>
<div>Insofar as this was working previous to our upgrade to
ASpace Version 2.8.0 (Yes, I know, we're due for an upgrade!),
can you see anything here that might be the cause of breakage?
Maybe "obj.language" is no longer correct???</div>
<div><br>
</div>
Advice appreciated!</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<br>
</div>
<div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif;
font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div id="Signature">
<div>
<div name="divtagdefaultwrapper" style="font-family:Calibri,Arial,Helvetica,sans-serif;
font-size:; margin:0">
<div class="BodyFragment"><font size="2">
<div class="PlainText">-- <br>
<br>
<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><br>
Mark Cyzyk, M.A., M.L.S.<br>
Library Applications Group<br>
The Sheridan Libraries<br>
The Johns Hopkins University<br>
<a class="moz-txt-link-abbreviated" href="mailto:mcyzyk@jhu.edu">mcyzyk@jhu.edu</a><br>
<br>
<i>Verba volant, scripta manent.</i><br>
<br>
</div>
</font></div>
</div>
</div>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
Archivesspace_Users_Group mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Archivesspace_Users_Group@lyralists.lyrasis.org">Archivesspace_Users_Group@lyralists.lyrasis.org</a>
<a class="moz-txt-link-freetext" href="http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group">http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group</a>
</pre>
</blockquote>
</body>
</html>