]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/src/perlmods/OpenILS/Application/Storage/CDBI/action.pm
fixing money views; adding unfulfilled holds tracker; transaction-ifying hold capture...
[working/Evergreen.git] / Open-ILS / src / perlmods / OpenILS / Application / Storage / CDBI / action.pm
1 package OpenILS::Application::Storage::CDBI::action;
2 our $VERSION = 1;
3
4 #-------------------------------------------------------------------------------
5 package action;
6 use base qw/OpenILS::Application::Storage::CDBI/;
7 #-------------------------------------------------------------------------------
8
9 package action::survey;
10 use base qw/action/;
11 __PACKAGE__->table('action_survey');
12 __PACKAGE__->columns(Primary => 'id');
13 __PACKAGE__->columns(Essential => qw/name description owner start_date
14                                      end_date usr_summary opac poll required/);
15 #-------------------------------------------------------------------------------
16
17 package action::survey_question;
18 use base qw/action/;
19 __PACKAGE__->table('action_survey_question');
20 __PACKAGE__->columns(Primary => 'id');
21 __PACKAGE__->columns(Essential => qw/survey question/);
22 #-------------------------------------------------------------------------------
23
24
25 package action::survey_answer;
26 use base qw/action/;
27 __PACKAGE__->table('action_survey_answer');
28 __PACKAGE__->columns(Primary => 'id');
29 __PACKAGE__->columns(Essential => qw/question answer/);
30 #-------------------------------------------------------------------------------
31
32 package action::survey_response;
33 use base qw/action/;
34 __PACKAGE__->table('action_survey_response');
35 __PACKAGE__->columns(Primary => 'id');
36 __PACKAGE__->columns(Essential => qw/response_group_id usr survey question
37                                      answer answer_date effective_date/);
38 #-------------------------------------------------------------------------------
39
40 package action::circulation;
41 use base qw/action/;
42 __PACKAGE__->table('action_circulation');
43 __PACKAGE__->columns(Primary => 'id');
44 __PACKAGE__->columns(Essential => qw/xact_start usr target_copy circ_lib
45                                      duration duration_rule renewal_remaining
46                                      recuring_fine_rule recuring_fine stop_fines
47                                      max_fine max_fine_rule fine_interval
48                                      stop_fines xact_finish due_date renewal/);
49
50 #-------------------------------------------------------------------------------
51
52 package action::open_circulation;
53 use base qw/action/;
54 __PACKAGE__->table('action_open_circulation');
55 __PACKAGE__->columns(Primary => 'id');
56 __PACKAGE__->columns(Essential => qw/xact_start usr target_copy circ_lib
57                                      duration duration_rule renewal_remaining
58                                      recuring_fine_rule recuring_fine stop_fines
59                                      max_fine max_fine_rule fine_interval
60                                      stop_fines xact_finish due_date renewal/);
61
62 #-------------------------------------------------------------------------------
63
64 package action::hold_request;
65 use base qw/action/;
66 __PACKAGE__->table('action_hold_request');
67 __PACKAGE__->columns(Primary => 'id');
68 __PACKAGE__->columns(Essential => qw/request_time capture_time fulfillment_time
69                                      prev_check_time expire_time requestor usr
70                                      hold_type holdable_formats target
71                                      phone_notify email_notify selection_depth
72                                      pickup_lib current_copy/);
73
74 #-------------------------------------------------------------------------------
75
76 package action::hold_notification;
77 use base qw/action/;
78 __PACKAGE__->table('action_hold_notification');
79 __PACKAGE__->columns(Primary => 'id');
80 __PACKAGE__->columns(Essential => qw/hold method notify_time note/);
81
82 #-------------------------------------------------------------------------------
83
84 package action::hold_copy_map;
85 use base qw/action/;
86 __PACKAGE__->table('action_hold_copy_map');
87 __PACKAGE__->columns(Primary => 'id');
88 __PACKAGE__->columns(Essential => qw/hold target_copy/);
89
90 #-------------------------------------------------------------------------------
91
92 package action::hold_transit_copy;
93 use base qw/action/;
94 __PACKAGE__->table('action_hold_transit_copy');
95 __PACKAGE__->columns(Primary => 'id');
96 __PACKAGE__->columns(Essential => qw/hold source dest persistant_transfer target_copy
97                                      source_send_time dest_recv_time prev_hop/);
98
99 #-------------------------------------------------------------------------------
100
101 package action::transit_copy;
102 use base qw/action/;
103 __PACKAGE__->table('action_transit_copy');
104 __PACKAGE__->columns(Primary => 'id');
105 __PACKAGE__->columns(Essential => qw/source dest persistant_transfer target_copy
106                                      source_send_time dest_recv_time prev_hop/);
107
108 #-------------------------------------------------------------------------------
109
110 package action::unfulfilled_hold_list;
111 use base qw/action/;
112 __PACKAGE__->table('action_.unfulfilled_hold_list');
113 __PACKAGE__->columns(Primary => 'id');
114 __PACKAGE__->columns(Essential => qw/hold current_copy circ_lib fail_time /);
115
116 #-------------------------------------------------------------------------------
117
118 1;
119