[Koha] Link fixed information field 000_6 to 942c?

Frederic Demians frederic at tamil.fr
Fri Jun 13 03:37:21 NZST 2008


> Is there a way to have Koha automatically set the item type in 942c 
> based on
> the information found from the fixed information field 000_6 when 
> importing
> records?

Not directly in Koha for the time being. Staged  MARC records (in Koha 
tools) has to be improved in this area. A hook procedure could be 
associated to a batch import doing specific biblio records 
modifications: -creating 942$c field, -creating item tags 952 or 995.

For now, you can do that easily with a Perl script and MARC::Record module:

    * loop on ISO2709 file for example
    * read 000_6 code
    * from this code fix a Koha Item Type code
    * add a 942$c

$new_record->append_fields(MARC::Field->new(
  "942", '', '', c => $typedoc ));

--
Frédéric



More information about the Koha mailing list