[open-ils-commits] r13216 - trunk/Open-ILS/tests/datasets (dbs)

svn at svn.open-ils.org svn at svn.open-ils.org
Fri May 22 10:37:38 EDT 2009


Author: dbs
Date: 2009-05-22 10:37:36 -0400 (Fri, 22 May 2009)
New Revision: 13216

Modified:
   trunk/Open-ILS/tests/datasets/README
Log:
Add some docs about loading the test MFHD records


Modified: trunk/Open-ILS/tests/datasets/README
===================================================================
--- trunk/Open-ILS/tests/datasets/README	2009-05-22 14:18:08 UTC (rev 13215)
+++ trunk/Open-ILS/tests/datasets/README	2009-05-22 14:37:36 UTC (rev 13216)
@@ -12,3 +12,14 @@
 | 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
+



More information about the open-ils-commits mailing list