Line 0
Link Here
|
|
|
1 |
use utf8; |
2 |
package Koha::Schema::Result::ImportOaiBiblio; |
3 |
|
4 |
# Created by DBIx::Class::Schema::Loader |
5 |
# DO NOT MODIFY THE FIRST PART OF THIS FILE |
6 |
|
7 |
=head1 NAME |
8 |
|
9 |
Koha::Schema::Result::ImportOaiBiblio |
10 |
|
11 |
=cut |
12 |
|
13 |
use strict; |
14 |
use warnings; |
15 |
|
16 |
use base 'DBIx::Class::Core'; |
17 |
|
18 |
=head1 TABLE: C<import_oai_biblios> |
19 |
|
20 |
=cut |
21 |
|
22 |
__PACKAGE__->table("import_oai_biblios"); |
23 |
|
24 |
=head1 ACCESSORS |
25 |
|
26 |
=head2 id |
27 |
|
28 |
data_type: 'integer' |
29 |
is_auto_increment: 1 |
30 |
is_nullable: 0 |
31 |
|
32 |
unique identifier assigned by Koha |
33 |
|
34 |
=head2 biblionumber |
35 |
|
36 |
data_type: 'integer' |
37 |
is_foreign_key: 1 |
38 |
is_nullable: 0 |
39 |
|
40 |
unique identifier assigned to each koha record |
41 |
|
42 |
=head2 identifier |
43 |
|
44 |
data_type: 'varchar' |
45 |
is_nullable: 0 |
46 |
size: 255 |
47 |
|
48 |
OAI record identifier |
49 |
|
50 |
=head2 repository |
51 |
|
52 |
data_type: 'varchar' |
53 |
is_nullable: 0 |
54 |
size: 255 |
55 |
|
56 |
OAI repository |
57 |
|
58 |
=head2 recordtype |
59 |
|
60 |
data_type: 'enum' |
61 |
default_value: 'biblio' |
62 |
extra: {list => ["authority","biblio"]} |
63 |
is_nullable: 0 |
64 |
|
65 |
is the record bibliographic or authority |
66 |
|
67 |
=head2 datestamp |
68 |
|
69 |
data_type: 'varchar' |
70 |
is_nullable: 1 |
71 |
size: 255 |
72 |
|
73 |
OAI set to harvest |
74 |
|
75 |
=head2 last_modified |
76 |
|
77 |
data_type: 'timestamp' |
78 |
datetime_undef_if_invalid: 1 |
79 |
default_value: current_timestamp |
80 |
is_nullable: 0 |
81 |
|
82 |
=cut |
83 |
|
84 |
__PACKAGE__->add_columns( |
85 |
"id", |
86 |
{ data_type => "integer", is_auto_increment => 1, is_nullable => 0 }, |
87 |
"biblionumber", |
88 |
{ data_type => "integer", is_foreign_key => 1, is_nullable => 0 }, |
89 |
"identifier", |
90 |
{ data_type => "varchar", is_nullable => 0, size => 255 }, |
91 |
"repository", |
92 |
{ data_type => "varchar", is_nullable => 0, size => 255 }, |
93 |
"recordtype", |
94 |
{ |
95 |
data_type => "enum", |
96 |
default_value => "biblio", |
97 |
extra => { list => ["authority", "biblio"] }, |
98 |
is_nullable => 0, |
99 |
}, |
100 |
"datestamp", |
101 |
{ data_type => "varchar", is_nullable => 1, size => 255 }, |
102 |
"last_modified", |
103 |
{ |
104 |
data_type => "timestamp", |
105 |
datetime_undef_if_invalid => 1, |
106 |
default_value => \"current_timestamp", |
107 |
is_nullable => 0, |
108 |
}, |
109 |
); |
110 |
|
111 |
=head1 PRIMARY KEY |
112 |
|
113 |
=over 4 |
114 |
|
115 |
=item * L</id> |
116 |
|
117 |
=back |
118 |
|
119 |
=cut |
120 |
|
121 |
__PACKAGE__->set_primary_key("id"); |
122 |
|
123 |
=head1 RELATIONS |
124 |
|
125 |
=head2 biblionumber |
126 |
|
127 |
Type: belongs_to |
128 |
|
129 |
Related object: L<Koha::Schema::Result::Biblio> |
130 |
|
131 |
=cut |
132 |
|
133 |
__PACKAGE__->belongs_to( |
134 |
"biblionumber", |
135 |
"Koha::Schema::Result::Biblio", |
136 |
{ biblionumber => "biblionumber" }, |
137 |
{ is_deferrable => 1, on_delete => "CASCADE", on_update => "NO ACTION" }, |
138 |
); |
139 |
|
140 |
|
141 |
# Created by DBIx::Class::Schema::Loader v0.07051 @ 2024-05-22 14:53:13 |
142 |
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:+QgCBwpnqU+hbvgCDWWOwQ |
143 |
|
144 |
|
145 |
# You can replace this text with custom code or comments, and it will be preserved on regeneration |
146 |
1; |