From f3a4b2ec3bc4ffd29d4e677062884919b24a751c Mon Sep 17 00:00:00 2001 From: dbs Date: Fri, 22 May 2009 14:37:36 +0000 Subject: [PATCH] Add some docs about loading the test MFHD records git-svn-id: svn://svn.open-ils.org/ILS/trunk@13216 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/tests/datasets/README | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Open-ILS/tests/datasets/README b/Open-ILS/tests/datasets/README index da416ebe17..37e182224a 100644 --- a/Open-ILS/tests/datasets/README +++ b/Open-ILS/tests/datasets/README @@ -12,3 +12,14 @@ The following table lists the data sets we have collected for testing purposes. | nepali.marc | MARC21 | UTF8 | | Nepali scripts, 98 records, dual 245 and 100 fields (one for Nepali, one for phoneticization | | serials_marc21.xml| MARC21XML | UTF8 | | A small set of MARC21 bibliographic records | | serials_mfhd.xml | MARC21XML | UTF8 | | MFHD records that map to the serials_marc21.xml records | + + +=====How to load the test MFHD records===== + + - First load the MARC21 records: + - PERL5LIB=/openils/lib/perl5/ perl ../../src/extras/import/marc2sre.pl --marctype XML --password demo123 --idfield 901 --idsubfield a serials_mfhd.xml | perl ../../src/extras/import/direct_ingest.pl --serial | perl ../../src/extras/import/pg_loader.pl -or sre -or sfr -a sfr | psql -U evergreen -h localhost + + - Then load the MFHD records + - PERL5LIB=/openils/lib/perl5/ perl ../../src/extras/import/marc2sre.pl --marctype XML --password demo123 serials_mfhd.xml | perl ../../src/extras/import/direct_ingest.pl --serial | perl ../../src/extras/import/pg_loader.pl -or sre -or sfr -a sfr > mfhd21.sql + - psql -f mfhd21.sql + -- 2.11.0