[Archivesspace_Users_Group] User-defined fields in MARC-XML

mang.sun at rice.edu mang.sun at rice.edu
Tue Oct 25 09:59:52 EDT 2022


Joshua,
 below are the lines around the error found in the log.

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">]
D, [2022-10-25T08:53:44.236593 #6127] DEBUG -- : Thread-2024:
Post-processed params: {:id=>1292, :repo_id=>2,
:include_unpublished_marc=>true}
E, [2022-10-25T08:53:44.410857 #6127] ERROR -- : Thread-2024: Unhandled
exception!
E, [2022-10-25T08:53:44.411180 #6127] ERROR -- :
*wrong number of arguments (2 for 1)*
*/proj/WebApps/archivesspace271/plugins/dartmouth_udf_exports/backend/lib/aspace_patches.rb:96:in
`from_aspace_object'*
/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'
/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'
/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'
/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'

Mang

On Tue, Oct 25, 2022 at 6:29 AM Joshua D. Shaw <Joshua.D.Shaw at dartmouth.edu>
wrote:

> 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> wrote:
>
> Hi Rebecca
>
> This should get you started:
> https://github.com/jdshaw/dartmouth_udf_exports
> <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$>
> Specifically:
> https://github.com/jdshaw/dartmouth_udf_exports/blob/main/backend/lib/marc_user_defined_field_serialize.rb
> <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$>
> 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 <
> archivesspace_users_group-bounces at lyralists.lyrasis.org> on behalf of
> Rebecca Russell <russellr at rice.edu>
> *Sent:* Wednesday, October 19, 2022 5:24 PM
> *To:* archivesspace_users_group at lyralists.lyrasis.org <
> 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://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$>
>
> _______________________________________________
> Archivesspace_Users_Group mailing list
> 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://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$>
>
>
> _______________________________________________
> Archivesspace_Users_Group mailing list
> Archivesspace_Users_Group at lyralists.lyrasis.org
>
> https://urldefense.com/v3/__http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group__;!!BuQPrrmRaQ!hQ0mk4EfR5xh6XBjQ__e4TlFtAapdDQnjWVI3gYNxiAw0AbX718I1pcn2TqTewR7gASmBCVpKsabyHY8ye8VV1k5yefcLyOQWhM$
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lyralists.lyrasis.org/pipermail/archivesspace_users_group/attachments/20221025/0a14400e/attachment.html>


More information about the Archivesspace_Users_Group mailing list