return undef;
}
+ /* Get fleshed version of hold so we can grab name of requestor */
+ $hold = $self->editor->retrieve_action_hold_request(
+ [
+ $hold->id,
+ {
+ flesh => 1,
+ flesh_fields => { ahr => [ 'usr' ] }
+ }
+ ]
+
$logger->info("circulator: this copy is needed by a different patron to fulfill a hold");
- $self->push_events(OpenILS::Event->new('ITEM_ON_HOLDS_SHELF'));
+ my $user = $hold->usr;
+
+ $self->push_events(OpenILS::Event->new('ITEM_ON_HOLDS_SHELF',
+ { payload => { hold => $hold->id,
+ patron_name = $user->first_given_name. ' '.
+ $user->family_name
+ ));
}