On 1/03/2010 2:14 a.m., Nicole Engard wrote:
2010/2/27 Braedon Vickers<braedon@tw.co.nz>:
While you can use that script from the command line, I would suggest using the tools in the web interface. Go to Tools->Stage Marc Records For Import. It should be fairly self explanatory.
Actually, John is right, there is no tool in Koha for staging authority records. The only way to load authority records is from the command line - that said, I've never done it ... so I'm not sure how to give any tips on the topic.
Nicole C. Engard
Apologies - I was under the impression the web tool did both. Kindly ignore me. As for running the script, I have not done so personally, but some general Koha script tips: You will generally need a couple of environmental variables - KOHA_CONF and PERL5LIB - set to run Koha scripts. They will have been given to you when you installed, but if you did not set them up then, you will need to run exports for them before you run the script. For example: export KOHA_CONF=/etc/koha/koha-conf.xml export PERL5LIB=/usr/share/koha/lib These paths may vary with your install. Check if they exist and look alright first, and if not, find the correct locations for your system. The export command will only work for the current session. To have these variables set permanently, you will need to add the export commands to a file like /etc/environment. The script is probably only touching the database, so any user that can execute the script and associated Koha modules, and read your authorities file, should hopefully be OK to use. The Koha user(or equivalent) is usually preferred, however. Running the script with the -h flag should give you a list of flags and parameters you can pass into it. If you have not used a command line much before, it may pay to do some reading on basic theory, or find someone who can give you a quick tutorial in person. Hopefully some of that is more helpful than my last post. Braedon