View | Details | Raw Unified | Return to bug 10662
Collapse All | Expand All

(-)a/Koha/Schema/Result/Biblio.pm (-2 / +17 lines)
Lines 242-247 __PACKAGE__->has_many( Link Here
242
  { cascade_copy => 0, cascade_delete => 0 },
242
  { cascade_copy => 0, cascade_delete => 0 },
243
);
243
);
244
244
245
=head2 oai_harvester_biblios
246
247
Type: has_many
248
249
Related object: L<Koha::Schema::Result::OaiHarvesterBiblio>
250
251
=cut
252
253
__PACKAGE__->has_many(
254
  "oai_harvester_biblios",
255
  "Koha::Schema::Result::OaiHarvesterBiblio",
256
  { "foreign.biblionumber" => "self.biblionumber" },
257
  { cascade_copy => 0, cascade_delete => 0 },
258
);
259
245
=head2 old_reserves
260
=head2 old_reserves
246
261
247
Type: has_many
262
Type: has_many
Lines 348-354 __PACKAGE__->has_many( Link Here
348
);
363
);
349
364
350
365
351
# Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-02-16 17:54:53
366
# Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-11-02 06:45:22
352
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:bUv00JjY09Hj2Zj4klqyxA
367
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:VvupcfvUfIAmpdpRqx2wDg
353
368
354
1;
369
1;
(-)a/Koha/Schema/Result/OaiHarvesterBiblio.pm (+120 lines)
Line 0 Link Here
1
use utf8;
2
package Koha::Schema::Result::OaiHarvesterBiblio;
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::OaiHarvesterBiblio
10
11
=cut
12
13
use strict;
14
use warnings;
15
16
use base 'DBIx::Class::Core';
17
18
=head1 TABLE: C<oai_harvester_biblios>
19
20
=cut
21
22
__PACKAGE__->table("oai_harvester_biblios");
23
24
=head1 ACCESSORS
25
26
=head2 import_oai_biblio_id
27
28
  data_type: 'integer'
29
  extra: {unsigned => 1}
30
  is_auto_increment: 1
31
  is_nullable: 0
32
33
=head2 oai_repository
34
35
  data_type: 'varchar'
36
  is_nullable: 0
37
  size: 191
38
39
=head2 oai_identifier
40
41
  data_type: 'varchar'
42
  is_nullable: 1
43
  size: 191
44
45
=head2 biblionumber
46
47
  data_type: 'integer'
48
  is_foreign_key: 1
49
  is_nullable: 0
50
51
=cut
52
53
__PACKAGE__->add_columns(
54
  "import_oai_biblio_id",
55
  {
56
    data_type => "integer",
57
    extra => { unsigned => 1 },
58
    is_auto_increment => 1,
59
    is_nullable => 0,
60
  },
61
  "oai_repository",
62
  { data_type => "varchar", is_nullable => 0, size => 191 },
63
  "oai_identifier",
64
  { data_type => "varchar", is_nullable => 1, size => 191 },
65
  "biblionumber",
66
  { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
67
);
68
69
=head1 PRIMARY KEY
70
71
=over 4
72
73
=item * L</import_oai_biblio_id>
74
75
=back
76
77
=cut
78
79
__PACKAGE__->set_primary_key("import_oai_biblio_id");
80
81
=head1 UNIQUE CONSTRAINTS
82
83
=head2 C<oai_record>
84
85
=over 4
86
87
=item * L</oai_identifier>
88
89
=item * L</oai_repository>
90
91
=back
92
93
=cut
94
95
__PACKAGE__->add_unique_constraint("oai_record", ["oai_identifier", "oai_repository"]);
96
97
=head1 RELATIONS
98
99
=head2 biblionumber
100
101
Type: belongs_to
102
103
Related object: L<Koha::Schema::Result::Biblio>
104
105
=cut
106
107
__PACKAGE__->belongs_to(
108
  "biblionumber",
109
  "Koha::Schema::Result::Biblio",
110
  { biblionumber => "biblionumber" },
111
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "NO ACTION" },
112
);
113
114
115
# Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-11-02 06:45:23
116
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:bBt9ph/pSfV97DMNrKCkpQ
117
118
119
# You can replace this text with custom code or comments, and it will be preserved on regeneration
120
1;
(-)a/Koha/Schema/Result/OaiHarvesterHistory.pm (+163 lines)
Line 0 Link Here
1
use utf8;
2
package Koha::Schema::Result::OaiHarvesterHistory;
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::OaiHarvesterHistory
10
11
=cut
12
13
use strict;
14
use warnings;
15
16
use base 'DBIx::Class::Core';
17
18
=head1 TABLE: C<oai_harvester_history>
19
20
=cut
21
22
__PACKAGE__->table("oai_harvester_history");
23
24
=head1 ACCESSORS
25
26
=head2 import_oai_id
27
28
  data_type: 'integer'
29
  extra: {unsigned => 1}
30
  is_auto_increment: 1
31
  is_nullable: 0
32
33
=head2 repository
34
35
  data_type: 'varchar'
36
  is_nullable: 1
37
  size: 255
38
39
=head2 header_identifier
40
41
  data_type: 'varchar'
42
  is_nullable: 1
43
  size: 255
44
45
=head2 header_datestamp
46
47
  data_type: 'datetime'
48
  datetime_undef_if_invalid: 1
49
  is_nullable: 0
50
51
=head2 header_status
52
53
  data_type: 'varchar'
54
  is_nullable: 1
55
  size: 45
56
57
=head2 record
58
59
  data_type: 'longtext'
60
  is_nullable: 0
61
62
=head2 upload_timestamp
63
64
  data_type: 'timestamp'
65
  datetime_undef_if_invalid: 1
66
  default_value: current_timestamp
67
  is_nullable: 0
68
69
=head2 status
70
71
  data_type: 'varchar'
72
  is_nullable: 0
73
  size: 45
74
75
=head2 filter
76
77
  data_type: 'text'
78
  is_nullable: 0
79
80
=head2 framework
81
82
  data_type: 'varchar'
83
  is_nullable: 0
84
  size: 4
85
86
=head2 record_type
87
88
  data_type: 'enum'
89
  extra: {list => ["biblio","auth","holdings"]}
90
  is_nullable: 0
91
92
=head2 matcher_code
93
94
  data_type: 'varchar'
95
  is_nullable: 1
96
  size: 10
97
98
=cut
99
100
__PACKAGE__->add_columns(
101
  "import_oai_id",
102
  {
103
    data_type => "integer",
104
    extra => { unsigned => 1 },
105
    is_auto_increment => 1,
106
    is_nullable => 0,
107
  },
108
  "repository",
109
  { data_type => "varchar", is_nullable => 1, size => 255 },
110
  "header_identifier",
111
  { data_type => "varchar", is_nullable => 1, size => 255 },
112
  "header_datestamp",
113
  {
114
    data_type => "datetime",
115
    datetime_undef_if_invalid => 1,
116
    is_nullable => 0,
117
  },
118
  "header_status",
119
  { data_type => "varchar", is_nullable => 1, size => 45 },
120
  "record",
121
  { data_type => "longtext", is_nullable => 0 },
122
  "upload_timestamp",
123
  {
124
    data_type => "timestamp",
125
    datetime_undef_if_invalid => 1,
126
    default_value => \"current_timestamp",
127
    is_nullable => 0,
128
  },
129
  "status",
130
  { data_type => "varchar", is_nullable => 0, size => 45 },
131
  "filter",
132
  { data_type => "text", is_nullable => 0 },
133
  "framework",
134
  { data_type => "varchar", is_nullable => 0, size => 4 },
135
  "record_type",
136
  {
137
    data_type => "enum",
138
    extra => { list => ["biblio", "auth", "holdings"] },
139
    is_nullable => 0,
140
  },
141
  "matcher_code",
142
  { data_type => "varchar", is_nullable => 1, size => 10 },
143
);
144
145
=head1 PRIMARY KEY
146
147
=over 4
148
149
=item * L</import_oai_id>
150
151
=back
152
153
=cut
154
155
__PACKAGE__->set_primary_key("import_oai_id");
156
157
158
# Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-11-02 06:45:23
159
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:D948WAzJJ0Nzd974FjQzwQ
160
161
162
# You can replace this text with custom code or comments, and it will be preserved on regeneration
163
1;
(-)a/Koha/Schema/Result/OaiHarvesterImportQueue.pm (+106 lines)
Line 0 Link Here
1
use utf8;
2
package Koha::Schema::Result::OaiHarvesterImportQueue;
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::OaiHarvesterImportQueue
10
11
=cut
12
13
use strict;
14
use warnings;
15
16
use base 'DBIx::Class::Core';
17
18
=head1 TABLE: C<oai_harvester_import_queue>
19
20
=cut
21
22
__PACKAGE__->table("oai_harvester_import_queue");
23
24
=head1 ACCESSORS
25
26
=head2 id
27
28
  data_type: 'integer'
29
  extra: {unsigned => 1}
30
  is_auto_increment: 1
31
  is_nullable: 0
32
33
=head2 uuid
34
35
  data_type: 'varchar'
36
  is_nullable: 0
37
  size: 45
38
39
=head2 status
40
41
  data_type: 'varchar'
42
  default_value: 'new'
43
  is_nullable: 0
44
  size: 45
45
46
=head2 result
47
48
  data_type: 'text'
49
  is_nullable: 0
50
51
=head2 result_timestamp
52
53
  data_type: 'timestamp'
54
  datetime_undef_if_invalid: 1
55
  default_value: current_timestamp
56
  is_nullable: 0
57
58
=cut
59
60
__PACKAGE__->add_columns(
61
  "id",
62
  {
63
    data_type => "integer",
64
    extra => { unsigned => 1 },
65
    is_auto_increment => 1,
66
    is_nullable => 0,
67
  },
68
  "uuid",
69
  { data_type => "varchar", is_nullable => 0, size => 45 },
70
  "status",
71
  {
72
    data_type => "varchar",
73
    default_value => "new",
74
    is_nullable => 0,
75
    size => 45,
76
  },
77
  "result",
78
  { data_type => "text", is_nullable => 0 },
79
  "result_timestamp",
80
  {
81
    data_type => "timestamp",
82
    datetime_undef_if_invalid => 1,
83
    default_value => \"current_timestamp",
84
    is_nullable => 0,
85
  },
86
);
87
88
=head1 PRIMARY KEY
89
90
=over 4
91
92
=item * L</id>
93
94
=back
95
96
=cut
97
98
__PACKAGE__->set_primary_key("id");
99
100
101
# Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-11-02 06:45:23
102
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:mPhK/vLiab1vjl/T/RwoAw
103
104
105
# You can replace this text with custom code or comments, and it will be preserved on regeneration
106
1;
(-)a/Koha/Schema/Result/OaiHarvesterRequest.pm (-1 / +209 lines)
Line 0 Link Here
0
- 
1
use utf8;
2
package Koha::Schema::Result::OaiHarvesterRequest;
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::OaiHarvesterRequest
10
11
=cut
12
13
use strict;
14
use warnings;
15
16
use base 'DBIx::Class::Core';
17
18
=head1 TABLE: C<oai_harvester_requests>
19
20
=cut
21
22
__PACKAGE__->table("oai_harvester_requests");
23
24
=head1 ACCESSORS
25
26
=head2 id
27
28
  data_type: 'integer'
29
  extra: {unsigned => 1}
30
  is_auto_increment: 1
31
  is_nullable: 0
32
33
=head2 uuid
34
35
  data_type: 'varchar'
36
  is_nullable: 0
37
  size: 45
38
39
=head2 oai_verb
40
41
  data_type: 'varchar'
42
  is_nullable: 0
43
  size: 45
44
45
=head2 oai_metadataPrefix
46
47
  accessor: 'oai_metadata_prefix'
48
  data_type: 'varchar'
49
  is_nullable: 0
50
  size: 255
51
52
=head2 oai_identifier
53
54
  data_type: 'varchar'
55
  is_nullable: 1
56
  size: 255
57
58
=head2 oai_from
59
60
  data_type: 'varchar'
61
  is_nullable: 1
62
  size: 45
63
64
=head2 oai_until
65
66
  data_type: 'varchar'
67
  is_nullable: 1
68
  size: 45
69
70
=head2 oai_set
71
72
  data_type: 'varchar'
73
  is_nullable: 1
74
  size: 255
75
76
=head2 http_url
77
78
  data_type: 'varchar'
79
  is_nullable: 1
80
  size: 255
81
82
=head2 http_username
83
84
  data_type: 'varchar'
85
  is_nullable: 1
86
  size: 255
87
88
=head2 http_password
89
90
  data_type: 'varchar'
91
  is_nullable: 1
92
  size: 255
93
94
=head2 http_realm
95
96
  data_type: 'varchar'
97
  is_nullable: 1
98
  size: 255
99
100
=head2 import_filter
101
102
  data_type: 'varchar'
103
  is_nullable: 0
104
  size: 255
105
106
=head2 import_framework_code
107
108
  data_type: 'varchar'
109
  is_nullable: 0
110
  size: 4
111
112
=head2 import_record_type
113
114
  data_type: 'enum'
115
  extra: {list => ["biblio","auth","holdings"]}
116
  is_nullable: 0
117
118
=head2 import_matcher_code
119
120
  data_type: 'varchar'
121
  is_nullable: 1
122
  size: 10
123
124
=head2 interval
125
126
  data_type: 'integer'
127
  extra: {unsigned => 1}
128
  is_nullable: 0
129
130
=head2 name
131
132
  data_type: 'varchar'
133
  is_nullable: 0
134
  size: 45
135
136
=cut
137
138
__PACKAGE__->add_columns(
139
  "id",
140
  {
141
    data_type => "integer",
142
    extra => { unsigned => 1 },
143
    is_auto_increment => 1,
144
    is_nullable => 0,
145
  },
146
  "uuid",
147
  { data_type => "varchar", is_nullable => 0, size => 45 },
148
  "oai_verb",
149
  { data_type => "varchar", is_nullable => 0, size => 45 },
150
  "oai_metadataPrefix",
151
  {
152
    accessor => "oai_metadata_prefix",
153
    data_type => "varchar",
154
    is_nullable => 0,
155
    size => 255,
156
  },
157
  "oai_identifier",
158
  { data_type => "varchar", is_nullable => 1, size => 255 },
159
  "oai_from",
160
  { data_type => "varchar", is_nullable => 1, size => 45 },
161
  "oai_until",
162
  { data_type => "varchar", is_nullable => 1, size => 45 },
163
  "oai_set",
164
  { data_type => "varchar", is_nullable => 1, size => 255 },
165
  "http_url",
166
  { data_type => "varchar", is_nullable => 1, size => 255 },
167
  "http_username",
168
  { data_type => "varchar", is_nullable => 1, size => 255 },
169
  "http_password",
170
  { data_type => "varchar", is_nullable => 1, size => 255 },
171
  "http_realm",
172
  { data_type => "varchar", is_nullable => 1, size => 255 },
173
  "import_filter",
174
  { data_type => "varchar", is_nullable => 0, size => 255 },
175
  "import_framework_code",
176
  { data_type => "varchar", is_nullable => 0, size => 4 },
177
  "import_record_type",
178
  {
179
    data_type => "enum",
180
    extra => { list => ["biblio", "auth", "holdings"] },
181
    is_nullable => 0,
182
  },
183
  "import_matcher_code",
184
  { data_type => "varchar", is_nullable => 1, size => 10 },
185
  "interval",
186
  { data_type => "integer", extra => { unsigned => 1 }, is_nullable => 0 },
187
  "name",
188
  { data_type => "varchar", is_nullable => 0, size => 45 },
189
);
190
191
=head1 PRIMARY KEY
192
193
=over 4
194
195
=item * L</id>
196
197
=back
198
199
=cut
200
201
__PACKAGE__->set_primary_key("id");
202
203
204
# Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-11-02 06:45:23
205
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:c8IcaxEQMjEZvM4LPzOTKg
206
207
208
# You can replace this text with custom code or comments, and it will be preserved on regeneration
209
1;

Return to bug 10662