Bug 32257: Label for patron attributes misaligned
[koha-ffzg.git] / Koha / Schema / Result / Deletedbiblio.pm
1 use utf8;
2 package Koha::Schema::Result::Deletedbiblio;
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::Deletedbiblio
10
11 =cut
12
13 use strict;
14 use warnings;
15
16 use base 'DBIx::Class::Core';
17
18 =head1 TABLE: C<deletedbiblio>
19
20 =cut
21
22 __PACKAGE__->table("deletedbiblio");
23
24 =head1 ACCESSORS
25
26 =head2 biblionumber
27
28   data_type: 'integer'
29   is_auto_increment: 1
30   is_nullable: 0
31
32 unique identifier assigned to each bibliographic record
33
34 =head2 frameworkcode
35
36   data_type: 'varchar'
37   default_value: (empty string)
38   is_nullable: 0
39   size: 4
40
41 foriegn key from the biblio_framework table to identify which framework was used in cataloging this record
42
43 =head2 author
44
45   data_type: 'longtext'
46   is_nullable: 1
47
48 statement of responsibility from MARC record (100$a in MARC21)
49
50 =head2 title
51
52   data_type: 'longtext'
53   is_nullable: 1
54
55 title (without the subtitle) from the MARC record (245$a in MARC21)
56
57 =head2 medium
58
59   data_type: 'longtext'
60   is_nullable: 1
61
62 medium from the MARC record (245$h in MARC21)
63
64 =head2 subtitle
65
66   data_type: 'longtext'
67   is_nullable: 1
68
69 remainder of the title from the MARC record (245$b in MARC21)
70
71 =head2 part_number
72
73   data_type: 'longtext'
74   is_nullable: 1
75
76 part number from the MARC record (245$n in MARC21)
77
78 =head2 part_name
79
80   data_type: 'longtext'
81   is_nullable: 1
82
83 part name from the MARC record (245$p in MARC21)
84
85 =head2 unititle
86
87   data_type: 'longtext'
88   is_nullable: 1
89
90 uniform title (without the subtitle) from the MARC record (240$a in MARC21)
91
92 =head2 notes
93
94   data_type: 'longtext'
95   is_nullable: 1
96
97 values from the general notes field in the MARC record (500$a in MARC21) split by bar (|)
98
99 =head2 serial
100
101   data_type: 'tinyint'
102   is_nullable: 1
103
104 Boolean indicating whether biblio is for a serial
105
106 =head2 seriestitle
107
108   data_type: 'longtext'
109   is_nullable: 1
110
111 =head2 copyrightdate
112
113   data_type: 'smallint'
114   is_nullable: 1
115
116 publication or copyright date from the MARC record
117
118 =head2 timestamp
119
120   data_type: 'timestamp'
121   datetime_undef_if_invalid: 1
122   default_value: current_timestamp
123   is_nullable: 0
124
125 date and time this record was last touched
126
127 =head2 datecreated
128
129   data_type: 'date'
130   datetime_undef_if_invalid: 1
131   is_nullable: 0
132
133 the date this record was added to Koha
134
135 =head2 abstract
136
137   data_type: 'longtext'
138   is_nullable: 1
139
140 summary from the MARC record (520$a in MARC21)
141
142 =cut
143
144 __PACKAGE__->add_columns(
145   "biblionumber",
146   { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
147   "frameworkcode",
148   { data_type => "varchar", default_value => "", is_nullable => 0, size => 4 },
149   "author",
150   { data_type => "longtext", is_nullable => 1 },
151   "title",
152   { data_type => "longtext", is_nullable => 1 },
153   "medium",
154   { data_type => "longtext", is_nullable => 1 },
155   "subtitle",
156   { data_type => "longtext", is_nullable => 1 },
157   "part_number",
158   { data_type => "longtext", is_nullable => 1 },
159   "part_name",
160   { data_type => "longtext", is_nullable => 1 },
161   "unititle",
162   { data_type => "longtext", is_nullable => 1 },
163   "notes",
164   { data_type => "longtext", is_nullable => 1 },
165   "serial",
166   { data_type => "tinyint", is_nullable => 1 },
167   "seriestitle",
168   { data_type => "longtext", is_nullable => 1 },
169   "copyrightdate",
170   { data_type => "smallint", is_nullable => 1 },
171   "timestamp",
172   {
173     data_type => "timestamp",
174     datetime_undef_if_invalid => 1,
175     default_value => \"current_timestamp",
176     is_nullable => 0,
177   },
178   "datecreated",
179   { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 0 },
180   "abstract",
181   { data_type => "longtext", is_nullable => 1 },
182 );
183
184 =head1 PRIMARY KEY
185
186 =over 4
187
188 =item * L</biblionumber>
189
190 =back
191
192 =cut
193
194 __PACKAGE__->set_primary_key("biblionumber");
195
196 =head1 RELATIONS
197
198 =head2 deletedbiblio_metadatas
199
200 Type: has_many
201
202 Related object: L<Koha::Schema::Result::DeletedbiblioMetadata>
203
204 =cut
205
206 __PACKAGE__->has_many(
207   "deletedbiblio_metadatas",
208   "Koha::Schema::Result::DeletedbiblioMetadata",
209   { "foreign.biblionumber" => "self.biblionumber" },
210   { cascade_copy => 0, cascade_delete => 0 },
211 );
212
213
214 # Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-01-21 13:39:29
215 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:KwlqhkWWX6CYWb3l2fCcSg
216
217 sub koha_objects_class {
218     'Koha::Old::Biblios';
219 }
220 sub koha_object_class {
221     'Koha::Old::Biblio';
222 }
223
224 1;