1bbdd6c8d9f87ceeecb65cefa2d400a179c066f8
[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::org_unit_proximity;
398         
399         actor::org_unit_proximity->table( 'actor.org_unit_proximity' );
400         actor::org_unit_proximity->sequence( 'actor.org_unit_proximity_id_seq' );
401
402         #---------------------------------------------------------------------
403         package actor::org_unit_type;
404         
405         actor::org_unit_type->table( 'actor.org_unit_type' );
406         actor::org_unit_type->sequence( 'actor.org_unit_type_id_seq' );
407
408         #---------------------------------------------------------------------
409         package actor::org_unit::hours_of_operation;
410         
411         actor::org_unit::hours_of_operation->table( 'actor.hours_of_operation' );
412
413         #---------------------------------------------------------------------
414         package actor::org_unit;
415         
416         actor::org_unit->table( 'actor.org_unit' );
417         actor::org_unit->sequence( 'actor.org_unit_id_seq' );
418
419         #---------------------------------------------------------------------
420         package actor::stat_cat;
421         
422         actor::stat_cat->table( 'actor.stat_cat' );
423         actor::stat_cat->sequence( 'actor.stat_cat_id_seq' );
424         
425         #---------------------------------------------------------------------
426         package actor::stat_cat_entry;
427         
428         actor::stat_cat_entry->table( 'actor.stat_cat_entry' );
429         actor::stat_cat_entry->sequence( 'actor.stat_cat_entry_id_seq' );
430         
431         #---------------------------------------------------------------------
432         package actor::stat_cat_entry_user_map;
433         
434         actor::stat_cat_entry_user_map->table( 'actor.stat_cat_entry_usr_map' );
435         actor::stat_cat_entry_user_map->sequence( 'actor.stat_cat_entry_usr_map_id_seq' );
436         
437         #---------------------------------------------------------------------
438         package actor::card;
439         
440         actor::card->table( 'actor.card' );
441         actor::card->sequence( 'actor.card_id_seq' );
442
443         #---------------------------------------------------------------------
444         package actor::usr_note;
445         
446         actor::usr_note->table( 'actor.usr_note' );
447         actor::usr_note->sequence( 'actor.usr_note_id_seq' );
448
449         #---------------------------------------------------------------------
450
451         #-------------------------------------------------------------------------------
452         package metabib::metarecord;
453
454         metabib::metarecord->table( 'metabib.metarecord' );
455         metabib::metarecord->sequence( 'metabib.metarecord_id_seq' );
456
457
458         #-------------------------------------------------------------------------------
459
460         #-------------------------------------------------------------------------------
461         package metabib::title_field_entry;
462
463         metabib::title_field_entry->table( 'metabib.title_field_entry' );
464         metabib::title_field_entry->sequence( 'metabib.title_field_entry_id_seq' );
465         metabib::title_field_entry->columns( 'FTS' => 'index_vector' );
466
467 #       metabib::title_field_entry->add_trigger(
468 #               before_create => \&OpenILS::Application::Storage::Driver::Pg::tsearch2_trigger
469 #       );
470 #       metabib::title_field_entry->add_trigger(
471 #               before_update => \&OpenILS::Application::Storage::Driver::Pg::tsearch2_trigger
472 #       );
473
474         #-------------------------------------------------------------------------------
475
476         #-------------------------------------------------------------------------------
477         package metabib::author_field_entry;
478
479         metabib::author_field_entry->table( 'metabib.author_field_entry' );
480         metabib::author_field_entry->sequence( 'metabib.author_field_entry_id_seq' );
481         metabib::author_field_entry->columns( 'FTS' => 'index_vector' );
482
483         #-------------------------------------------------------------------------------
484
485         #-------------------------------------------------------------------------------
486         package metabib::subject_field_entry;
487
488         metabib::subject_field_entry->table( 'metabib.subject_field_entry' );
489         metabib::subject_field_entry->sequence( 'metabib.subject_field_entry_id_seq' );
490         metabib::subject_field_entry->columns( 'FTS' => 'index_vector' );
491
492         #-------------------------------------------------------------------------------
493
494         #-------------------------------------------------------------------------------
495         package metabib::keyword_field_entry;
496
497         metabib::keyword_field_entry->table( 'metabib.keyword_field_entry' );
498         metabib::keyword_field_entry->sequence( 'metabib.keyword_field_entry_id_seq' );
499         metabib::keyword_field_entry->columns( 'FTS' => 'index_vector' );
500
501         #-------------------------------------------------------------------------------
502         package metabib::series_field_entry;
503
504         metabib::series_field_entry->table( 'metabib.series_field_entry' );
505         metabib::series_field_entry->sequence( 'metabib.series_field_entry_id_seq' );
506         metabib::series_field_entry->columns( 'FTS' => 'index_vector' );
507
508         #-------------------------------------------------------------------------------
509
510         #-------------------------------------------------------------------------------
511         #package metabib::title_field_entry_source_map;
512
513         #metabib::title_field_entry_source_map->table( 'metabib.title_field_entry_source_map' );
514
515         #-------------------------------------------------------------------------------
516
517         #-------------------------------------------------------------------------------
518         #package metabib::author_field_entry_source_map;
519
520         #metabib::author_field_entry_source_map->table( 'metabib.author_field_entry_source_map' );
521
522         #-------------------------------------------------------------------------------
523
524         #-------------------------------------------------------------------------------
525         #package metabib::subject_field_entry_source_map;
526
527         #metabib::subject_field_entry_source_map->table( 'metabib.subject_field_entry_source_map' );
528
529         #-------------------------------------------------------------------------------
530
531         #-------------------------------------------------------------------------------
532         #package metabib::keyword_field_entry_source_map;
533
534         #metabib::keyword_field_entry_source_map->table( 'metabib.keyword_field_entry_source_map' );
535
536         #-------------------------------------------------------------------------------
537
538         #-------------------------------------------------------------------------------
539         package metabib::metarecord_source_map;
540
541         metabib::metarecord_source_map->table( 'metabib.metarecord_source_map' );
542         metabib::metarecord_source_map->sequence( 'metabib.metarecord_source_map_id_seq' );
543
544         #-------------------------------------------------------------------------------
545         package authority::record_descriptor;
546
547         authority::record_descriptor->table( 'authority.rec_descriptor' );
548         authority::record_descriptor->sequence( 'authority.rec_descriptor_id_seq' );
549
550         #-------------------------------------------------------------------------------
551         package metabib::record_descriptor;
552
553         metabib::record_descriptor->table( 'metabib.rec_descriptor' );
554         metabib::record_descriptor->sequence( 'metabib.rec_descriptor_id_seq' );
555
556         #-------------------------------------------------------------------------------
557
558
559         #-------------------------------------------------------------------------------
560         package authority::full_rec;
561
562         authority::full_rec->table( 'authority.full_rec' );
563         authority::full_rec->sequence( 'authority.full_rec_id_seq' );
564         authority::full_rec->columns( 'FTS' => 'index_vector' );
565
566         #-------------------------------------------------------------------------------
567         package metabib::full_rec;
568
569         metabib::full_rec->table( 'metabib.full_rec' );
570         metabib::full_rec->sequence( 'metabib.full_rec_id_seq' );
571         metabib::full_rec->columns( 'FTS' => 'index_vector' );
572
573         #-------------------------------------------------------------------------------
574
575         package permission::perm_list;
576
577         permission::perm_list->sequence( 'permission.perm_list_id_seq' );
578         permission::perm_list->table('permission.perm_list');
579
580         #-------------------------------------------------------------------------------
581
582         package permission::grp_tree;
583
584         permission::grp_tree->sequence( 'permission.grp_tree_id_seq' );
585         permission::grp_tree->table('permission.grp_tree');
586
587         #-------------------------------------------------------------------------------
588
589         package permission::usr_grp_map;
590
591         permission::usr_grp_map->sequence( 'permission.usr_grp_map_id_seq' );
592         permission::usr_grp_map->table('permission.usr_grp_map');
593
594         #-------------------------------------------------------------------------------
595
596         package permission::usr_work_ou_map;
597         permission::usr_work_ou_map->sequence('permission.usr_work_ou_map_id_seq');
598         permission::usr_work_ou_map->table('permission.usr_work_ou_map');
599
600         #-------------------------------------------------------------------------------
601
602         package permission::usr_perm_map;
603
604         permission::usr_perm_map->sequence( 'permission.usr_perm_map_id_seq' );
605         permission::usr_perm_map->table('permission.usr_perm_map');
606
607         #-------------------------------------------------------------------------------
608
609         package permission::grp_perm_map;
610
611         permission::grp_perm_map->sequence( 'permission.grp_perm_map_id_seq' );
612         permission::grp_perm_map->table('permission.grp_perm_map');
613
614         #-------------------------------------------------------------------------------
615
616         package action::hold_request;
617
618         action::hold_request->sequence( 'action.hold_request_id_seq' );
619         action::hold_request->table('action.hold_request');
620
621         #-------------------------------------------------------------------------------
622
623         package action::hold_notification;
624
625         action::hold_notification->sequence( 'action.hold_notification_id_seq' );
626         action::hold_notification->table('action.hold_notification');
627
628         #-------------------------------------------------------------------------------
629
630         package action::hold_copy_map;
631
632         action::hold_copy_map->sequence( 'action.hold_copy_map_id_seq' );
633         action::hold_copy_map->table('action.hold_copy_map');
634
635         #-------------------------------------------------------------------------------
636
637         package action::hold_transit_copy;
638
639         action::hold_transit_copy->sequence( 'action.transit_copy_id_seq' );
640         action::hold_transit_copy->table('action.hold_transit_copy');
641
642         #-------------------------------------------------------------------------------
643
644         package action::transit_copy;
645
646         action::transit_copy->sequence( 'action.transit_copy_id_seq' );
647         action::transit_copy->table('action.transit_copy');
648
649         #-------------------------------------------------------------------------------
650
651         package action::unfulfilled_hold_list;
652
653         action::unfulfilled_hold_list->sequence( 'action.unfulfilled_hold_list_id_seq' );
654         action::unfulfilled_hold_list->table('action.unfulfilled_hold_list');
655
656         #-------------------------------------------------------------------------------
657
658         package config::language_map;
659         config::language_map->table('config.language_map');
660
661         #-------------------------------------------------------------------------------
662
663         package config::item_form_map;
664         config::item_form_map->table('config.item_form_map');
665
666         #-------------------------------------------------------------------------------
667
668         package config::lit_form_map;
669         config::lit_form_map->table('config.lit_form_map');
670
671         #-------------------------------------------------------------------------------
672
673         package config::item_type_map;
674         config::item_type_map->table('config.item_type_map');
675
676         #-------------------------------------------------------------------------------
677         package config::audience_map;
678         config::audience_map->table('config.audience_map');
679
680         #-------------------------------------------------------------------------------
681
682
683 }
684
685 for my $class ( qw/
686                         biblio::record_entry
687                         metabib::metarecord
688                         metabib::title_field_entry
689                         metabib::author_field_entry
690                         metabib::subject_field_entry
691                         metabib::keyword_field_entry
692                         metabib::series_field_entry
693                         metabib::metarecord_source_map
694                         metabib::record_descriptor
695                         metabib::full_rec
696                         authority::record_descriptor
697                         authority::full_rec
698                 / ) {
699
700         (my $method_class = $class) =~ s/::/./go;
701
702         for my $type ( qw/create create_start create_push create_finish/ ) {
703                 my ($name,$part) = split('_', $type);
704
705                 my $apiname = "open-ils.storage.direct.$method_class.batch.$name";
706                 $apiname .= ".$part" if ($part);
707
708                 OpenILS::Application::Storage->register_method(
709                         api_name        => $apiname,
710                         method          => "copy_$type",
711                         api_level       => 1,
712                         'package'       => 'OpenILS::Application::Storage',
713                         cdbi            => $class,
714                 );
715         }
716 }
717
718
719 1;