]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/src/perlmods/OpenILS/Application/Trigger/Reactor/MarkItemLost.pm
stub for mark-item-lost reactor
[working/Evergreen.git] / Open-ILS / src / perlmods / OpenILS / Application / Trigger / Reactor / MarkItemLost.pm
1 package OpenILS::Application::Trigger::Reactor::MarkItemLost;
2 use base 'OpenILS::Application::Trigger::Reactor';
3 use strict; use warnings;
4 use Error qw/:try/;
5 use Data::Dumper;
6 use OpenSRF::Utils::Logger qw/:logger/;
7 use OpenILS::Utils::CStoreEditor q/:funcs/;
8 $Data::Dumper::Indent = 0;
9
10
11 sub ABOUT {
12     return <<ABOUT;
13     
14     Marks circulation and corresponding item as lost.  This uses
15     the standard mark-lost functionality, creating billings where appropriate.
16
17     Required event parameters:
18         "editor" which points to a user ID.  This is the user that effectively
19         performs the action.  For example, when the copy status is updated,
20         this user is entered as the last editor of the copy.
21
22 ABOUT
23 }
24
25 sub handler {
26     my $self = shift;
27     my $env = shift;
28     my $e = new_editor(xact => 1);
29     $e->commit;
30     return 1;
31 }
32
33 1;