]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/src/perlmods/OpenILS/Application/Storage/Driver/Pg/dbi.pm
adding work_payment type and the /strong/ urging of PINES; extending the auth proxy...
[Evergreen.git] / Open-ILS / src / perlmods / OpenILS / Application / Storage / Driver / Pg / dbi.pm
1 {
2
3         #-------------------------------------------------------------------------------
4         package container::user_bucket;
5
6         container::user_bucket->table( 'container.user_bucket' );
7         container::user_bucket->sequence( 'container.user_bucket_id_seq' );
8
9         #-------------------------------------------------------------------------------
10         package container::user_bucket_item;
11
12         container::user_bucket_item->table( 'container.user_bucket_item' );
13         container::user_bucket_item->sequence( 'container.user_bucket_item_id_seq' );
14
15         #-------------------------------------------------------------------------------
16         package container::copy_bucket;
17
18         container::copy_bucket->table( 'container.copy_bucket' );
19         container::copy_bucket->sequence( 'container.copy_bucket_id_seq' );
20
21         #-------------------------------------------------------------------------------
22         package container::copy_bucket_item;
23
24         container::copy_bucket_item->table( 'container.copy_bucket_item' );
25         container::copy_bucket_item->sequence( 'container.copy_bucket_item_id_seq' );
26
27         #-------------------------------------------------------------------------------
28         package container::call_number_bucket;
29
30         container::call_number_bucket->table( 'container.call_number_bucket' );
31         container::call_number_bucket->sequence( 'container.call_number_bucket_id_seq' );
32
33         #-------------------------------------------------------------------------------
34         package container::call_number_bucket_item;
35
36         container::call_number_bucket_item->table( 'container.call_number_bucket_item' );
37         container::call_number_bucket_item->sequence( 'container.call_number_bucket_item_id_seq' );
38
39         #-------------------------------------------------------------------------------
40         package container::biblio_record_entry_bucket;
41
42         container::biblio_record_entry_bucket->table( 'container.biblio_record_entry_bucket' );
43         container::biblio_record_entry_bucket->sequence( 'container.biblio_record_entry_bucket_id_seq' );
44
45         #-------------------------------------------------------------------------------
46         package container::biblio_record_entry_bucket_item;
47
48         container::biblio_record_entry_bucket_item->table( 'container.biblio_record_entry_bucket_item' );
49         container::biblio_record_entry_bucket_item->sequence( 'container.biblio_record_entry_bucket_item_id_seq' );
50
51         #---------------------------------------------------------------------
52         package money::grocery;
53         
54         money::grocery->table( 'money.grocery' );
55         money::grocery->sequence( 'money.billable_xact_id_seq' );
56
57         #---------------------------------------------------------------------
58         package money::collections_tracker;
59         
60         money::collections_tracker->table( 'money.collections_tracker' );
61         money::collections_tracker->sequence( 'money.collections_tracker_id_seq' );
62
63         #---------------------------------------------------------------------
64         package money::billable_transaction;
65         
66         money::billable_transaction->table( 'money.billable_xact' );
67         money::billable_transaction->sequence( 'money.billable_xact_id_seq' );
68
69         #---------------------------------------------------------------------
70         package money::billing;
71         
72         money::billing->table( 'money.billing' );
73         money::billing->sequence( 'money.billing_id_seq' );
74
75         #---------------------------------------------------------------------
76         package money::desk_payment;
77         
78         money::desk_payment->table( 'money.desk_payment_view' );
79
80         #---------------------------------------------------------------------
81         package money::payment;
82         
83         money::payment->table( 'money.payment_view' );
84
85         #---------------------------------------------------------------------
86         package money::cash_payment;
87         
88         money::cash_payment->table( 'money.cash_payment' );
89         money::cash_payment->sequence( 'money.payment_id_seq' );
90
91         #---------------------------------------------------------------------
92         package money::check_payment;
93         
94         money::check_payment->table( 'money.check_payment' );
95         money::check_payment->sequence( 'money.payment_id_seq' );
96
97         #---------------------------------------------------------------------
98         package money::credit_payment;
99         
100         money::credit_payment->table( 'money.credit_payment' );
101         money::credit_payment->sequence( 'money.payment_id_seq' );
102
103         #---------------------------------------------------------------------
104         package money::credit_card_payment;
105         
106         money::credit_card_payment->table( 'money.credit_card_payment' );
107         money::credit_card_payment->sequence( 'money.payment_id_seq' );
108
109         #---------------------------------------------------------------------
110         package money::work_payment;
111         
112         money::work_payment->table( 'money.work_payment' );
113         money::work_payment->sequence( 'money.payment_id_seq' );
114
115         #---------------------------------------------------------------------
116         package money::goods_payment;
117         
118         money::goods_payment->table( 'money.goods_payment' );
119         money::goods_payment->sequence( 'money.payment_id_seq' );
120
121         #---------------------------------------------------------------------
122         package money::forgive_payment;
123         
124         money::forgive_payment->table( 'money.forgive_payment' );
125         money::forgive_payment->sequence( 'money.payment_id_seq' );
126
127         #---------------------------------------------------------------------
128         package money::open_billable_transaction_summary;
129         
130         money::open_billable_transaction_summary->table( 'money.open_billable_xact_summary' );
131
132         #---------------------------------------------------------------------
133         package money::billable_transaction_summary;
134         
135         money::billable_transaction_summary->table( 'money.billable_xact_summary' );
136
137         #---------------------------------------------------------------------
138         package money::open_user_summary;
139         
140         money::open_user_summary->table( 'money.open_usr_summary' );
141
142         #---------------------------------------------------------------------
143         package money::user_summary;
144         
145         money::user_summary->table( 'money.usr_summary' );
146
147         #---------------------------------------------------------------------
148         package money::open_user_circulation_summary;
149         
150         money::open_user_circulation_summary->table( 'money.open_usr_circulation_summary' );
151
152         #---------------------------------------------------------------------
153         package money::user_circulation_summary;
154         
155         money::user_circulation_summary->table( 'money.usr_circulation_summary' );
156
157         #---------------------------------------------------------------------
158         package action::circulation;
159         
160         action::circulation->table( 'action.circulation' );
161         action::circulation->sequence( 'money.billable_xact_id_seq' );
162
163         #---------------------------------------------------------------------
164         package action::non_cat_in_house_use;
165         
166         action::non_cat_in_house_use->table( 'action.non_cat_in_house_use' );
167         action::non_cat_in_house_use->sequence( 'action.non_cat_in_house_use_id_seq' );
168
169         #---------------------------------------------------------------------
170         package action::in_house_use;
171         
172         action::in_house_use->table( 'action.in_house_use' );
173         action::in_house_use->sequence( 'action.in_house_use_id_seq' );
174
175         #---------------------------------------------------------------------
176         package action::non_cataloged_circulation;
177         
178         action::non_cataloged_circulation->table( 'action.non_cataloged_circulation' );
179         action::non_cataloged_circulation->sequence( 'action.non_cataloged_circulation_id_seq' );
180
181         #---------------------------------------------------------------------
182         package action::open_circulation;
183         
184         action::open_circulation->table( 'action.open_circulation' );
185
186         #---------------------------------------------------------------------
187         package action::survey;
188         
189         action::survey->table( 'action.survey' );
190         action::survey->sequence( 'action.survey_id_seq' );
191         
192         #---------------------------------------------------------------------
193         package action::survey_question;
194         
195         action::survey_question->table( 'action.survey_question' );
196         action::survey_question->sequence( 'action.survey_question_id_seq' );
197         
198         #---------------------------------------------------------------------
199         package action::survey_answer;
200         
201         action::survey_answer->table( 'action.survey_answer' );
202         action::survey_answer->sequence( 'action.survey_answer_id_seq' );
203         
204         #---------------------------------------------------------------------
205         package action::survey_response;
206         
207         action::survey_response->table( 'action.survey_response' );
208         action::survey_response->sequence( 'action.survey_response_id_seq' );
209         
210         #---------------------------------------------------------------------
211         package config::non_cataloged_type;
212         
213         config::non_cataloged_type->table( 'config.non_cataloged_type' );
214         config::non_cataloged_type->sequence( 'config.non_cataloged_type_id_seq' );
215
216         #---------------------------------------------------------------------
217         package config::copy_status;
218         
219         config::copy_status->table( 'config.copy_status' );
220         config::copy_status->sequence( 'config.copy_status_id_seq' );
221
222         #---------------------------------------------------------------------
223         package config::rules::circ_duration;
224         
225         config::rules::circ_duration->table( 'config.rule_circ_duration' );
226         config::rules::circ_duration->sequence( 'config.rule_circ_duration_id_seq' );
227         
228         #---------------------------------------------------------------------
229         package config::rules::age_hold_protect;
230         
231         config::rules::age_hold_protect->table( 'config.rule_age_hold_protect' );
232         config::rules::age_hold_protect->sequence( 'config.rule_age_hold_protect_id_seq' );
233         
234         #---------------------------------------------------------------------
235         package config::rules::max_fine;
236         
237         config::rules::max_fine->table( 'config.rule_max_fine' );
238         config::rules::max_fine->sequence( 'config.rule_max_fine_id_seq' );
239         
240         #---------------------------------------------------------------------
241         package config::rules::recuring_fine;
242         
243         config::rules::recuring_fine->table( 'config.rule_recuring_fine' );
244         config::rules::recuring_fine->sequence( 'config.rule_recuring_fine_id_seq' );
245         
246         #---------------------------------------------------------------------
247         package config::net_access_level;
248         
249         config::net_access_level->table( 'config.net_access_level' );
250         config::net_access_level->sequence( 'config.net_access_level_id_seq' );
251         
252         #---------------------------------------------------------------------
253         package config::standing;
254         
255         config::standing->table( 'config.standing' );
256         config::standing->sequence( 'config.standing_id_seq' );
257         
258         #---------------------------------------------------------------------
259         package config::metabib_field;
260         
261         config::metabib_field->table( 'config.metabib_field' );
262         config::metabib_field->sequence( 'config.metabib_field_id_seq' );
263         
264         #---------------------------------------------------------------------
265         package config::bib_source;
266         
267         config::bib_source->table( 'config.bib_source' );
268         config::bib_source->sequence( 'config.bib_source_id_seq' );
269         
270         #---------------------------------------------------------------------
271         package config::identification_type;
272         
273         config::identification_type->table( 'config.identification_type' );
274         config::identification_type->sequence( 'config.identification_type_id_seq' );
275         
276         #---------------------------------------------------------------------
277         package asset::call_number_note;
278         
279         asset::call_number_note->table( 'asset.call_number_note' );
280         asset::call_number_note->sequence( 'asset.call_number_note_id_seq' );
281         
282         #---------------------------------------------------------------------
283         package asset::copy_note;
284         
285         asset::copy_note->table( 'asset.copy_note' );
286         asset::copy_note->sequence( 'asset.copy_note_id_seq' );
287
288         #---------------------------------------------------------------------
289         package asset::call_number;
290         
291         asset::call_number->table( 'asset.call_number' );
292         asset::call_number->sequence( 'asset.call_number_id_seq' );
293         
294         #---------------------------------------------------------------------
295         package asset::copy_location;
296         
297         asset::copy_location->table( 'asset.copy_location' );
298         asset::copy_location->sequence( 'asset.copy_location_id_seq' );
299
300         #---------------------------------------------------------------------
301         package asset::copy;
302         
303         asset::copy->table( 'asset.copy' );
304         asset::copy->sequence( 'asset.copy_id_seq' );
305
306         #---------------------------------------------------------------------
307         package asset::stat_cat;
308         
309         asset::stat_cat->table( 'asset.stat_cat' );
310         asset::stat_cat->sequence( 'asset.stat_cat_id_seq' );
311         
312         #---------------------------------------------------------------------
313         package asset::stat_cat_entry;
314         
315         asset::stat_cat_entry->table( 'asset.stat_cat_entry' );
316         asset::stat_cat_entry->sequence( 'asset.stat_cat_entry_id_seq' );
317         
318         #---------------------------------------------------------------------
319         package asset::stat_cat_entry_copy_map;
320         
321         asset::stat_cat_entry_copy_map->table( 'asset.stat_cat_entry_copy_map' );
322         asset::stat_cat_entry_copy_map->sequence( 'asset.stat_cat_entry_copy_map_id_seq' );
323         
324         #---------------------------------------------------------------------
325         package authority::record_entry;
326         
327         authority::record_entry->table( 'authority.record_entry' );
328         authority::record_entry->sequence( 'authority.record_entry_id_seq' );
329
330         #---------------------------------------------------------------------
331         package biblio::record_entry;
332         
333         biblio::record_entry->table( 'biblio.record_entry' );
334         biblio::record_entry->sequence( 'biblio.record_entry_id_seq' );
335
336         #---------------------------------------------------------------------
337         #package biblio::record_marc;
338         #
339         #biblio::record_marc->table( 'biblio.record_marc' );
340         #biblio::record_marc->sequence( 'biblio.record_marc_id_seq' );
341         #
342         #---------------------------------------------------------------------
343         package authority::record_note;
344         
345         authority::record_note->table( 'authority.record_note' );
346         authority::record_note->sequence( 'authority.record_note_id_seq' );
347
348         #---------------------------------------------------------------------
349         package biblio::record_note;
350         
351         biblio::record_note->table( 'biblio.record_note' );
352         biblio::record_note->sequence( 'biblio.record_note_id_seq' );
353         
354         #---------------------------------------------------------------------
355         package actor::workstation;
356         
357         actor::workstation->table( 'actor.workstation' );
358         actor::workstation->sequence( 'actor.workstation_id_seq' );
359
360         #---------------------------------------------------------------------
361         package actor::user;
362         
363         actor::user->table( 'actor.usr' );
364         actor::user->sequence( 'actor.usr_id_seq' );
365
366         #---------------------------------------------------------------------
367         package actor::org_unit::closed_date;
368         
369         actor::org_unit::closed_date->table( 'actor.org_unit_closed' );
370         actor::org_unit::closed_date->sequence( 'actor.org_unit_closed_id_seq' );
371
372         #---------------------------------------------------------------------
373         package actor::org_unit_setting;
374         
375         actor::org_unit_setting->table( 'actor.org_unit_setting' );
376         actor::org_unit_setting->sequence( 'actor.org_unit_setting_id_seq' );
377
378         #---------------------------------------------------------------------
379         package actor::user_standing_penalty;
380         
381         actor::user_standing_penalty->table( 'actor.usr_standing_penalty' );
382         actor::user_standing_penalty->sequence( 'actor.usr_standing_penalty_id_seq' );
383
384         #---------------------------------------------------------------------
385         package actor::user_setting;
386         
387         actor::user_setting->table( 'actor.usr_setting' );
388         actor::user_setting->sequence( 'actor.usr_setting_id_seq' );
389
390         #---------------------------------------------------------------------
391         package actor::user_address;
392         
393         actor::user_address->table( 'actor.usr_address' );
394         actor::user_address->sequence( 'actor.usr_address_id_seq' );
395
396         #---------------------------------------------------------------------
397         package actor::org_address;
398         
399         actor::org_address->table( 'actor.org_address' );
400         actor::org_address->sequence( 'actor.org_address_id_seq' );
401         
402         #---------------------------------------------------------------------
403         package actor::usr_org_unit_opt_in;
404         
405         actor::usr_org_unit_opt_in->table( 'actor.usr_org_unit_opt_in' );
406         actor::usr_org_unit_opt_in->sequence( 'actor.usr_org_unit_opt_in_id_seq' );
407
408         #---------------------------------------------------------------------
409         package actor::org_unit_proximity;
410         
411         actor::org_unit_proximity->table( 'actor.org_unit_proximity' );
412         actor::org_unit_proximity->sequence( 'actor.org_unit_proximity_id_seq' );
413
414         #---------------------------------------------------------------------
415         package actor::org_unit_type;
416         
417         actor::org_unit_type->table( 'actor.org_unit_type' );
418         actor::org_unit_type->sequence( 'actor.org_unit_type_id_seq' );
419
420         #---------------------------------------------------------------------
421         package actor::org_unit::hours_of_operation;
422         
423         actor::org_unit::hours_of_operation->table( 'actor.hours_of_operation' );
424
425         #---------------------------------------------------------------------
426         package actor::org_unit;
427         
428         actor::org_unit->table( 'actor.org_unit' );
429         actor::org_unit->sequence( 'actor.org_unit_id_seq' );
430
431         #---------------------------------------------------------------------
432         package actor::stat_cat;
433         
434         actor::stat_cat->table( 'actor.stat_cat' );
435         actor::stat_cat->sequence( 'actor.stat_cat_id_seq' );
436         
437         #---------------------------------------------------------------------
438         package actor::stat_cat_entry;
439         
440         actor::stat_cat_entry->table( 'actor.stat_cat_entry' );
441         actor::stat_cat_entry->sequence( 'actor.stat_cat_entry_id_seq' );
442         
443         #---------------------------------------------------------------------
444         package actor::stat_cat_entry_user_map;
445         
446         actor::stat_cat_entry_user_map->table( 'actor.stat_cat_entry_usr_map' );
447         actor::stat_cat_entry_user_map->sequence( 'actor.stat_cat_entry_usr_map_id_seq' );
448         
449         #---------------------------------------------------------------------
450         package actor::card;
451         
452         actor::card->table( 'actor.card' );
453         actor::card->sequence( 'actor.card_id_seq' );
454
455         #---------------------------------------------------------------------
456         package actor::usr_note;
457         
458         actor::usr_note->table( 'actor.usr_note' );
459         actor::usr_note->sequence( 'actor.usr_note_id_seq' );
460
461         #---------------------------------------------------------------------
462
463         #-------------------------------------------------------------------------------
464         package metabib::metarecord;
465
466         metabib::metarecord->table( 'metabib.metarecord' );
467         metabib::metarecord->sequence( 'metabib.metarecord_id_seq' );
468
469
470         #-------------------------------------------------------------------------------
471
472         #-------------------------------------------------------------------------------
473         package metabib::title_field_entry;
474
475         metabib::title_field_entry->table( 'metabib.title_field_entry' );
476         metabib::title_field_entry->sequence( 'metabib.title_field_entry_id_seq' );
477         metabib::title_field_entry->columns( 'FTS' => 'index_vector' );
478
479 #       metabib::title_field_entry->add_trigger(
480 #               before_create => \&OpenILS::Application::Storage::Driver::Pg::tsearch2_trigger
481 #       );
482 #       metabib::title_field_entry->add_trigger(
483 #               before_update => \&OpenILS::Application::Storage::Driver::Pg::tsearch2_trigger
484 #       );
485
486         #-------------------------------------------------------------------------------
487
488         #-------------------------------------------------------------------------------
489         package metabib::author_field_entry;
490
491         metabib::author_field_entry->table( 'metabib.author_field_entry' );
492         metabib::author_field_entry->sequence( 'metabib.author_field_entry_id_seq' );
493         metabib::author_field_entry->columns( 'FTS' => 'index_vector' );
494
495         #-------------------------------------------------------------------------------
496
497         #-------------------------------------------------------------------------------
498         package metabib::subject_field_entry;
499
500         metabib::subject_field_entry->table( 'metabib.subject_field_entry' );
501         metabib::subject_field_entry->sequence( 'metabib.subject_field_entry_id_seq' );
502         metabib::subject_field_entry->columns( 'FTS' => 'index_vector' );
503
504         #-------------------------------------------------------------------------------
505
506         #-------------------------------------------------------------------------------
507         package metabib::keyword_field_entry;
508
509         metabib::keyword_field_entry->table( 'metabib.keyword_field_entry' );
510         metabib::keyword_field_entry->sequence( 'metabib.keyword_field_entry_id_seq' );
511         metabib::keyword_field_entry->columns( 'FTS' => 'index_vector' );
512
513         #-------------------------------------------------------------------------------
514         package metabib::series_field_entry;
515
516         metabib::series_field_entry->table( 'metabib.series_field_entry' );
517         metabib::series_field_entry->sequence( 'metabib.series_field_entry_id_seq' );
518         metabib::series_field_entry->columns( 'FTS' => 'index_vector' );
519
520         #-------------------------------------------------------------------------------
521
522         #-------------------------------------------------------------------------------
523         #package metabib::title_field_entry_source_map;
524
525         #metabib::title_field_entry_source_map->table( 'metabib.title_field_entry_source_map' );
526
527         #-------------------------------------------------------------------------------
528
529         #-------------------------------------------------------------------------------
530         #package metabib::author_field_entry_source_map;
531
532         #metabib::author_field_entry_source_map->table( 'metabib.author_field_entry_source_map' );
533
534         #-------------------------------------------------------------------------------
535
536         #-------------------------------------------------------------------------------
537         #package metabib::subject_field_entry_source_map;
538
539         #metabib::subject_field_entry_source_map->table( 'metabib.subject_field_entry_source_map' );
540
541         #-------------------------------------------------------------------------------
542
543         #-------------------------------------------------------------------------------
544         #package metabib::keyword_field_entry_source_map;
545
546         #metabib::keyword_field_entry_source_map->table( 'metabib.keyword_field_entry_source_map' );
547
548         #-------------------------------------------------------------------------------
549
550         #-------------------------------------------------------------------------------
551         package metabib::metarecord_source_map;
552
553         metabib::metarecord_source_map->table( 'metabib.metarecord_source_map' );
554         metabib::metarecord_source_map->sequence( 'metabib.metarecord_source_map_id_seq' );
555
556         #-------------------------------------------------------------------------------
557         package authority::record_descriptor;
558
559         authority::record_descriptor->table( 'authority.rec_descriptor' );
560         authority::record_descriptor->sequence( 'authority.rec_descriptor_id_seq' );
561
562         #-------------------------------------------------------------------------------
563         package metabib::record_descriptor;
564
565         metabib::record_descriptor->table( 'metabib.rec_descriptor' );
566         metabib::record_descriptor->sequence( 'metabib.rec_descriptor_id_seq' );
567
568         #-------------------------------------------------------------------------------
569
570
571         #-------------------------------------------------------------------------------
572         package authority::full_rec;
573
574         authority::full_rec->table( 'authority.full_rec' );
575         authority::full_rec->sequence( 'authority.full_rec_id_seq' );
576         authority::full_rec->columns( 'FTS' => 'index_vector' );
577
578         #-------------------------------------------------------------------------------
579         package metabib::full_rec;
580
581         metabib::full_rec->table( 'metabib.full_rec' );
582         metabib::full_rec->sequence( 'metabib.full_rec_id_seq' );
583         metabib::full_rec->columns( 'FTS' => 'index_vector' );
584
585         #-------------------------------------------------------------------------------
586
587         package permission::perm_list;
588
589         permission::perm_list->sequence( 'permission.perm_list_id_seq' );
590         permission::perm_list->table('permission.perm_list');
591
592         #-------------------------------------------------------------------------------
593
594         package permission::grp_tree;
595
596         permission::grp_tree->sequence( 'permission.grp_tree_id_seq' );
597         permission::grp_tree->table('permission.grp_tree');
598
599         #-------------------------------------------------------------------------------
600
601         package permission::usr_grp_map;
602
603         permission::usr_grp_map->sequence( 'permission.usr_grp_map_id_seq' );
604         permission::usr_grp_map->table('permission.usr_grp_map');
605
606         #-------------------------------------------------------------------------------
607
608         package permission::usr_work_ou_map;
609         permission::usr_work_ou_map->sequence('permission.usr_work_ou_map_id_seq');
610         permission::usr_work_ou_map->table('permission.usr_work_ou_map');
611
612         #-------------------------------------------------------------------------------
613
614         package permission::usr_perm_map;
615
616         permission::usr_perm_map->sequence( 'permission.usr_perm_map_id_seq' );
617         permission::usr_perm_map->table('permission.usr_perm_map');
618
619         #-------------------------------------------------------------------------------
620
621         package permission::grp_perm_map;
622
623         permission::grp_perm_map->sequence( 'permission.grp_perm_map_id_seq' );
624         permission::grp_perm_map->table('permission.grp_perm_map');
625
626         #-------------------------------------------------------------------------------
627
628         package action::hold_request;
629
630         action::hold_request->sequence( 'action.hold_request_id_seq' );
631         action::hold_request->table('action.hold_request');
632
633         #-------------------------------------------------------------------------------
634
635         package action::hold_notification;
636
637         action::hold_notification->sequence( 'action.hold_notification_id_seq' );
638         action::hold_notification->table('action.hold_notification');
639
640         #-------------------------------------------------------------------------------
641
642         package action::hold_copy_map;
643
644         action::hold_copy_map->sequence( 'action.hold_copy_map_id_seq' );
645         action::hold_copy_map->table('action.hold_copy_map');
646
647         #-------------------------------------------------------------------------------
648
649         package action::hold_transit_copy;
650
651         action::hold_transit_copy->sequence( 'action.transit_copy_id_seq' );
652         action::hold_transit_copy->table('action.hold_transit_copy');
653
654         #-------------------------------------------------------------------------------
655
656         package action::transit_copy;
657
658         action::transit_copy->sequence( 'action.transit_copy_id_seq' );
659         action::transit_copy->table('action.transit_copy');
660
661         #-------------------------------------------------------------------------------
662
663         package action::unfulfilled_hold_list;
664
665         action::unfulfilled_hold_list->sequence( 'action.unfulfilled_hold_list_id_seq' );
666         action::unfulfilled_hold_list->table('action.unfulfilled_hold_list');
667
668         #-------------------------------------------------------------------------------
669
670         package config::language_map;
671         config::language_map->table('config.language_map');
672
673         #-------------------------------------------------------------------------------
674
675         package config::item_form_map;
676         config::item_form_map->table('config.item_form_map');
677
678         #-------------------------------------------------------------------------------
679
680         package config::lit_form_map;
681         config::lit_form_map->table('config.lit_form_map');
682
683         #-------------------------------------------------------------------------------
684
685         package config::item_type_map;
686         config::item_type_map->table('config.item_type_map');
687
688         #-------------------------------------------------------------------------------
689         package config::audience_map;
690         config::audience_map->table('config.audience_map');
691
692         #-------------------------------------------------------------------------------
693
694
695 }
696
697 for my $class ( qw/
698                         biblio::record_entry
699                         metabib::metarecord
700                         metabib::title_field_entry
701                         metabib::author_field_entry
702                         metabib::subject_field_entry
703                         metabib::keyword_field_entry
704                         metabib::series_field_entry
705                         metabib::metarecord_source_map
706                         metabib::record_descriptor
707                         metabib::full_rec
708                         authority::record_descriptor
709                         authority::full_rec
710                 / ) {
711
712         (my $method_class = $class) =~ s/::/./go;
713
714         for my $type ( qw/create create_start create_push create_finish/ ) {
715                 my ($name,$part) = split('_', $type);
716
717                 my $apiname = "open-ils.storage.direct.$method_class.batch.$name";
718                 $apiname .= ".$part" if ($part);
719
720                 OpenILS::Application::Storage->register_method(
721                         api_name        => $apiname,
722                         method          => "copy_$type",
723                         api_level       => 1,
724                         'package'       => 'OpenILS::Application::Storage',
725                         cdbi            => $class,
726                 );
727         }
728 }
729
730
731 1;