[Koha] importing items with records

Frédéric Rouyre rfr at iweps.be
Wed Jun 9 23:53:59 NZST 2010


Hi ;)

You have to look in what tag is the MARC field linked with the koha
"itemnumber" field (995 for UNIMARC and 952 for MARC21). Then you add as
much as 995 or 952 tags in your notice than you have items for a given
notice.

Look how I did it with java and the marc4j library:

        DataField ex = mf.newDataField("995", ' ', ' ');
        if (s[11].equals(""))
            ex.addSubfield(mf.newSubfield('k', s[10]+"/"+s[4])); // Cote
        else
            ex.addSubfield(mf.newSubfield('k', s[10]+"/"+s[4]+"/"+s[11]));
       
        ex.addSubfield(mf.newSubfield('f', "0000-"+lineId)); // barcode
        ex.addSubfield(mf.newSubfield('o', "0")); //
        ex.addSubfield(mf.newSubfield('2', "0")); // lost?
        ex.addSubfield(mf.newSubfield('e', "Magasin")); //Localisation
        ex.addSubfield(mf.newSubfield('c', "JH")); // Localisation
        ex.addSubfield(mf.newSubfield('b', "JH")); // branch

        result.addVariableField(ex);

Hope it helps,

Regards,

Fred

On 09/06/2010 13:30, vishnu varthan wrote:
> Hi all,
>
> I have book details in csv and i managed to converted into marc format
> using Custom script and MARC::RECORD 2.0 Perl library.I can import
> record successfully now however i could not figure out importing items
> with records.
>
>
> Script i use for converting csv to marc record is hosted here
> http://pastebin.com/UuAgbEFw
>
> I would like to know what change in need to do for this.
>
> with regards
> vishnuvarthan perumal
> vishnu at e-ndicus.com <mailto:vishnu at e-ndicus.com>
> http://e-ndicus.com
>
>
> _______________________________________________
> Koha mailing list
> Koha at lists.katipo.co.nz
> http://lists.katipo.co.nz/mailman/listinfo/koha
>   

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.katipo.co.nz/pipermail/koha/attachments/20100609/6dd8ec76/attachment.htm 


More information about the Koha mailing list