X-Account-Key: account2
X-Mozilla-Keys: 
Return-Path: <koha-devel-bounces+laurenthdl=alinto.com@nongnu.org>
Received: (qmail 28512 invoked from network); 31 Mar 2008 22:39:15 -0000
Received: from unknown (HELO lists.gnu.org) (199.232.76.165)
  by mail.alinto.net with SMTP; 31 Mar 2008 22:39:15 -0000
Received: from localhost ([127.0.0.1] helo=lists.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43)
	id 1JgSen-0004Ph-B7
	for laurenthdl@alinto.com; Mon, 31 Mar 2008 18:39:13 -0400
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1JgSeX-0004Pb-LN
	for koha-devel@nongnu.org; Mon, 31 Mar 2008 18:38:57 -0400
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1JgSeU-0004PP-8S
	for Koha-devel@nongnu.org; Mon, 31 Mar 2008 18:38:56 -0400
Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1JgSeU-0004PM-2i
	for Koha-devel@nongnu.org; Mon, 31 Mar 2008 18:38:54 -0400
Received: from pecan.exetel.com.au ([220.233.0.17] helo=smtp.po.exetel.com.au)
	by monty-python.gnu.org with esmtp (Exim 4.60)
	(envelope-from <rick@praxis.com.au>) id 1JgSeT-0002oa-Ec
	for Koha-devel@nongnu.org; Mon, 31 Mar 2008 18:38:53 -0400
Received: from 226.80.233.220.exetel.com.au ([220.233.80.226] helo=mada.local)
	by smtp.po.exetel.com.au with esmtp (Exim 4.68)
	(envelope-from <rick@praxis.com.au>)
	id 1JgSeN-0004zG-H3; Tue, 01 Apr 2008 09:38:47 +1100
Message-ID: <47F167F6.60906@praxis.com.au>
Date: Tue, 01 Apr 2008 09:38:46 +1100
From: Rick Welykochy <rick@praxis.com.au>
User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US;
	rv:1.8.1.11) Gecko/20071128 SeaMonkey/1.1.7
MIME-Version: 1.0
To: dschust1@tx.rr.com
Subject: Re: [Koha-devel] bulkmarcimport.pl flags
References: <32047385.1206986463762.JavaMail.root@web24>
In-Reply-To: <32047385.1206986463762.JavaMail.root@web24>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2)
Cc: Koha-devel@nongnu.org
X-BeenThere: koha-devel@nongnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: koha-devel.nongnu.org
List-Unsubscribe: <http://lists.nongnu.org/mailman/listinfo/koha-devel>,
	<mailto:koha-devel-request@nongnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/koha-devel>
List-Post: <mailto:koha-devel@nongnu.org>
List-Help: <mailto:koha-devel-request@nongnu.org?subject=help>
List-Subscribe: <http://lists.nongnu.org/mailman/listinfo/koha-devel>,
	<mailto:koha-devel-request@nongnu.org?subject=subscribe>
Sender: koha-devel-bounces+laurenthdl=alinto.com@nongnu.org
Errors-To: koha-devel-bounces+laurenthdl=alinto.com@nongnu.org
X-aduser: 199.232.76.165

dschust1@tx.rr.com wrote:

> I am looking at doing this to load some records into a "test" setup, but was wondering if there is a document that tells me what all the "flags" for running this option are, and how to run this .pl file.

Run the script without any arguments, e.g.

perl ./intranet/scripts/misc/migration_tools/bulkmarcimport.pl

small script to import an iso2709 file into Koha.
parameters :
	h : this version/help screen
	file /path/to/file/to/dump : the file to dump
	v : verbose mode. 1 means "some infos", 2 means "MARC dumping"
	n : the number of the record to import. If missing, all the file is imported
	t : test mode : parses the file, saying what he would do, but doing nothing.
	c : the characteristic MARC flavour. At the moment, only MARC21 and UNIMARC
	supported. MARC21 by default.
	d : delete EVERYTHING related to biblio in koha-DB before import  :tables :
		biblio, 		biblioitems, 		subjects,	items
		additionalauthors, 	bibliosubtitles, 	marc_biblio,
		marc_subfield_table, 	marc_word, 		marc_blob_subfield
IMPORTANT : don't use this script before you've entered and checked twice (or more) your  MARC parameters tables.
If you fail this, the import won't work correctly and you will get invalid datas.

SAMPLE : ./bulkmarcimport.pl -file /home/paul/koha.dev/local/npl -n 1



cheers
rickw


-- 
________________________________________________________________
Rick Welykochy || Praxis Services || Internet Driving Instructor

The best way to accelerate a PC is 9.8 m/s2
      -- anon


_______________________________________________
Koha-devel mailing list
Koha-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/koha-devel

