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