[open-ils-commits] r72 - import_demo/trunk

svn at svn.open-ils.org svn at svn.open-ils.org
Mon Dec 1 17:25:18 EST 2008


Author: dbs
Date: 2008-12-01 17:25:13 -0500 (Mon, 01 Dec 2008)
New Revision: 72

Modified:
   import_demo/trunk/README
Log:
Update README for import instructions


Modified: import_demo/trunk/README
===================================================================
--- import_demo/trunk/README	2008-12-01 22:16:55 UTC (rev 71)
+++ import_demo/trunk/README	2008-12-01 22:25:13 UTC (rev 72)
@@ -11,43 +11,41 @@
 To import a set of demonstration records and holdings into your Evergreen
 system:
 
-1. Edit import_bibs.sh to reflect your database name (DB_NAME),
-   user name (DB_USER) and password (DB_PW).
+1. Edit import_bibs.sh to reflect your database name (DB_NAME), database
+   hostname (DB_HOST), database port (DB_PORT), user name (DB_USER) and
+   password (DB_PW).
 
 2. Run import_bibs.sh to generate the pg_loader-output.sql file and assorted files:
 
 sh import_bibs.sh
 
-3. Edit pg_loader-output.sql to uncomment the "--COMMIT;" line to "COMMIT;" to
-   enable your additions to the database to take place.
+3. Load sample_marc.sql into the database:
 
-4. Load pg_loader-output.sql into the database:
+# Syntax: psql -U <username> -h <hostname> -p <port> -f sample_marc.sql <database>
+psql -U evergreen -h localhost -f sample_marc.sql evergreen
 
-# Syntax: psql -U <username> -f pg_loader-output.sql <database>
-psql -U evergreen -f pg_loader-output.sql evergreen
+4. Run the quick metarecord map to enable placing holds:
 
-5. Run the quick metarecord map to enable placing holds:
+psql -U evergreen -h localhost -f scripts/import/quick_metarecord_map.sql evergreen
 
-psql -U evergreen -f quick_metarecord_map.sql evergreen
-
-6: Run parse_holdings.pl to generate a file called insert_holdings.sql
+5: Run parse_holdings.pl to generate a file called insert_holdings.sql
    containing the INSERT statements that will insert the holdings into the
    staging table.
 
 perl parse_holdings.pl
 
-7. Create the staging table:
+6. Create the staging table:
 
-psql -U evergreen -f import_staging_table.sql evergreen
+psql -U evergreen -h localhost -f import_staging_table.sql evergreen
 
-8. Insert the holdings into the staging table:
+7. Insert the holdings into the staging table:
 
-psql -U evergreen -f insert_holdings.sql evergreen
+psql -U evergreen -h localhost -f insert_holdings.sql evergreen
 
-9. Generate the locations, call numbers, and copies in the database from the
+8. Generate the locations, call numbers, and copies in the database from the
    entries in the staging table:
 
-psql -U evergreen -f generate_copies.sql evergreen
+psql -U evergreen -h localhost -f generate_copies.sql evergreen
 
 
 File descriptions
@@ -69,10 +67,3 @@
 
 generate_copies.sql - a copy of the holdings generation SQL from http://open-ils.org/dokuwiki/doku.php?id=importing:holdings:import_via_staging_table
 
-direct_ingest.pl - a copy of the script from trunk (http://svn.open-ils.org/trac/ILS/browser/trunk/Open-ILS/src/extras/import/direct_ingest.pl)
-
-marc2bre.pl - a copy of the script from trunk (http://svn.open-ils.org/trac/ILS/browser/trunk/Open-ILS/src/extras/import/marc2bre.pl)
-
-parallel_pg_loader.pl - a copy of the script from trunk (http://svn.open-ils.org/trac/ILS/browser/trunk/Open-ILS/src/extras/import/parallel_pg_loader.pl)
-
-quick_metarecord_map.sql - a copy of the script from (http://svn.open-ils.org/trac/ILS/browser/trunk/Evergreen/src/extras/import/quick_metarecord_map.sql)



More information about the open-ils-commits mailing list