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

(-)a/Koha/Schema/Result/AuthHeader.pm (-2 / +19 lines)
Lines 128-136 __PACKAGE__->add_columns( Link Here
128
128
129
__PACKAGE__->set_primary_key("authid");
129
__PACKAGE__->set_primary_key("authid");
130
130
131
=head1 RELATIONS
131
132
132
# Created by DBIx::Class::Schema::Loader v0.07051 @ 2024-05-10 14:00:56
133
=head2 import_oai_authorities
133
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:gYG6yQ6EC5gVMZHF1h6MJA
134
135
Type: has_many
136
137
Related object: L<Koha::Schema::Result::ImportOaiAuthority>
138
139
=cut
140
141
__PACKAGE__->has_many(
142
  "import_oai_authorities",
143
  "Koha::Schema::Result::ImportOaiAuthority",
144
  { "foreign.authid" => "self.authid" },
145
  { cascade_copy => 0, cascade_delete => 0 },
146
);
147
148
149
# Created by DBIx::Class::Schema::Loader v0.07051 @ 2024-07-31 14:45:08
150
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:qQKXXu/9rBZ89hnDzJMsvA
134
151
135
sub koha_object_class {
152
sub koha_object_class {
136
    'Koha::Authority';
153
    'Koha::Authority';
(-)a/Koha/Schema/Result/Biblio.pm (-2 / +17 lines)
Lines 360-365 __PACKAGE__->has_many( Link Here
360
  { cascade_copy => 0, cascade_delete => 0 },
360
  { cascade_copy => 0, cascade_delete => 0 },
361
);
361
);
362
362
363
=head2 import_oai_biblios
364
365
Type: has_many
366
367
Related object: L<Koha::Schema::Result::ImportOaiBiblio>
368
369
=cut
370
371
__PACKAGE__->has_many(
372
  "import_oai_biblios",
373
  "Koha::Schema::Result::ImportOaiBiblio",
374
  { "foreign.biblionumber" => "self.biblionumber" },
375
  { cascade_copy => 0, cascade_delete => 0 },
376
);
377
363
=head2 item_groups
378
=head2 item_groups
364
379
365
Type: has_many
380
Type: has_many
Lines 616-623 __PACKAGE__->has_many( Link Here
616
);
631
);
617
632
618
633
619
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2023-05-09 07:11:30
634
# Created by DBIx::Class::Schema::Loader v0.07051 @ 2024-07-31 14:45:08
620
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:AZgt+4mVV/QYtSsdhxmaBQ
635
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:rLzlHl6jAwBmgmiXavpP0w
621
636
622
__PACKAGE__->has_many(
637
__PACKAGE__->has_many(
623
  "biblioitem",
638
  "biblioitem",
(-)a/Koha/Schema/Result/ImportOaiAuthority.pm (+152 lines)
Line 0 Link Here
1
use utf8;
2
package Koha::Schema::Result::ImportOaiAuthority;
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::ImportOaiAuthority
10
11
=cut
12
13
use strict;
14
use warnings;
15
16
use base 'DBIx::Class::Core';
17
18
=head1 TABLE: C<import_oai_authorities>
19
20
=cut
21
22
__PACKAGE__->table("import_oai_authorities");
23
24
=head1 ACCESSORS
25
26
=head2 import_oai_authority_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 authid
35
36
  data_type: 'bigint'
37
  extra: {unsigned => 1}
38
  is_foreign_key: 1
39
  is_nullable: 0
40
41
unique identifier assigned to each koha record
42
43
=head2 identifier
44
45
  data_type: 'varchar'
46
  is_nullable: 0
47
  size: 255
48
49
OAI record identifier
50
51
=head2 repository
52
53
  data_type: 'varchar'
54
  is_nullable: 0
55
  size: 255
56
57
OAI repository
58
59
=head2 recordtype
60
61
  data_type: 'enum'
62
  default_value: 'biblio'
63
  extra: {list => ["authority","biblio"]}
64
  is_nullable: 0
65
66
is the record bibliographic or authority
67
68
=head2 datestamp
69
70
  data_type: 'varchar'
71
  is_nullable: 1
72
  size: 255
73
74
OAI set to harvest
75
76
=head2 last_modified
77
78
  data_type: 'timestamp'
79
  datetime_undef_if_invalid: 1
80
  default_value: current_timestamp
81
  is_nullable: 0
82
83
=cut
84
85
__PACKAGE__->add_columns(
86
  "import_oai_authority_id",
87
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
88
  "authid",
89
  {
90
    data_type => "bigint",
91
    extra => { unsigned => 1 },
92
    is_foreign_key => 1,
93
    is_nullable => 0,
94
  },
95
  "identifier",
96
  { data_type => "varchar", is_nullable => 0, size => 255 },
97
  "repository",
98
  { data_type => "varchar", is_nullable => 0, size => 255 },
99
  "recordtype",
100
  {
101
    data_type => "enum",
102
    default_value => "biblio",
103
    extra => { list => ["authority", "biblio"] },
104
    is_nullable => 0,
105
  },
106
  "datestamp",
107
  { data_type => "varchar", is_nullable => 1, size => 255 },
108
  "last_modified",
109
  {
110
    data_type => "timestamp",
111
    datetime_undef_if_invalid => 1,
112
    default_value => \"current_timestamp",
113
    is_nullable => 0,
114
  },
115
);
116
117
=head1 PRIMARY KEY
118
119
=over 4
120
121
=item * L</import_oai_authority_id>
122
123
=back
124
125
=cut
126
127
__PACKAGE__->set_primary_key("import_oai_authority_id");
128
129
=head1 RELATIONS
130
131
=head2 authid
132
133
Type: belongs_to
134
135
Related object: L<Koha::Schema::Result::AuthHeader>
136
137
=cut
138
139
__PACKAGE__->belongs_to(
140
  "authid",
141
  "Koha::Schema::Result::AuthHeader",
142
  { authid => "authid" },
143
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "NO ACTION" },
144
);
145
146
147
# Created by DBIx::Class::Schema::Loader v0.07051 @ 2024-07-31 14:51:58
148
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:PoiX9tXFhEq07VBfEg9HFw
149
150
151
# You can replace this text with custom code or comments, and it will be preserved on regeneration
152
1;
(-)a/Koha/Schema/Result/ImportOaiBiblio.pm (+146 lines)
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 import_oai_biblio_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
  "import_oai_biblio_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</import_oai_biblio_id>
116
117
=back
118
119
=cut
120
121
__PACKAGE__->set_primary_key("import_oai_biblio_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-07-31 14:51:58
142
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:25riMQF65/EoFhTXdZbcBg
143
144
145
# You can replace this text with custom code or comments, and it will be preserved on regeneration
146
1;
(-)a/Koha/Schema/Result/OaiServer.pm (-1 / +128 lines)
Line 0 Link Here
0
- 
1
use utf8;
2
package Koha::Schema::Result::OaiServer;
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::OaiServer
10
11
=cut
12
13
use strict;
14
use warnings;
15
16
use base 'DBIx::Class::Core';
17
18
=head1 TABLE: C<oai_servers>
19
20
=cut
21
22
__PACKAGE__->table("oai_servers");
23
24
=head1 ACCESSORS
25
26
=head2 oai_server_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 endpoint
35
36
  data_type: 'varchar'
37
  is_nullable: 0
38
  size: 255
39
40
OAI endpoint (host + port + path)
41
42
=head2 oai_set
43
44
  data_type: 'varchar'
45
  is_nullable: 1
46
  size: 255
47
48
OAI set to harvest
49
50
=head2 servername
51
52
  data_type: 'longtext'
53
  is_nullable: 0
54
55
name given to the target by the library
56
57
=head2 dataformat
58
59
  data_type: 'enum'
60
  default_value: 'oai_dc'
61
  extra: {list => ["oai_dc","marc-xml","marcxml"]}
62
  is_nullable: 0
63
64
data format
65
66
=head2 recordtype
67
68
  data_type: 'enum'
69
  default_value: 'biblio'
70
  extra: {list => ["authority","biblio"]}
71
  is_nullable: 0
72
73
server contains bibliographic or authority records
74
75
=head2 add_xslt
76
77
  data_type: 'longtext'
78
  is_nullable: 1
79
80
zero or more paths to XSLT files to be processed on the search results
81
82
=cut
83
84
__PACKAGE__->add_columns(
85
  "oai_server_id",
86
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
87
  "endpoint",
88
  { data_type => "varchar", is_nullable => 0, size => 255 },
89
  "oai_set",
90
  { data_type => "varchar", is_nullable => 1, size => 255 },
91
  "servername",
92
  { data_type => "longtext", is_nullable => 0 },
93
  "dataformat",
94
  {
95
    data_type => "enum",
96
    default_value => "oai_dc",
97
    extra => { list => ["oai_dc", "marc-xml", "marcxml"] },
98
    is_nullable => 0,
99
  },
100
  "recordtype",
101
  {
102
    data_type => "enum",
103
    default_value => "biblio",
104
    extra => { list => ["authority", "biblio"] },
105
    is_nullable => 0,
106
  },
107
  "add_xslt",
108
  { data_type => "longtext", is_nullable => 1 },
109
);
110
111
=head1 PRIMARY KEY
112
113
=over 4
114
115
=item * L</oai_server_id>
116
117
=back
118
119
=cut
120
121
__PACKAGE__->set_primary_key("oai_server_id");
122
123
124
# Created by DBIx::Class::Schema::Loader v0.07051 @ 2024-07-31 14:51:58
125
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:HeQgY+4P10NKCtLqdExv+g
126
127
# You can replace this text with custom code or comments, and it will be preserved on regeneration
128
1;

Return to bug 35659