[Archivesspace_Users_Group] ASpace Version 2.8.0, custom plugin throwing error, "language"

Mark Cyzyk mcyzyk at jhu.edu
Mon Nov 1 09:27:57 EDT 2021


All,

I have tracked down an error to Line 28 in our custom MARCXML export plugin:

#20160621LJD: 008 - Change 'xx' at positions 15-16 with 'mdu' for Maryland per technical services.
def self.assemble_controlfield_string(obj)
date = obj.dates[0] || {}
string = obj['system_mtime'].scan(/\d{2}/)[1..3].join('')
string += obj.level == 'item' && date['date_type'] == 'single' ? 's' : 'i'
string += date['begin'] ? date['begin'][0..3] : " "
string += date['end'] ? date['end'][0..3] : " "
string += "mdu"
17.times { string += ' ' }
string += (obj.language || '|||')                           ← LINE 28
string += ' d'

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???

Advice appreciated!

Mark

--

<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
Mark Cyzyk, M.A., M.L.S.
Library Applications Group
The Sheridan Libraries
The Johns Hopkins University
mcyzyk at jhu.edu

Verba volant, scripta manent.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lyralists.lyrasis.org/pipermail/archivesspace_users_group/attachments/20211101/8040a8ae/attachment.html>


More information about the Archivesspace_Users_Group mailing list