Assuming I understand, it would seem simpler to use the COM capabilities of
MARCEdit and script the duplication process in that fashion. If you extract
the MARC for the ones you want to submit you would extract a record, count
the number of 856(?) tags and then duplicate that record the needed number
of times and add the 955. Not sure if you need to remove all but the
relevant 856 or not. That avoids having to match up anything. If you
haven't used this option before you can find the Documentation in the Help
file under "Help for Programmers". Let me know if you have any questions
and if you don't find a better way.
Jim
-----Original Message-----
From: MarcEdit support in technical and instructional matters
[mailto:[log in to unmask]] On Behalf Of McDonald, Stephen
Sent: Wednesday, May 20, 2015 11:36 AM
To: [log in to unmask]
Subject: duplicating records
I have a feeling someone has asked about this in the past. I am trying to
work out a procedure for preparing records of Internet Archive materials for
Hathitrust.
We have submitted a number of digitized materials to the Internet Archive.
Now we want records for these materials at Hathitrust. Hathitrust has a
complicated set of documentation for submitting metadata records, but most
of it is simply specs. What it boils down to is adding a 955 field and
submitting the records as MARC-XML. The tricky part is that they want a
separate record for each URL. In our catalog, multivolume items are
represented by a single MARC record, with multiple URLs. So when we send
this to Hathitrust, we need to duplicate this metadata record and add a
different 955 field to each one.
I know that I can translate the data from Internet Archive into a
comma-separated text file containing the OCLC number, the information for
the 955 field, and the URL; one line for each URL and Internet Archive ID.
I could use MarcEdit to translate that into a MARC file if I wanted. But
using MarcEdit to merge that file with my existing records will not
duplicate the MARC records; I end up with MARC records with multiple 955
fields and multiple URLs.
What I'm hoping to find is a way to create a separate MARC record for each
line in my text file. I can probably write a script to do it, but scripting
a method for matching the OCLC number column from the text file to the MARC
file will be a pain. Can anyone think of a simpler way to do it? Is there,
for instance, a way to script a series of Merge commands? I don't see any
method in the API for merging, nor can you put a Merge into a task.
Steve McDonald
[log in to unmask]
________________________________________________________________________
This message comes to you via MARCEDIT-L, a Listserv(R) list for technical
and instructional support in MarcEdit. If you wish to communicate directly
with the list owners, write to [log in to unmask] To
unsubscribe, send a message "SIGNOFF MARCEDIT-L" to
[log in to unmask]
________________________________________________________________________
This message comes to you via MARCEDIT-L, a Listserv(R) list for technical and instructional support in MarcEdit. If you wish to communicate directly with the list owners, write to [log in to unmask] To unsubscribe, send a message "SIGNOFF MARCEDIT-L" to [log in to unmask]
|