e46b0fb632de0cecf376ba45abf608cef9828082
[working/Evergreen.git] / Open-ILS / src / perlmods / lib / 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::in_house_use;
10 use base qw/action/;
11 __PACKAGE__->table('action_in_house_use');
12 __PACKAGE__->columns(Primary => 'id');
13 __PACKAGE__->columns(Essential => qw/item staff org_unit use_time/);
14 #-------------------------------------------------------------------------------
15
16 package action::non_cat_in_house_use;
17 use base qw/action/;
18 __PACKAGE__->table('action_non_cat_in_house_use');
19 __PACKAGE__->columns(Primary => 'id');
20 __PACKAGE__->columns(Essential => qw/item_type staff org_unit use_time/);
21 #-------------------------------------------------------------------------------
22
23 package action::non_cataloged_circulation;
24 use base qw/action/;
25 __PACKAGE__->table('action_non_cataloged_circulation');
26 __PACKAGE__->columns(Primary => 'id');
27 __PACKAGE__->columns(Essential => qw/patron staff circ_lib item_type circ_time/);
28 #-------------------------------------------------------------------------------
29
30 package action::survey;
31 use base qw/action/;
32 __PACKAGE__->table('action_survey');
33 __PACKAGE__->columns(Primary => 'id');
34 __PACKAGE__->columns(Essential => qw/name description owner start_date
35                      end_date usr_summary opac poll required/);
36 #-------------------------------------------------------------------------------
37
38 package action::survey_question;
39 use base qw/action/;
40 __PACKAGE__->table('action_survey_question');
41 __PACKAGE__->columns(Primary => 'id');
42 __PACKAGE__->columns(Essential => qw/survey question/);
43 #-------------------------------------------------------------------------------
44
45
46 package action::survey_answer;
47 use base qw/action/;
48 __PACKAGE__->table('action_survey_answer');
49 __PACKAGE__->columns(Primary => 'id');
50 __PACKAGE__->columns(Essential => qw/question answer/);
51 #-------------------------------------------------------------------------------
52
53 package action::survey_response;
54 use base qw/action/;
55 __PACKAGE__->table('action_survey_response');
56 __PACKAGE__->columns(Primary => 'id');
57 __PACKAGE__->columns(Essential => qw/response_group_id usr survey question
58                      answer answer_date effective_date/);
59 #-------------------------------------------------------------------------------
60
61 package action::circulation;
62 use base qw/action/;
63 __PACKAGE__->table('action_circulation');
64 __PACKAGE__->columns(Primary => 'id');
65 __PACKAGE__->columns(Essential => qw/xact_start usr target_copy circ_lib
66                      duration duration_rule renewal_remaining grace_period
67                      recurring_fine_rule recurring_fine stop_fines
68                      max_fine max_fine_rule fine_interval
69                      stop_fines xact_finish due_date opac_renewal
70                      checkin_staff circ_staff circ_lib checkin_lib
71                      stop_fines_time checkin_time desk_renewal
72                      phone_renewal create_time copy_location/);
73
74 #-------------------------------------------------------------------------------
75
76 package action::open_circulation;
77 use base qw/action/;
78 __PACKAGE__->table('action_open_circulation');
79 __PACKAGE__->columns(Primary => 'id');
80 __PACKAGE__->columns(Essential => qw/xact_start usr target_copy circ_lib
81                      duration duration_rule renewal_remaining grace_period
82                      recurring_fine_rule recurring_fine stop_fines
83                      max_fine max_fine_rule fine_interval
84                      stop_fines xact_finish due_date opac_renewal
85                      checkin_staff circ_staff circ_lib checkin_lib
86                      stop_fines_time checkin_time desk_renewal
87                      phone_renewal/);
88
89 #-------------------------------------------------------------------------------
90
91 package action::hold_request;
92 use base qw/action/;
93 __PACKAGE__->table('action_hold_request');
94 __PACKAGE__->columns(Primary => 'id');
95 __PACKAGE__->columns(Essential => qw/request_time capture_time fulfillment_time
96                      prev_check_time expire_time requestor usr cancel_cause
97                      hold_type holdable_formats target cancel_time shelf_time
98                      phone_notify email_notify sms_notify sms_carrier selection_depth cancel_note
99                      pickup_lib current_copy request_lib frozen thaw_date mint_condition
100                      fulfillment_staff fulfillment_lib selection_ou cut_in_line
101                      shelf_expire_time current_shelf_lib/);
102
103 #-------------------------------------------------------------------------------
104
105 package action::hold_notification;
106 use base qw/action/;
107 __PACKAGE__->table('action_hold_notification');
108 __PACKAGE__->columns(Primary => 'id');
109 __PACKAGE__->columns(Essential => qw/hold method notify_time note notify_staff/);
110
111 #-------------------------------------------------------------------------------
112
113 package action::hold_copy_map;
114 use base qw/action/;
115 __PACKAGE__->table('action_hold_copy_map');
116 __PACKAGE__->columns(Primary => 'id');
117 __PACKAGE__->columns(Essential => qw/hold target_copy proximity/);
118
119 #-------------------------------------------------------------------------------
120
121 package action::hold_transit_copy;
122 use base qw/action/;
123 __PACKAGE__->table('action_hold_transit_copy');
124 __PACKAGE__->columns(Primary => 'id');
125 __PACKAGE__->columns(Essential => qw/source dest persistant_transfer target_copy
126                      source_send_time dest_recv_time prev_hop prev_dest
127                      copy_status hold/);
128
129 #-------------------------------------------------------------------------------
130
131 package action::reservation_transit_copy;
132 use base qw/action/;
133 __PACKAGE__->table('action_reservation_transit_copy');
134 __PACKAGE__->columns(Primary => 'id');
135 __PACKAGE__->columns(Essential => qw/source dest persistant_transfer target_copy
136                      source_send_time dest_recv_time prev_hop prev_dest
137                      copy_status reservation/);
138
139 #-------------------------------------------------------------------------------
140
141 package action::transit_copy;
142 use base qw/action/;
143 __PACKAGE__->table('action_transit_copy');
144 __PACKAGE__->columns(Primary => 'id');
145 __PACKAGE__->columns(Essential => qw/source dest persistant_transfer target_copy
146                      source_send_time dest_recv_time prev_hop prev_dest
147                      copy_status/);
148
149 #-------------------------------------------------------------------------------
150
151 package action::unfulfilled_hold_list;
152 use base qw/action/;
153 __PACKAGE__->table('action_unfulfilled_hold_list');
154 __PACKAGE__->columns(Primary => 'id');
155 __PACKAGE__->columns(Essential => qw/hold current_copy circ_lib fail_time /);
156
157 #-------------------------------------------------------------------------------
158
159 1;
160