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