Bug 21797: Update two-column templates with Bootstrap grid: Acquisitions part 5
[koha.git] / Koha / Schema / Result / Biblio.pm
blobb118011f278e15842244d5101acfc7bff30095e0
1 use utf8;
2 package Koha::Schema::Result::Biblio;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
7 =head1 NAME
9 Koha::Schema::Result::Biblio
11 =cut
13 use strict;
14 use warnings;
16 use base 'DBIx::Class::Core';
18 =head1 TABLE: C<biblio>
20 =cut
22 __PACKAGE__->table("biblio");
24 =head1 ACCESSORS
26 =head2 biblionumber
28 data_type: 'integer'
29 is_auto_increment: 1
30 is_nullable: 0
32 =head2 frameworkcode
34 data_type: 'varchar'
35 default_value: (empty string)
36 is_nullable: 0
37 size: 4
39 =head2 author
41 data_type: 'longtext'
42 is_nullable: 1
44 =head2 title
46 data_type: 'longtext'
47 is_nullable: 1
49 =head2 unititle
51 data_type: 'longtext'
52 is_nullable: 1
54 =head2 notes
56 data_type: 'longtext'
57 is_nullable: 1
59 =head2 serial
61 data_type: 'tinyint'
62 is_nullable: 1
64 =head2 seriestitle
66 data_type: 'longtext'
67 is_nullable: 1
69 =head2 copyrightdate
71 data_type: 'smallint'
72 is_nullable: 1
74 =head2 timestamp
76 data_type: 'timestamp'
77 datetime_undef_if_invalid: 1
78 default_value: current_timestamp
79 is_nullable: 0
81 =head2 datecreated
83 data_type: 'date'
84 datetime_undef_if_invalid: 1
85 is_nullable: 0
87 =head2 abstract
89 data_type: 'longtext'
90 is_nullable: 1
92 =cut
94 __PACKAGE__->add_columns(
95 "biblionumber",
96 { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
97 "frameworkcode",
98 { data_type => "varchar", default_value => "", is_nullable => 0, size => 4 },
99 "author",
100 { data_type => "longtext", is_nullable => 1 },
101 "title",
102 { data_type => "longtext", is_nullable => 1 },
103 "unititle",
104 { data_type => "longtext", is_nullable => 1 },
105 "notes",
106 { data_type => "longtext", is_nullable => 1 },
107 "serial",
108 { data_type => "tinyint", is_nullable => 1 },
109 "seriestitle",
110 { data_type => "longtext", is_nullable => 1 },
111 "copyrightdate",
112 { data_type => "smallint", is_nullable => 1 },
113 "timestamp",
115 data_type => "timestamp",
116 datetime_undef_if_invalid => 1,
117 default_value => \"current_timestamp",
118 is_nullable => 0,
120 "datecreated",
121 { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 0 },
122 "abstract",
123 { data_type => "longtext", is_nullable => 1 },
126 =head1 PRIMARY KEY
128 =over 4
130 =item * L</biblionumber>
132 =back
134 =cut
136 __PACKAGE__->set_primary_key("biblionumber");
138 =head1 RELATIONS
140 =head2 aqorders
142 Type: has_many
144 Related object: L<Koha::Schema::Result::Aqorder>
146 =cut
148 __PACKAGE__->has_many(
149 "aqorders",
150 "Koha::Schema::Result::Aqorder",
151 { "foreign.biblionumber" => "self.biblionumber" },
152 { cascade_copy => 0, cascade_delete => 0 },
155 =head2 article_requests
157 Type: has_many
159 Related object: L<Koha::Schema::Result::ArticleRequest>
161 =cut
163 __PACKAGE__->has_many(
164 "article_requests",
165 "Koha::Schema::Result::ArticleRequest",
166 { "foreign.biblionumber" => "self.biblionumber" },
167 { cascade_copy => 0, cascade_delete => 0 },
170 =head2 biblio_metadatas
172 Type: has_many
174 Related object: L<Koha::Schema::Result::BiblioMetadata>
176 =cut
178 __PACKAGE__->has_many(
179 "biblio_metadatas",
180 "Koha::Schema::Result::BiblioMetadata",
181 { "foreign.biblionumber" => "self.biblionumber" },
182 { cascade_copy => 0, cascade_delete => 0 },
185 =head2 biblioimages
187 Type: has_many
189 Related object: L<Koha::Schema::Result::Biblioimage>
191 =cut
193 __PACKAGE__->has_many(
194 "biblioimages",
195 "Koha::Schema::Result::Biblioimage",
196 { "foreign.biblionumber" => "self.biblionumber" },
197 { cascade_copy => 0, cascade_delete => 0 },
200 =head2 biblioitems
202 Type: has_many
204 Related object: L<Koha::Schema::Result::Biblioitem>
206 =cut
208 __PACKAGE__->has_many(
209 "biblioitems",
210 "Koha::Schema::Result::Biblioitem",
211 { "foreign.biblionumber" => "self.biblionumber" },
212 { cascade_copy => 0, cascade_delete => 0 },
215 =head2 hold_fill_targets
217 Type: has_many
219 Related object: L<Koha::Schema::Result::HoldFillTarget>
221 =cut
223 __PACKAGE__->has_many(
224 "hold_fill_targets",
225 "Koha::Schema::Result::HoldFillTarget",
226 { "foreign.biblionumber" => "self.biblionumber" },
227 { cascade_copy => 0, cascade_delete => 0 },
230 =head2 items
232 Type: has_many
234 Related object: L<Koha::Schema::Result::Item>
236 =cut
238 __PACKAGE__->has_many(
239 "items",
240 "Koha::Schema::Result::Item",
241 { "foreign.biblionumber" => "self.biblionumber" },
242 { cascade_copy => 0, cascade_delete => 0 },
245 =head2 old_reserves
247 Type: has_many
249 Related object: L<Koha::Schema::Result::OldReserve>
251 =cut
253 __PACKAGE__->has_many(
254 "old_reserves",
255 "Koha::Schema::Result::OldReserve",
256 { "foreign.biblionumber" => "self.biblionumber" },
257 { cascade_copy => 0, cascade_delete => 0 },
260 =head2 ratings
262 Type: has_many
264 Related object: L<Koha::Schema::Result::Rating>
266 =cut
268 __PACKAGE__->has_many(
269 "ratings",
270 "Koha::Schema::Result::Rating",
271 { "foreign.biblionumber" => "self.biblionumber" },
272 { cascade_copy => 0, cascade_delete => 0 },
275 =head2 reserves
277 Type: has_many
279 Related object: L<Koha::Schema::Result::Reserve>
281 =cut
283 __PACKAGE__->has_many(
284 "reserves",
285 "Koha::Schema::Result::Reserve",
286 { "foreign.biblionumber" => "self.biblionumber" },
287 { cascade_copy => 0, cascade_delete => 0 },
290 =head2 reviews
292 Type: has_many
294 Related object: L<Koha::Schema::Result::Review>
296 =cut
298 __PACKAGE__->has_many(
299 "reviews",
300 "Koha::Schema::Result::Review",
301 { "foreign.biblionumber" => "self.biblionumber" },
302 { cascade_copy => 0, cascade_delete => 0 },
305 =head2 tags_all
307 Type: has_many
309 Related object: L<Koha::Schema::Result::TagAll>
311 =cut
313 __PACKAGE__->has_many(
314 "tags_all",
315 "Koha::Schema::Result::TagAll",
316 { "foreign.biblionumber" => "self.biblionumber" },
317 { cascade_copy => 0, cascade_delete => 0 },
320 =head2 tags_indexes
322 Type: has_many
324 Related object: L<Koha::Schema::Result::TagsIndex>
326 =cut
328 __PACKAGE__->has_many(
329 "tags_indexes",
330 "Koha::Schema::Result::TagsIndex",
331 { "foreign.biblionumber" => "self.biblionumber" },
332 { cascade_copy => 0, cascade_delete => 0 },
335 =head2 virtualshelfcontents
337 Type: has_many
339 Related object: L<Koha::Schema::Result::Virtualshelfcontent>
341 =cut
343 __PACKAGE__->has_many(
344 "virtualshelfcontents",
345 "Koha::Schema::Result::Virtualshelfcontent",
346 { "foreign.biblionumber" => "self.biblionumber" },
347 { cascade_copy => 0, cascade_delete => 0 },
351 # Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-02-16 17:54:53
352 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:bUv00JjY09Hj2Zj4klqyxA