[Archivesspace_Users_Group] User-defined fields in MARC-XML
Joshua D. Shaw
Joshua.D.Shaw at dartmouth.edu
Tue Oct 25 07:28:52 EDT 2022
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!)
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.
Joshua
________________________________
From: archivesspace_users_group-bounces at lyralists.lyrasis.org <archivesspace_users_group-bounces at lyralists.lyrasis.org> on behalf of mang.sun at rice.edu <mang.sun at rice.edu>
Sent: Monday, October 24, 2022 4:19 PM
To: Archivesspace Users Group <archivesspace_users_group at lyralists.lyrasis.org>
Subject: Re: [Archivesspace_Users_Group] User-defined fields in MARC-XML
We see the following error in the exported marcxml file with the plugin enabled. Our AS version is 2.7.1.
{"error":"wrong number of arguments (2 for 1)"}
Mang Sun
Rice U.
On Wed, Oct 19, 2022 at 4:33 PM Joshua D. Shaw <Joshua.D.Shaw at dartmouth.edu<mailto:Joshua.D.Shaw at dartmouth.edu>> wrote:
Hi Rebecca
This should get you started: https://github.com/jdshaw/dartmouth_udf_exports<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> Specifically: https://github.com/jdshaw/dartmouth_udf_exports/blob/main/backend/lib/marc_user_defined_field_serialize.rb<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> Its very much customized to our needs, but you should be able to use it as a starting point.
Joshua
________________________________
From: archivesspace_users_group-bounces at lyralists.lyrasis.org<mailto:archivesspace_users_group-bounces at lyralists.lyrasis.org> <archivesspace_users_group-bounces at lyralists.lyrasis.org<mailto:archivesspace_users_group-bounces at lyralists.lyrasis.org>> on behalf of Rebecca Russell <russellr at rice.edu<mailto:russellr at rice.edu>>
Sent: Wednesday, October 19, 2022 5:24 PM
To: archivesspace_users_group at lyralists.lyrasis.org<mailto:archivesspace_users_group at lyralists.lyrasis.org> <archivesspace_users_group at lyralists.lyrasis.org<mailto:archivesspace_users_group at lyralists.lyrasis.org>>
Subject: [Archivesspace_Users_Group] User-defined fields in MARC-XML
Hello,
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?
Many thanks in advance for any help with this question,
Rebecca
--
Rebecca Russell
Archivist / Special Collections Librarian
Woodson Research Center
Pronouns: she/her
713-348-5133 | http://library.rice.edu/woodson<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>
_______________________________________________
Archivesspace_Users_Group mailing list
Archivesspace_Users_Group at lyralists.lyrasis.org<mailto:Archivesspace_Users_Group at lyralists.lyrasis.org>
https://urldefense.com/v3/__http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group__;!!BuQPrrmRaQ!hoZD86BZEammKoA9cQbsKq6cfvPbZJm3YheC1Aj7moUqNqJ1_XeftPrZU8gRA7KPQBEN57BH-3bis0109hOBv-joBc9B7-4aK1w$<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>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lyralists.lyrasis.org/pipermail/archivesspace_users_group/attachments/20221025/a8cf9e64/attachment.html>
More information about the Archivesspace_Users_Group
mailing list