[Archivesspace_Users_Group] customizing the MARC exporter
Kevin Clair
Kevin.Clair at du.edu
Wed Oct 7 15:04:40 EDT 2015
Thanks for this, it’s very helpful (especially since I was about to work on a custom MODS exporter for our digital objects that would need to use the user-defined fields).
Our custom work is all stashed in our local plugins, and can be found by the curious at https://github.com/duspeccoll/plugins_local/tree/master/backend/model. -k
From: archivesspace_users_group-bounces at lyralists.lyrasis.org [mailto:archivesspace_users_group-bounces at lyralists.lyrasis.org] On Behalf Of Joshua D. Shaw
Sent: Wednesday, October 07, 2015 6:12 AM
To: Archivesspace Users Group
Subject: Re: [Archivesspace_Users_Group] customizing the MARC exporter
Hi Kevin-
We (Dartmouth) are having HM do some custom work for us around the same topic. Check out https://github.com/hudmol/dartmouth_udf_exports which allows adding custom mappings to both the EAD and MARC exports. It does not allow for suppressing fields, so if AS wants to map something to one field and you want it mapped to another, you'll wind up with the data in two different fields.
Joshua
From: Brian Hoffman
Reply-To: Archivesspace Users Group
Date: Tuesday, June 23, 2015 at 5:32 PM
To: Archivesspace Users Group
Subject: Re: [Archivesspace_Users_Group] customizing the MARC exporter
Hi Kevin,
I’m sorry - yes, the link I sent is for a customized importer, and you were asking about exporters.
The only relevant examples I know of are these:
https://github.com/archivesspace/yale-ead-exporter
https://github.com/helrond/aspace-labels
The same patterns should apply for Marc. You’ll most likely want to override methods in this class:
https://github.com/archivesspace/archivesspace/blob/master/backend/app/exporters/models/marc21.rb
Brian
On Jun 23, 2015, at 5:01 PM, Kevin Clair <Kevin.Clair at du.edu<mailto:Kevin.Clair at du.edu>> wrote:
Hi Brian,
Thanks for that. Does this import MARCXML records that come from outside of ArchivesSpace?
What I was hoping to do is extend the current MARC export inhttps://github.com/archivesspace/archivesspace/blob/master/backend/app/exporters/models/marc21.rb to account for our local catalog rules, instead of our current method of doing that (which is a Perl script that downloads JSON from the API alongside the MARC export and adds the missing fields manually). This doesn’t look like quite the same thing, though I’m new to Ruby so I may be missing something… -k
From: archivesspace_users_group-bounces at lyralists.lyrasis.org<mailto:archivesspace_users_group-bounces at lyralists.lyrasis.org> [mailto:archivesspace_users_group-bounces at lyralists.lyrasis.org] On Behalf Of Brian Hoffman
Sent: Monday, June 22, 2015 10:32 AM
To: Archivesspace Users Group
Subject: Re: [Archivesspace_Users_Group] customizing the MARC exporter
Hi Kevin,
Here is an example of a customized MARC to Accession converter plugin. I think this might help.
https://github.com/hudmol/yale_marcxml2accession_extras
Brian
On Jun 22, 2015, at 12:00 PM, Kevin Clair <Kevin.Clair at du.edu<mailto:Kevin.Clair at du.edu>> wrote:
Hello,
I’m curious if anyone on the list has had any success with customizing the exports of MARCXML records for Resources in ArchivesSpace. I’ve seen the wiki post athttps://archivesspace.atlassian.net/wiki/pages/viewpage.action?pageId=18088140 about customizing the EAD exports, but it looks like the MARC serializer only exports datafields and subfields that are populated in the MARC export model, which doesn’t seem to be something I can customize as a local plugin.
We have some local rules for populating the 001, 949, etc. fields in our catalog that I’d like to take care of in the ArchivesSpace export directly, rather than having to run the XMLs through MarcEdit or a Perl script as an intermediate step before we import them into our ILS. Any tips or sample code would be appreciated. thanks!
cheers,
-k
_______________________________________________
Archivesspace_Users_Group mailing list
Archivesspace_Users_Group at lyralists.lyrasis.org<mailto:Archivesspace_Users_Group at lyralists.lyrasis.org>
http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group
_______________________________________________
Archivesspace_Users_Group mailing list
Archivesspace_Users_Group at lyralists.lyrasis.org<mailto:Archivesspace_Users_Group at lyralists.lyrasis.org>
http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lyralists.lyrasis.org/pipermail/archivesspace_users_group/attachments/20151007/4f4b3ccd/attachment.html>
More information about the Archivesspace_Users_Group
mailing list