[Koha] Loading Authority records

Hillyard, Cecil CHillyard at washoecounty.us
Sat Feb 4 04:43:31 NZDT 2012


Thanks.

__________________________
Cecil Hillyard
Washoe County Library
-Tel: 775-327-8338 or 7750-327-8330
fax: 775-327-8334

-----Original Message-----
From: koha-bounces at lists.katipo.co.nz
[mailto:koha-bounces at lists.katipo.co.nz] On Behalf Of Stefano Bargioni
Sent: Friday, February 03, 2012 1:50 AM
To: koha at lists.katipo.co.nz
Subject: Re: [Koha] Loading Authority records

> I believe someone asked about this not too long ago but I don't recall

> seeing any answer.
> 
> I can get authority records from our bibliographic vendor but how do 
> you get them into Koha?


Hi, Cecil: some months ago I wrote something similar:

this was my experience during migration from non-Koha to Koha 3.2.
In Koha, manually add some auth records, at least one for each type of
auth you are going to import.
Look at created records in table auth_header. Use each
auth_header.marcxml as a model for a (perl) script to tail marcxml
records with your data.

A model for PERSO_NAME (replace *...* with your data) could be:

<record>
 <leader>00000nz  a2200133n  4500</leader>  <controlfield
tag="003">*YOUR LIBRARY CODE*</controlfield>  <controlfield
tag="005">*CURRENT TIMESTAMP like 20101125120000.0*</controlfield>
 <controlfield tag="008">*YYMMDD*n||a|nnnaabn          || aad
|d</controlfield>
 <datafield tag="040" ind1=" " ind2=" ">
   <subfield code="a">*YOUR LIBRARY CODE*</subfield>
   <subfield code="b">*YOUR LIBRARY LANGUAGE CODE*</subfield>
   <subfield code="c">*YOUR LIBRARY CODE*</subfield>  </datafield>
<datafield tag="100" ind1="0" ind2=" ">
   <subfield code="a">*SURNAME, NAME*</subfield>  </datafield>
<datafield tag="400" ind1="0" ind2=" ">
   <subfield code="a">*USED FOR/SEE FROM*</subfield>  </datafield>
<datafield tag="942" ind1=" " ind2=" ">
   <subfield code="a">PERSO_NAME</subfield>  </datafield> </record>

At begin of file insert:

<?xml version="1.0" encoding="UTF-8"?>
<collection
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
   xsi:schemaLocation="http://www.loc.gov/MARC21/slim
http://www.loc.gov/standards/marcxml/schema/MARC21slim.xsd"
   xmlns="http://www.loc.gov/MARC21/slim">

and append at end of file

</collection> 

Then import the created xml file using 

bulkmarcimport.pl -a -m marcxml -file your_authorities.xml

and link them to your biblios with

link_bibs_to_authorities.pl

HTH. Stefano

---
Dott. Stefano Bargioni
Pontificia Universita' della Santa Croce - Roma Vicedirettore della
Biblioteca
--- "Non refert quam multos habeas libros, sed bonos" (Seneca) ---




_______________________________________________
Koha mailing list  http://koha-community.org Koha at lists.katipo.co.nz
http://lists.katipo.co.nz/mailman/listinfo/koha



More information about the Koha mailing list