<div dir="ltr"><div dir="ltr"><div>Joshua,</div><div> below are the lines around the error found in the log. </div><div> </div><div><div>D, [2022-10-25T08:53:44.232663 #6127] DEBUG -- : Thread-2024: GET /repositories/2/resources/marc21/1292.xml?include_unpublished_marc=true [session: #<Session:0x672f4d2c @store={:user=>"ms20", :login_time=>2022-10-25 08:51:09 -0500, :expirable=>true}, @system_mtime=2022-10-25 13:53:36 UTC, @id="80b6daef6fb6042b94f968ca2b5bf558a98ab137c258093385cdf2c7c36b303c">]</div><div>D, [2022-10-25T08:53:44.236593 #6127] DEBUG -- : Thread-2024: Post-processed params: {:id=>1292, :repo_id=>2, :include_unpublished_marc=>true}</div><div>E, [2022-10-25T08:53:44.410857 #6127] ERROR -- : Thread-2024: Unhandled exception!</div><div>E, [2022-10-25T08:53:44.411180 #6127] ERROR -- :</div><div><b>wrong number of arguments (2 for 1)</b></div><div><b>/proj/WebApps/archivesspace271/plugins/dartmouth_udf_exports/backend/lib/aspace_patches.rb:96:in `from_aspace_object'</b></div><div>/proj/WebApps/archivesspace271/data/tmp/jetty-0.0.0.0-8089-backend.war-_-any-/webapp/WEB-INF/app/exporters/models/marc21.rb:96:in `from_archival_object'</div><div>/proj/WebApps/archivesspace271/data/tmp/jetty-0.0.0.0-8089-backend.war-_-any-/webapp/WEB-INF/app/exporters/models/marc21.rb:105:in `from_resource'</div><div>/proj/WebApps/archivesspace271/data/tmp/jetty-0.0.0.0-8089-backend.war-_-any-/webapp/WEB-INF/app/lib/export.rb:81:in `generate_marc'</div><div>/proj/WebApps/archivesspace271/data/tmp/jetty-0.0.0.0-8089-backend.war-_-any-/webapp/WEB-INF/app/controllers/exports.rb:92:in `block in ArchivesSpaceService'</div></div><div><br></div><div>Mang</div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Oct 25, 2022 at 6:29 AM Joshua D. Shaw <<a href="mailto:Joshua.D.Shaw@dartmouth.edu">Joshua.D.Shaw@dartmouth.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="msg2580419550737212759">
<div dir="ltr">
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0);background-color:rgb(255,255,255)">
Without knowing what line is being referenced in the error, its hard to know exactly what the issue might be, but I wouldn't suggest just using this plugin as is since its very much customized for Dartmouth's use and probably won't be what another institution
might need (There are hard coded references to Rauner Library in there!)<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0);background-color:rgb(255,255,255)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0);background-color:rgb(255,255,255)">
Having said that, if you can pass along the line referenced in the error, that should help with figuring out why the error is occurring.</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0);background-color:rgb(255,255,255)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0);background-color:rgb(255,255,255)">
Joshua<br>
</div>
<div id="m_2580419550737212759appendonsend"></div>
<hr style="display:inline-block;width:98%">
<div id="m_2580419550737212759divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> <a href="mailto:archivesspace_users_group-bounces@lyralists.lyrasis.org" target="_blank">archivesspace_users_group-bounces@lyralists.lyrasis.org</a> <<a href="mailto:archivesspace_users_group-bounces@lyralists.lyrasis.org" target="_blank">archivesspace_users_group-bounces@lyralists.lyrasis.org</a>> on behalf of <a href="mailto:mang.sun@rice.edu" target="_blank">mang.sun@rice.edu</a>
<<a href="mailto:mang.sun@rice.edu" target="_blank">mang.sun@rice.edu</a>><br>
<b>Sent:</b> Monday, October 24, 2022 4:19 PM<br>
<b>To:</b> Archivesspace Users Group <<a href="mailto:archivesspace_users_group@lyralists.lyrasis.org" target="_blank">archivesspace_users_group@lyralists.lyrasis.org</a>><br>
<b>Subject:</b> Re: [Archivesspace_Users_Group] User-defined fields in MARC-XML</font>
<div> </div>
</div>
<div>
<div dir="ltr">We see the following error in the exported marcxml file with the plugin enabled. Our AS version is 2.7.1.
<div><br>
</div>
<div>{"error":"wrong number of arguments (2 for 1)"}<br>
</div>
<div><br>
</div>
<div><br>
</div>
<div>Mang Sun</div>
<div>Rice U.</div>
</div>
<br>
<div>
<div dir="ltr">On Wed, Oct 19, 2022 at 4:33 PM Joshua D. Shaw <<a href="mailto:Joshua.D.Shaw@dartmouth.edu" target="_blank">Joshua.D.Shaw@dartmouth.edu</a>> wrote:<br>
</div>
<blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div>
<div dir="ltr">
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
Hi Rebecca</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)">
This should get you started: <a href="https://urldefense.com/v3/__https://nam12.safelinks.protection.outlook.com/?url=https*3A*2F*2Furldefense.com*2Fv3*2F__https*3A*2F*2Fgithub.com*2Fjdshaw*2Fdartmouth_udf_exports__*3B!!BuQPrrmRaQ!hoZD86BZEammKoA9cQbsKq6cfvPbZJm3YheC1Aj7moUqNqJ1_XeftPrZU8gRA7KPQBEN57BH-3bis0109hOBv-joBc9BYMx5WVI*24&data=05*7C01*7Cjoshua.d.shaw*40dartmouth.edu*7C3c492f74313543a905b508dab5fd1870*7C995b093648d640e5a31ebf689ec9446f*7C0*7C0*7C638022395892798057*7CUnknown*7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0*3D*7C3000*7C*7C*7C&sdata=D1phiq4Q9sXrhOxtk3s7E*2F0R9lS6c8AkuyttR*2Boep8g*3D&reserved=0__;JSUlJSUlJSUlJSUlJSUlJSUlJSUlJSUlJSUlJSUl!!BuQPrrmRaQ!hQ0mk4EfR5xh6XBjQ__e4TlFtAapdDQnjWVI3gYNxiAw0AbX718I1pcn2TqTewR7gASmBCVpKsabyHY8ye8VV1k5yefci8SyzQA$" id="m_2580419550737212759x_m_-3908732012139418153LPlnk100486" target="_blank">
https://github.com/jdshaw/dartmouth_udf_exports</a> Specifically: <a href="https://urldefense.com/v3/__https://nam12.safelinks.protection.outlook.com/?url=https*3A*2F*2Furldefense.com*2Fv3*2F__https*3A*2F*2Fgithub.com*2Fjdshaw*2Fdartmouth_udf_exports*2Fblob*2Fmain*2Fbackend*2Flib*2Fmarc_user_defined_field_serialize.rb__*3B!!BuQPrrmRaQ!hoZD86BZEammKoA9cQbsKq6cfvPbZJm3YheC1Aj7moUqNqJ1_XeftPrZU8gRA7KPQBEN57BH-3bis0109hOBv-joBc9BhiH7B2Y*24&data=05*7C01*7Cjoshua.d.shaw*40dartmouth.edu*7C3c492f74313543a905b508dab5fd1870*7C995b093648d640e5a31ebf689ec9446f*7C0*7C0*7C638022395892798057*7CUnknown*7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0*3D*7C3000*7C*7C*7C&sdata=kVNHDoAOWc07leme3Xqd6yP1niQU6HiawcB*2BEYDZdgA*3D&reserved=0__;JSUlJSUlJSUlJSUlJSUlJSUlJSUlJSUlJSUlJSUlJSUlJQ!!BuQPrrmRaQ!hQ0mk4EfR5xh6XBjQ__e4TlFtAapdDQnjWVI3gYNxiAw0AbX718I1pcn2TqTewR7gASmBCVpKsabyHY8ye8VV1k5yefckx3OWoE$" id="m_2580419550737212759x_m_-3908732012139418153LPNoLPOWALinkPreview" target="_blank">
https://github.com/jdshaw/dartmouth_udf_exports/blob/main/backend/lib/marc_user_defined_field_serialize.rb</a> Its very much customized to our needs, but you should be able to use it as a starting point.</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)">
Joshua<br>
</div>
<div id="m_2580419550737212759x_m_-3908732012139418153appendonsend"></div>
<hr style="display:inline-block;width:98%">
<div id="m_2580419550737212759x_m_-3908732012139418153divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b>
<a href="mailto:archivesspace_users_group-bounces@lyralists.lyrasis.org" target="_blank">
archivesspace_users_group-bounces@lyralists.lyrasis.org</a> <<a href="mailto:archivesspace_users_group-bounces@lyralists.lyrasis.org" target="_blank">archivesspace_users_group-bounces@lyralists.lyrasis.org</a>> on behalf of Rebecca Russell <<a href="mailto:russellr@rice.edu" target="_blank">russellr@rice.edu</a>><br>
<b>Sent:</b> Wednesday, October 19, 2022 5:24 PM<br>
<b>To:</b> <a href="mailto:archivesspace_users_group@lyralists.lyrasis.org" target="_blank">
archivesspace_users_group@lyralists.lyrasis.org</a> <<a href="mailto:archivesspace_users_group@lyralists.lyrasis.org" target="_blank">archivesspace_users_group@lyralists.lyrasis.org</a>><br>
<b>Subject:</b> [Archivesspace_Users_Group] User-defined fields in MARC-XML</font>
<div> </div>
</div>
<div><font face="Calibri">Hello,<br>
<br>
We are trying to figure out if there is a plug-in or other way to configure user-defined fields (resources) so they export to MARC-XML?<br>
<br>
Many thanks in advance for any help with this question,<br>
<br>
Rebecca<br>
<br>
<br>
</font>
<pre cols="72">--
Rebecca Russell
Archivist / Special Collections Librarian
Woodson Research Center
Pronouns: she/her
713-348-5133 | <a href="https://urldefense.com/v3/__https://nam12.safelinks.protection.outlook.com/?url=https*3A*2F*2Furldefense.com*2Fv3*2F__https*3A*2F*2Fnam12.safelinks.protection.outlook.com*2F*3Furl*3Dhttp*3A*2F*2Flibrary.rice.edu*2Fwoodson*26data*3D05*7C01*7Cjoshua.d.shaw*40dartmouth.edu*7C82ce1ea7d2424db9258208dab2184e5f*7C995b093648d640e5a31ebf689ec9446f*7C0*7C0*7C638018114848241139*7CUnknown*7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0*3D*7C3000*7C*7C*7C*26sdata*3D*2B*2B8mNy6jKFCzllWHLG7RIQUGMElyZtc*2FYDCgkle*2F7oc*3D*26reserved*3D0__*3BJSUlJSUlJSUlJSUlJSUlJSUlJSUlJSUl!!BuQPrrmRaQ!hoZD86BZEammKoA9cQbsKq6cfvPbZJm3YheC1Aj7moUqNqJ1_XeftPrZU8gRA7KPQBEN57BH-3bis0109hOBv-joBc9By-HtCT8*24&data=05*7C01*7Cjoshua.d.shaw*40dartmouth.edu*7C3c492f74313543a905b508dab5fd1870*7C995b093648d640e5a31ebf689ec9446f*7C0*7C0*7C638022395892798057*7CUnknown*7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0*3D*7C3000*7C*7C*7C&sdata=gRN0xA*2FiqOoLnqPrmTH3dDLO5w7OMrEKsYxg7ThjwGI*3D&reserved=0__;JSUlJSUlJSUlJSUqKioqJSUqKioqKioqKioqKioqKiolJSoqKioqJSUlJSUlJSUlJSUlJSUlJSUlJSUl!!BuQPrrmRaQ!hQ0mk4EfR5xh6XBjQ__e4TlFtAapdDQnjWVI3gYNxiAw0AbX718I1pcn2TqTewR7gASmBCVpKsabyHY8ye8VV1k5yefcu_GN6f8$" target="_blank">http://library.rice.edu/woodson</a></pre>
</div>
</div>
_______________________________________________<br>
Archivesspace_Users_Group mailing list<br>
<a href="mailto:Archivesspace_Users_Group@lyralists.lyrasis.org" target="_blank">Archivesspace_Users_Group@lyralists.lyrasis.org</a><br>
<a href="https://urldefense.com/v3/__https://nam12.safelinks.protection.outlook.com/?url=https*3A*2F*2Furldefense.com*2Fv3*2F__http*3A*2F*2Flyralists.lyrasis.org*2Fmailman*2Flistinfo*2Farchivesspace_users_group__*3B!!BuQPrrmRaQ!hoZD86BZEammKoA9cQbsKq6cfvPbZJm3YheC1Aj7moUqNqJ1_XeftPrZU8gRA7KPQBEN57BH-3bis0109hOBv-joBc9B7-4aK1w*24&data=05*7C01*7Cjoshua.d.shaw*40dartmouth.edu*7C3c492f74313543a905b508dab5fd1870*7C995b093648d640e5a31ebf689ec9446f*7C0*7C0*7C638022395892954283*7CUnknown*7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0*3D*7C3000*7C*7C*7C&sdata=UL12YKUtb*2B0gFksnlRhxN*2BIdgr20fB9GY5FwtKpJDac*3D&reserved=0__;JSUlJSUlJSUlJSUlJSUlJSUlJSUlJSUlJSUlJSUlJQ!!BuQPrrmRaQ!hQ0mk4EfR5xh6XBjQ__e4TlFtAapdDQnjWVI3gYNxiAw0AbX718I1pcn2TqTewR7gASmBCVpKsabyHY8ye8VV1k5yefcpL9WCmw$" rel="noreferrer" target="_blank">https://urldefense.com/v3/__http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group__;!!BuQPrrmRaQ!hoZD86BZEammKoA9cQbsKq6cfvPbZJm3YheC1Aj7moUqNqJ1_XeftPrZU8gRA7KPQBEN57BH-3bis0109hOBv-joBc9B7-4aK1w$</a>
<br>
</div>
</blockquote>
</div>
</div>
</div>
_______________________________________________<br>
Archivesspace_Users_Group mailing list<br>
<a href="mailto:Archivesspace_Users_Group@lyralists.lyrasis.org" target="_blank">Archivesspace_Users_Group@lyralists.lyrasis.org</a><br>
<a href="https://urldefense.com/v3/__http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group__;!!BuQPrrmRaQ!hQ0mk4EfR5xh6XBjQ__e4TlFtAapdDQnjWVI3gYNxiAw0AbX718I1pcn2TqTewR7gASmBCVpKsabyHY8ye8VV1k5yefcLyOQWhM$" rel="noreferrer" target="_blank">https://urldefense.com/v3/__http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group__;!!BuQPrrmRaQ!hQ0mk4EfR5xh6XBjQ__e4TlFtAapdDQnjWVI3gYNxiAw0AbX718I1pcn2TqTewR7gASmBCVpKsabyHY8ye8VV1k5yefcLyOQWhM$</a> <br>
</div></blockquote></div>