7 # the items.onloan field did not exist in koha 2.2
8 # in koha 3.0, it's used to define item availability
9 # this script takes the items.onloan field
10 # and put it in the MARC::Record of the item
13 my $items = Koha
::Items
->({ onloan
=> { '!=' => undef } });
16 while ( my $item = $items->next ) {
18 print sprintf "Onloan : %s for %s / %s\n", $item->onloan, $item->biblionumber, $item->itemnumber;