Firstly, please download the MARC files sent by e-mail.
Then, please use MarcEdit in order to process and verify that these files are valid. Using MARC Tools
, open the Princeton USMARC.MRC
file and execute the MarcBreaker
function, saving to a filename referencing the month and year of the batch (e. g. dataspace_dissertations_june_2019.mrc
). Individual records may be isolated in their own files, and renaming these appropriately (e. g. for dataspace_dissertations_13886597.mrc
for Princeton - USMARC - Pub 13886597.MRC
)
Following this, select Edit Records
in order to confirm that the MARC records appear to be valid.
After tunneling over the SSH:
ssh -L 1234:dataspace.princeton.edu:22 $USER@$BASTION_HOST
...please copy the files to the server environment:
% scp -P 1234 dataspace_dissertations_june_2019.mrc libvijrg@localhost:/tmp/
% scp -P 1234 dataspace_dissertations_13886597.mrc libvijrg@localhost:/tmp/
Then, as the user dspace
, please invoke the following:
cd ~/dspace/dissertations/MARC-records
set BATCH_ID=june_2019
mkdir $BATCH_ID
cd $BATCH_ID
cp /tmp/dataspace_dissertations_june_2019.mrc .
../marc-records-add-arks dataspace_dissertations_june_2019.mrc