<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Nicole,<br>
<br>
I've found it useful to add Koha's environmental variables to the bash
config file.  After doing this, the perl libraries are always available
to the user corresponding to the config file and it's not necessary to
run "export PERL5LIB=/<b>path</b>/<b>to</b>/perl5lib" every time.<br>
<br>
I add:<br>
<br>
export KOHA_CONF=/<b>path</b>/<b>to</b>/koha-conf.xml<br>
export PERL5LIB=/<b>path</b>/<b>to</b>/perl5lib<br>
<br>
to the end of the following file:<br>
<br>
/home/<b>user</b>/.bashrc<br>
<br>
<div class="moz-signature"><span
 style="font-size: 12px; font-family: Arial;">
<p>Cheers,</p>
<p>Christopher Curry<br>
Assistant Technical Librarian / Assistant IT Officer</p>
<p>American Philosophical Society<br>
105 South Fifth Street<br>
Philadelphia, PA 19106-3386<br>
Tel. (215) 599-4299</p>
<p><a href="mailto:ccurry@amphilsoc.org">ccurry@amphilsoc.org</a></p>
<p><strong>For technical support, please use <a
 href="mailto:helpdesk@amphilsoc.org"><span style="">helpdesk@amphilsoc.org</span></a></strong><br>
Main Library number: (215)440-3400<br>
APS website: <a href="http://www.amphilsoc.org">http://www.amphilsoc.org</a>
</p>
</span>
</div>
<br>
<br>
Nicole Engard wrote:
<blockquote
 cite="mid:d35b50d40912041752u66369665y30bb788f2e0c1adf@mail.gmail.com"
 type="cite">
  <pre wrap="">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 <a class="moz-txt-link-rfc2396E" href="mailto:pianohacker@gmail.com">&lt;pianohacker@gmail.com&gt;</a> wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap="">
2009/12/4 Nicole Engard <a class="moz-txt-link-rfc2396E" href="mailto:nengard@gmail.com">&lt;nengard@gmail.com&gt;</a>
    </pre>
    <blockquote type="cite">
      <pre wrap="">Also - as someone who's new to this - where is my @INC file?

2009/12/4 Nicole Engard <a class="moz-txt-link-rfc2396E" href="mailto:nengard@gmail.com">&lt;nengard@gmail.com&gt;</a>:
      </pre>
      <blockquote type="cite">
        <pre wrap="">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 <a class="moz-txt-link-rfc2396E" href="mailto:Ian.Walls@med.nyu.edu">&lt;Ian.Walls@med.nyu.edu&gt;</a>
wrote:
        </pre>
        <blockquote type="cite">
          <pre wrap="">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" <a class="moz-txt-link-rfc2396E" href="mailto:nengard@gmail.com">&lt;nengard@gmail.com&gt;</a> wrote:

          </pre>
          <blockquote type="cite">
            <pre wrap="">Bleh :(

nengard@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 <a class="moz-txt-link-rfc2396E" href="mailto:Ian.Walls@med.nyu.edu">&lt;Ian.Walls@med.nyu.edu&gt;</a>
wrote:
            </pre>
            <blockquote type="cite">
              <pre wrap="">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 [<a class="moz-txt-link-freetext" href="mailto:nengard@gmail.com">mailto:nengard@gmail.com</a>]
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@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@debian:~/kohaclone/misc/migration_tools$

Hmmm

2009/12/4 Nicole Engard <a class="moz-txt-link-rfc2396E" href="mailto:nengard@gmail.com">&lt;nengard@gmail.com&gt;</a>:
              </pre>
              <blockquote type="cite">
                <pre wrap="">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 <a class="moz-txt-link-rfc2396E" href="mailto:Ian.Walls@med.nyu.edu">&lt;Ian.Walls@med.nyu.edu&gt;</a>
wrote:
                </pre>
                <blockquote type="cite">
                  <pre wrap="">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 [<a class="moz-txt-link-freetext" href="mailto:nengard@gmail.com">mailto:nengard@gmail.com</a>]
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
<a class="moz-txt-link-rfc2396E" href="mailto:Ian.Walls@med.nyu.edu">&lt;Ian.Walls@med.nyu.edu&gt;</a> wrote:
                  </pre>
                  <blockquote type="cite">
                    <pre wrap="">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: <a class="moz-txt-link-abbreviated" href="mailto:koha-bounces@lists.katipo.co.nz">koha-bounces@lists.katipo.co.nz</a> [<a class="moz-txt-link-freetext" href="mailto:koha">mailto:koha</a>-
<a class="moz-txt-link-abbreviated" href="mailto:bounces@lists.katipo.co.nz">bounces@lists.katipo.co.nz</a>] On Behalf Of Owen Leonard
Sent: Friday, December 04, 2009 4:04 PM
To: Koha List
Subject: Re: [Koha] importing authorities

                    </pre>
                    <blockquote type="cite">
                      <pre wrap="">Is there a way to import authority records?
                      </pre>
                    </blockquote>
                    <pre wrap="">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
<a class="moz-txt-link-freetext" href="http://www.myacpl.org">http://www.myacpl.org</a>
_______________________________________________
Koha mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Koha@lists.katipo.co.nz">Koha@lists.katipo.co.nz</a>
<a class="moz-txt-link-freetext" href="http://lists.katipo.co.nz/mailman/listinfo/koha">http://lists.katipo.co.nz/mailman/listinfo/koha</a>

------------------------------------------------------------
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
<a class="moz-txt-link-abbreviated" href="mailto:Koha@lists.katipo.co.nz">Koha@lists.katipo.co.nz</a>
<a class="moz-txt-link-freetext" href="http://lists.katipo.co.nz/mailman/listinfo/koha">http://lists.katipo.co.nz/mailman/listinfo/koha</a>

                    </pre>
                  </blockquote>
                  <pre wrap="">------------------------------------------------------------
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.
=================================

                  </pre>
                </blockquote>
                <pre wrap="">
                </pre>
              </blockquote>
              <pre wrap="">------------------------------------------------------------
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.
=================================

              </pre>
            </blockquote>
          </blockquote>
          <pre wrap="">------------------------------------------------------------
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.
=================================


          </pre>
        </blockquote>
        <pre wrap="">
        </pre>
      </blockquote>
      <pre wrap="">_______________________________________________
Koha mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Koha@lists.katipo.co.nz">Koha@lists.katipo.co.nz</a>
<a class="moz-txt-link-freetext" href="http://lists.katipo.co.nz/mailman/listinfo/koha">http://lists.katipo.co.nz/mailman/listinfo/koha</a>
      </pre>
    </blockquote>
    <pre wrap="">@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

    </pre>
  </blockquote>
  <pre wrap=""><!---->_______________________________________________
Koha mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Koha@lists.katipo.co.nz">Koha@lists.katipo.co.nz</a>
<a class="moz-txt-link-freetext" href="http://lists.katipo.co.nz/mailman/listinfo/koha">http://lists.katipo.co.nz/mailman/listinfo/koha</a>
  </pre>
</blockquote>
</body>
</html>