]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/src/perlmods/OpenILS/Application/Storage/CDBI/serial.pm
integrate serial.unit by relaxing fkeys against asset.copy and adding hold support
[Evergreen.git] / Open-ILS / src / perlmods / OpenILS / Application / Storage / CDBI / serial.pm
1 package OpenILS::Application::Storage::CDBI::serial;
2 our $VERSION = 1;
3
4 #-------------------------------------------------------------------------------
5 package serial;
6 use base qw/OpenILS::Application::Storage::CDBI/;
7 #-------------------------------------------------------------------------------
8 package serial::subscription;
9 use base qw/serial/;
10
11 __PACKAGE__->table( 'serial_subscription' );
12 __PACKAGE__->columns( Primary => qw/id/ );
13 __PACKAGE__->columns( Essential => qw/record_entry start_date end_date
14                                    expected_date_offset owning_lib/ );
15
16 #-------------------------------------------------------------------------------
17 package serial::issuance;
18 use base qw/serial/;
19
20 __PACKAGE__->table( 'serial_issuance' );
21 __PACKAGE__->columns( Primary => qw/id/ );
22 __PACKAGE__->columns( Essential => qw/creator editor create_date edit_date
23                                       subscription label date_published
24                                       holding_code holding_type holding_link_id/ );
25
26 #-------------------------------------------------------------------------------
27 package serial::item;
28 use base qw/serial/;
29
30 __PACKAGE__->table( 'serial_item' );
31 __PACKAGE__->columns( Primary => qw/id/ );
32 __PACKAGE__->columns( Essential => qw/creator editor create_date edit_date
33                                       issuance stream unit uri date_expected
34                                       date_received/ );
35
36 #-------------------------------------------------------------------------------
37 package serial::unit;
38 use base qw/serial/;
39
40 __PACKAGE__->table( 'serial_unit' );
41 __PACKAGE__->columns( Primary => qw/id/ );
42 __PACKAGE__->columns( Essential => qw/call_number barcode creator create_date editor
43                                    edit_date copy_number status loan_duration circ_lib
44                                    fine_level circulate deposit price ref opac_visible dummy_isbn
45                                    circ_as_type circ_modifier deposit_amount location mint_condition
46                                    holdable dummy_title dummy_author deleted alert_message label
47                                    age_protect floating label_sort_key contents/ );
48
49 1;
50