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