|
Lines 111-125
foreign key from authorised_values that links this custom field to an authorized
Link Here
|
| 111 |
|
111 |
|
| 112 |
defines if this field displays in checkout screens |
112 |
defines if this field displays in checkout screens |
| 113 |
|
113 |
|
| 114 |
=head2 category_code |
|
|
| 115 |
|
| 116 |
data_type: 'varchar' |
| 117 |
is_foreign_key: 1 |
| 118 |
is_nullable: 1 |
| 119 |
size: 10 |
| 120 |
|
| 121 |
defines a category for an attribute_type |
| 122 |
|
| 123 |
=head2 class |
114 |
=head2 class |
| 124 |
|
115 |
|
| 125 |
data_type: 'varchar' |
116 |
data_type: 'varchar' |
|
Lines 178-185
__PACKAGE__->add_columns(
Link Here
|
| 178 |
{ data_type => "varchar", is_nullable => 1, size => 32 }, |
169 |
{ data_type => "varchar", is_nullable => 1, size => 32 }, |
| 179 |
"display_checkout", |
170 |
"display_checkout", |
| 180 |
{ data_type => "tinyint", default_value => 0, is_nullable => 0 }, |
171 |
{ data_type => "tinyint", default_value => 0, is_nullable => 0 }, |
| 181 |
"category_code", |
|
|
| 182 |
{ data_type => "varchar", is_foreign_key => 1, is_nullable => 1, size => 10 }, |
| 183 |
"class", |
172 |
"class", |
| 184 |
{ data_type => "varchar", default_value => "", is_nullable => 0, size => 255 }, |
173 |
{ data_type => "varchar", default_value => "", is_nullable => 0, size => 255 }, |
| 185 |
"keep_for_pseudonymization", |
174 |
"keep_for_pseudonymization", |
|
Lines 219-224
__PACKAGE__->has_many(
Link Here
|
| 219 |
{ cascade_copy => 0, cascade_delete => 0 }, |
208 |
{ cascade_copy => 0, cascade_delete => 0 }, |
| 220 |
); |
209 |
); |
| 221 |
|
210 |
|
|
|
211 |
=head2 borrower_attribute_types_categories |
| 212 |
|
| 213 |
Type: has_many |
| 214 |
|
| 215 |
Related object: L<Koha::Schema::Result::BorrowerAttributeTypesCategory> |
| 216 |
|
| 217 |
=cut |
| 218 |
|
| 219 |
__PACKAGE__->has_many( |
| 220 |
"borrower_attribute_types_categories", |
| 221 |
"Koha::Schema::Result::BorrowerAttributeTypesCategory", |
| 222 |
{ "foreign.borrower_attribute_type_code" => "self.code" }, |
| 223 |
{ cascade_copy => 0, cascade_delete => 0 }, |
| 224 |
); |
| 225 |
|
| 222 |
=head2 borrower_attributes |
226 |
=head2 borrower_attributes |
| 223 |
|
227 |
|
| 224 |
Type: has_many |
228 |
Type: has_many |
|
Lines 234-259
__PACKAGE__->has_many(
Link Here
|
| 234 |
{ cascade_copy => 0, cascade_delete => 0 }, |
238 |
{ cascade_copy => 0, cascade_delete => 0 }, |
| 235 |
); |
239 |
); |
| 236 |
|
240 |
|
| 237 |
=head2 category_code |
|
|
| 238 |
|
| 239 |
Type: belongs_to |
| 240 |
|
| 241 |
Related object: L<Koha::Schema::Result::Category> |
| 242 |
|
| 243 |
=cut |
| 244 |
|
| 245 |
__PACKAGE__->belongs_to( |
| 246 |
"category_code", |
| 247 |
"Koha::Schema::Result::Category", |
| 248 |
{ categorycode => "category_code" }, |
| 249 |
{ |
| 250 |
is_deferrable => 1, |
| 251 |
join_type => "LEFT", |
| 252 |
on_delete => "RESTRICT", |
| 253 |
on_update => "RESTRICT", |
| 254 |
}, |
| 255 |
); |
| 256 |
|
| 257 |
=head2 pseudonymized_borrower_attributes |
241 |
=head2 pseudonymized_borrower_attributes |
| 258 |
|
242 |
|
| 259 |
Type: has_many |
243 |
Type: has_many |
|
Lines 269-277
__PACKAGE__->has_many(
Link Here
|
| 269 |
{ cascade_copy => 0, cascade_delete => 0 }, |
253 |
{ cascade_copy => 0, cascade_delete => 0 }, |
| 270 |
); |
254 |
); |
| 271 |
|
255 |
|
|
|
256 |
=head2 categorycodes |
| 272 |
|
257 |
|
| 273 |
# Created by DBIx::Class::Schema::Loader v0.07051 @ 2025-02-20 15:56:54 |
258 |
Type: many_to_many |
| 274 |
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Os1rn9zKu7/rVLVjZM3Mbg |
259 |
|
|
|
260 |
Composing rels: L</borrower_attribute_types_categories> -> categorycode |
| 261 |
|
| 262 |
=cut |
| 263 |
|
| 264 |
__PACKAGE__->many_to_many( |
| 265 |
"categorycodes", |
| 266 |
"borrower_attribute_types_categories", |
| 267 |
"categorycode", |
| 268 |
); |
| 269 |
|
| 270 |
|
| 271 |
# Created by DBIx::Class::Schema::Loader v0.07052 @ 2025-06-18 09:03:38 |
| 272 |
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:+xXVwvKXoXh17I2CHCdFlQ |
| 275 |
|
273 |
|
| 276 |
__PACKAGE__->add_columns( |
274 |
__PACKAGE__->add_columns( |
| 277 |
'+display_checkout' => { is_boolean => 1 }, |
275 |
'+display_checkout' => { is_boolean => 1 }, |