[Koha] importing authorities

Nicole Engard nengard at gmail.com
Sat Dec 5 14:52:55 NZDT 2009


You all rock and helped me with the content to write an awesome
tutorial for others!!

Now - for some reason I keep getting that 0 records are importing.
I'm going to the LOC site (authorities.loc.gov) and exporting a record
from there - I tried in both MARC formats listed - so now I'm up for
suggestions on how to get an authority record or two to import :)

Nicole

On Fri, Dec 4, 2009 at 8:43 PM, Jesse <pianohacker at gmail.com> wrote:
>
>
> 2009/12/4 Nicole Engard <nengard at gmail.com>
>>
>> Also - as someone who's new to this - where is my @INC file?
>>
>> 2009/12/4 Nicole Engard <nengard at gmail.com>:
>> > You mean the C4 in Koha?
>> >
>> > home/nengard/kohaclone/C4 -- or is there another C4?
>> >
>> > On Fri, Dec 4, 2009 at 5:39 PM, Walls, Ian <Ian.Walls at med.nyu.edu>
>> > wrote:
>> >> Nicole,
>> >>
>> >>
>> >> Hmmm... What directory is the parent to your installation's C4?  You
>> >> need to get that in your @INC. Something like:
>> >>
>> >> export PERL5LIB=/path/to/C4's/parent
>> >>
>> >> before you run bulkauthimport.pl should do the trick (the -I does the
>> >> same thing, but just for that perl call)
>> >>
>> >> Good luck!
>> >>
>> >>
>> >> Ian
>> >>
>> >>
>> >>
>> >> On Dec 4, 2009, at 17:18, "Nicole Engard" <nengard at gmail.com> wrote:
>> >>
>> >>> Bleh :(
>> >>>
>> >>> nengard at debian:~/kohaclone/misc/migration_tools$ perl -I
>> >>> /Users/nengard/kohaclone bulkauthimport.pl -file
>> >>> /Users/nengard/Desktop/authoritymarc.mrc
>> >>> Can't locate C4/Context.pm in @INC (@INC contains:
>> >>> /Users/nengard/kohaclone /etc/perl /usr/local/lib/perl/5.10.0
>> >>> /usr/local/share/perl/5.10.0 /usr/lib/perl5 /usr/share/perl5
>> >>> /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl .) at
>> >>> bulkauthimport.pl line 18.
>> >>> BEGIN failed--compilation aborted at bulkauthimport.pl line 18.
>> >>> You have new mail in /var/mail/nengard
>> >>>
>> >>> Nicole
>> >>>
>> >>> On Fri, Dec 4, 2009 at 4:50 PM, Walls, Ian <Ian.Walls at med.nyu.edu>
>> >>> wrote:
>> >>>> Nicole,
>> >>>>
>> >>>>
>> >>>> Oh, that's the PERL5LIB thing.  Try this:
>> >>>>
>> >>>> perl -I /Users/nengard/kohaclone bulkauthimport.pl -file /Users/
>> >>>> nengard/Desktop/authoritymarc.mrc
>> >>>>
>> >>>> Assuming that path after the -I is where your kohaclone is.
>> >>>>
>> >>>>
>> >>>> -Ian
>> >>>>
>> >>>>
>> >>>> -----Original Message-----
>> >>>> From: Nicole Engard [mailto:nengard at gmail.com]
>> >>>> Sent: Friday, December 04, 2009 4:47 PM
>> >>>> To: Walls, Ian
>> >>>> Cc: Owen Leonard; Koha List
>> >>>> Subject: Re: [Koha] importing authorities
>> >>>>
>> >>>> Oh poo -- looks like I'm missing something I need installed --
>> >>>>
>> >>>> nengard at debian:~/kohaclone/misc/migration_tools$ perl
>> >>>> bulkauthimport.pl -file /Users/nengard/Desktop/authoritymarc.mrc
>> >>>> Can't locate C4/Context.pm in @INC (@INC contains: /etc/perl
>> >>>> /usr/local/lib/perl/5.10.0 /usr/local/share/perl/5.10.0 /usr/lib/
>> >>>> perl5
>> >>>> /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10
>> >>>> /usr/local/lib/site_perl .) at bulkauthimport.pl line 18.
>> >>>> BEGIN failed--compilation aborted at bulkauthimport.pl line 18.
>> >>>> nengard at debian:~/kohaclone/misc/migration_tools$
>> >>>>
>> >>>> Hmmm
>> >>>>
>> >>>> 2009/12/4 Nicole Engard <nengard at gmail.com>:
>> >>>>> Thank you! I will add this to the manual and use it right now :)
>> >>>>>
>> >>>>> On Fri, Dec 4, 2009 at 4:40 PM, Walls, Ian <Ian.Walls at med.nyu.edu>
>> >>>>> wrote:
>> >>>>>> Nicole,
>> >>>>>>
>> >>>>>>
>> >>>>>> You'd need a MARC file (either ISO2709 or MARCXML) with the
>> >>>>>> authority data in it, and to navigate to the misc/migration_tools
>> >>>>>> directory for your install.  Then type:
>> >>>>>>
>> >>>>>> perl bulkauthimport.pl -file /path/to/file
>> >>>>>>
>> >>>>>> You can also use the -h flag to investigate other options.  One
>> >>>>>> really useful one is -m, which sets the incoming file format
>> >>>>>> (ISO2709 or MARCXML).
>> >>>>>>
>> >>>>>> Oh, right, and be sure you've exported your PERL5LIB, so the
>> >>>>>> script knows where to find the Koha Perl modules.
>> >>>>>>
>> >>>>>> Hope that's helpful!  And yes, we should absolutely package up
>> >>>>>> some example authorities to go with the sample catalog data and
>> >>>>>> patrons.
>> >>>>>>
>> >>>>>>
>> >>>>>> -Ian
>> >>>>>>
>> >>>>>> -----Original Message-----
>> >>>>>> From: Nicole Engard [mailto:nengard at gmail.com]
>> >>>>>> Sent: Friday, December 04, 2009 4:32 PM
>> >>>>>> To: Walls, Ian
>> >>>>>> Cc: Owen Leonard; Koha List
>> >>>>>> Subject: Re: [Koha] importing authorities
>> >>>>>>
>> >>>>>> Ian do you know what command I need to type and what file I need to
>> >>>>>> create to use bulkauthimport.pl?
>> >>>>>>
>> >>>>>> And Owen - yeah I think we should have some default Auth records we
>> >>>>>> can fill the system with like we do with catalog data and patrons.
>> >>>>>>
>> >>>>>> Nicole
>> >>>>>>
>> >>>>>> On Fri, Dec 4, 2009 at 4:10 PM, Walls, Ian
>> >>>>>> <Ian.Walls at med.nyu.edu> wrote:
>> >>>>>>> As far as I know, the only way currently is to use
>> >>>>>>> bulkauthimport.pl
>> >>>>>>> .  I would think it wouldn't be that difficult to modify the
>> >>>>>>> Stage MARC Records for Import tool to do authorities as well as
>> >>>>>>> biblios.  My cataloger tells me that authorities are going to be
>> >>>>>>> particularly important in RDA, so we may want to consider
>> >>>>>>> beefing up that end of the codebase.  I will happily look into
>> >>>>>>> it as I get the time.
>> >>>>>>>
>> >>>>>>> Cheers,
>> >>>>>>>
>> >>>>>>>
>> >>>>>>> Ian Walls
>> >>>>>>> Systems Integration Librarian
>> >>>>>>> NYU Health Sciences Libraries
>> >>>>>>> 550 First Ave., New York, NY 10016
>> >>>>>>> (212) 263-8687
>> >>>>>>>
>> >>>>>>>
>> >>>>>>>
>> >>>>>>> -----Original Message-----
>> >>>>>>> From: koha-bounces at lists.katipo.co.nz [mailto:koha-
>> >>>>>>> bounces at lists.katipo.co.nz] On Behalf Of Owen Leonard
>> >>>>>>> Sent: Friday, December 04, 2009 4:04 PM
>> >>>>>>> To: Koha List
>> >>>>>>> Subject: Re: [Koha] importing authorities
>> >>>>>>>
>> >>>>>>>> Is there a way to import authority records?
>> >>>>>>>
>> >>>>>>> If so, I'd love to get my hands on some MARC21 authority
>> >>>>>>> records. I
>> >>>>>>> always end up creating a couple of dummy records, and having
>> >>>>>>> some to
>> >>>>>>> import would be so much better for testing.
>> >>>>>>>
>> >>>>>>>  -- Owen
>> >>>>>>>
>> >>>>>>> --
>> >>>>>>> Web Developer
>> >>>>>>> Athens County Public Libraries
>> >>>>>>> http://www.myacpl.org
>> >>>>>>> _______________________________________________
>> >>>>>>> Koha mailing list
>> >>>>>>> Koha at lists.katipo.co.nz
>> >>>>>>> http://lists.katipo.co.nz/mailman/listinfo/koha
>> >>>>>>>
>> >>>>>>> ------------------------------------------------------------
>> >>>>>>> This email message, including any attachments, is for the sole
>> >>>>>>> use of the intended recipient(s) and may contain information
>> >>>>>>> that is proprietary, confidential, and exempt from disclosure
>> >>>>>>> under applicable law. Any unauthorized review, use, disclosure,
>> >>>>>>> or distribution is prohibited. If you have received this email
>> >>>>>>> in error please notify the sender by return email and delete the
>> >>>>>>> original message. Please note, the recipient should check this
>> >>>>>>> email and any attachments for the presence of viruses. The
>> >>>>>>> organization accepts no liability for any damage caused by any
>> >>>>>>> virus transmitted by this email.
>> >>>>>>> =================================
>> >>>>>>>
>> >>>>>>> _______________________________________________
>> >>>>>>> Koha mailing list
>> >>>>>>> Koha at lists.katipo.co.nz
>> >>>>>>> http://lists.katipo.co.nz/mailman/listinfo/koha
>> >>>>>>>
>> >>>>>>
>> >>>>>> ------------------------------------------------------------
>> >>>>>> This email message, including any attachments, is for the sole
>> >>>>>> use of the intended recipient(s) and may contain information that
>> >>>>>> is proprietary, confidential, and exempt from disclosure under
>> >>>>>> applicable law. Any unauthorized review, use, disclosure, or
>> >>>>>> distribution is prohibited. If you have received this email in
>> >>>>>> error please notify the sender by return email and delete the
>> >>>>>> original message. Please note, the recipient should check this
>> >>>>>> email and any attachments for the presence of viruses. The
>> >>>>>> organization accepts no liability for any damage caused by any
>> >>>>>> virus transmitted by this email.
>> >>>>>> =================================
>> >>>>>>
>> >>>>>
>> >>>>>
>> >>>>
>> >>>> ------------------------------------------------------------
>> >>>> This email message, including any attachments, is for the sole use
>> >>>> of the intended recipient(s) and may contain information that is
>> >>>> proprietary, confidential, and exempt from disclosure under
>> >>>> applicable law. Any unauthorized review, use, disclosure, or
>> >>>> distribution is prohibited. If you have received this email in
>> >>>> error please notify the sender by return email and delete the
>> >>>> original message. Please note, the recipient should check this
>> >>>> email and any attachments for the presence of viruses. The
>> >>>> organization accepts no liability for any damage caused by any
>> >>>> virus transmitted by this email.
>> >>>> =================================
>> >>>>
>> >>
>> >> ------------------------------------------------------------
>> >> This email message, including any attachments, is for the sole use of
>> >> the intended recipient(s) and may contain information that is proprietary,
>> >> confidential, and exempt from disclosure under applicable law. Any
>> >> unauthorized review, use, disclosure, or distribution is prohibited. If you
>> >> have received this email in error please notify the sender by return email
>> >> and delete the original message. Please note, the recipient should check
>> >> this email and any attachments for the presence of viruses. The organization
>> >> accepts no liability for any damage caused by any virus transmitted by this
>> >> email.
>> >> =================================
>> >>
>> >>
>> >
>> >
>> _______________________________________________
>> Koha mailing list
>> Koha at lists.katipo.co.nz
>> http://lists.katipo.co.nz/mailman/listinfo/koha
>
> @INC is simply Perl's list of directories that it is looking for Perl
> modules in.
>
> You need to run the following, or put in your ~/.bashrc:
>
> export PERL5LIB=/home/nengard/kohaclone/
>
> Basically, Koha imports modules from the C4 module. It needs to be told what
> directory to look for the C4 directory in, however. In a dev install, this
> is your Git clone; on a standard install, it would be something like
> /usr/share/koha/lib/.
>
> On my machine, for instance, since my Koha git clone is at
> /home/jesse/projects/koha, and the C4 directory with Koha's Perl modules is
> thus at /home/jesse/projects/koha/C4, I do this:
>
> export PERL5LIB=/home/jesse/projects/koha
>
> Opted to explain too much rather than too little, hope this helps,
> --
> Jesse Weaver
>


More information about the Koha mailing list