],
fields => [
{AA => $patron_barcode},
- {AB => $item_barcode}
+ {AB => $item_barcode},
+ {AO => $config->{institution}},
+ {AH => ''}
]
};
my $item_details = OpenILS::Application::SIP2::Item->get_item_details(
$session, barcode => $item_barcode);
+ push @{ $stub->{fields} }, {AJ => $item_details->{title}};
return $stub unless $item_details;
code => $code,
fixed_fields => [
$circ ? 1 : 0, # checkout ok
- $SC->sipbool($can_renew), # renewal ok
+ # Per SIP spec, "renewal ok" is a bit dumber than $can_renew, and returns Y if the item was already circulating to the patron, N otherwise)
+ # FIXME: Hardcoded for now, but need to revisit
+ $SC->sipbool(0), # renewal ok
$SC->sipbool($magnetic), # magnetic media
$SC->sipbool(!$magnetic), # desensitize
$SC->sipdate, # transaction date
{AJ => $item_details->{title}},
{AO => $config->{institution}},
{BT => $item_details->{fee_type}},
- {CI => 0}, # security inhibit
+ {CI => 'N'}, # security inhibit
{CK => $item_details->{media_type}},
$screen_msg ? {AF => $screen_msg} : (),
$due_date ? {AH => $due_date} : (),