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