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

(-)a/Koha/Schema/Result/BorrowerAttributeType.pm (-2 / +13 lines)
Lines 153-158 defines if the attribute is mandatory or not in the staff interface Link Here
153
153
154
defines if the attribute is mandatory or not in the OPAC
154
defines if the attribute is mandatory or not in the OPAC
155
155
156
=head2 self_renewal_verification_check
157
158
  data_type: 'tinyint'
159
  default_value: 0
160
  is_nullable: 0
161
162
use this attribute as a verification step for patron self-renewal
163
156
=cut
164
=cut
157
165
158
__PACKAGE__->add_columns(
166
__PACKAGE__->add_columns(
Lines 188-193 __PACKAGE__->add_columns( Link Here
188
  { data_type => "tinyint", default_value => 0, is_nullable => 0 },
196
  { data_type => "tinyint", default_value => 0, is_nullable => 0 },
189
  "opac_mandatory",
197
  "opac_mandatory",
190
  { data_type => "tinyint", default_value => 0, is_nullable => 0 },
198
  { data_type => "tinyint", default_value => 0, is_nullable => 0 },
199
  "self_renewal_verification_check",
200
  { data_type => "tinyint", default_value => 0, is_nullable => 0 },
191
);
201
);
192
202
193
=head1 PRIMARY KEY
203
=head1 PRIMARY KEY
Lines 255-262 __PACKAGE__->belongs_to( Link Here
255
);
265
);
256
266
257
267
258
# Created by DBIx::Class::Schema::Loader v0.07051 @ 2025-08-20 19:38:04
268
# Created by DBIx::Class::Schema::Loader v0.07051 @ 2025-12-23 11:29:27
259
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:H/UZDZR19JQd/N/Tzb1+2A
269
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:npxCmMqePzDHyZNNL+2IKg
260
270
261
__PACKAGE__->add_columns(
271
__PACKAGE__->add_columns(
262
    '+display_checkout'          => { is_boolean => 1 },
272
    '+display_checkout'          => { is_boolean => 1 },
Lines 270-275 __PACKAGE__->add_columns( Link Here
270
    '+searched_by_default'       => { is_boolean => 1 },
280
    '+searched_by_default'       => { is_boolean => 1 },
271
    '+staff_searchable'          => { is_boolean => 1 },
281
    '+staff_searchable'          => { is_boolean => 1 },
272
    '+unique_id'                 => { is_boolean => 1 },
282
    '+unique_id'                 => { is_boolean => 1 },
283
    '+self_renewal_verification_check'                 => { is_boolean => 1 },
273
);
284
);
274
285
275
=head2 koha_object_class
286
=head2 koha_object_class
(-)a/Koha/Schema/Result/Category.pm (-3 / +50 lines)
Lines 230-235 define maximum amount that the guarantors with guarantees of a patron in this ca Link Here
230
230
231
enforce the patron expiry notice for this category
231
enforce the patron expiry notice for this category
232
232
233
=head2 self_renewal_enabled
234
235
  data_type: 'tinyint'
236
  default_value: 0
237
  is_nullable: 0
238
239
allow self renewal for this category
240
241
=head2 self_renewal_availability_start
242
243
  data_type: 'smallint'
244
  is_nullable: 1
245
246
how long before the patron expiry date self-renewal should be made available (overrides system default of NotifyBorrowerDeparture)
247
248
=head2 self_renewal_fines_block
249
250
  data_type: 'integer'
251
  is_nullable: 1
252
253
the amount owed in fines before self renewal is blocked (overrides system default of noissuescharge)
254
255
=head2 self_renewal_if_expired
256
257
  data_type: 'smallint'
258
  default_value: 0
259
  is_nullable: 1
260
261
how long after expiry a patron can self renew their account
262
263
=head2 self_renewal_failure_message
264
265
  data_type: 'mediumtext'
266
  is_nullable: 1
267
268
the message to display if self renewal is not successful
269
233
=cut
270
=cut
234
271
235
__PACKAGE__->add_columns(
272
__PACKAGE__->add_columns(
Lines 303-308 __PACKAGE__->add_columns( Link Here
303
  { data_type => "integer", is_nullable => 1 },
340
  { data_type => "integer", is_nullable => 1 },
304
  "enforce_expiry_notice",
341
  "enforce_expiry_notice",
305
  { data_type => "tinyint", default_value => 0, is_nullable => 0 },
342
  { data_type => "tinyint", default_value => 0, is_nullable => 0 },
343
  "self_renewal_enabled",
344
  { data_type => "tinyint", default_value => 0, is_nullable => 0 },
345
  "self_renewal_availability_start",
346
  { data_type => "smallint", is_nullable => 1 },
347
  "self_renewal_fines_block",
348
  { data_type => "integer", is_nullable => 1 },
349
  "self_renewal_if_expired",
350
  { data_type => "smallint", default_value => 0, is_nullable => 1 },
351
  "self_renewal_failure_message",
352
  { data_type => "mediumtext", is_nullable => 1 },
306
);
353
);
307
354
308
=head1 PRIMARY KEY
355
=head1 PRIMARY KEY
Lines 410-417 __PACKAGE__->has_many( Link Here
410
);
457
);
411
458
412
459
413
# Created by DBIx::Class::Schema::Loader v0.07051 @ 2025-07-10 07:11:31
460
# Created by DBIx::Class::Schema::Loader v0.07051 @ 2025-12-23 11:29:27
414
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:ADt+iDjteg9Jb81L2FMIvg
461
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:f5UYRD69eLKwhq/YXdVxKg
415
462
416
# You can replace this text with custom code or comments, and it will be preserved on regeneration
463
# You can replace this text with custom code or comments, and it will be preserved on regeneration
417
464
Lines 447-452 __PACKAGE__->add_columns( Link Here
447
    '+require_strong_password'                => { is_boolean => 1 },
494
    '+require_strong_password'                => { is_boolean => 1 },
448
    '+reset_password'                         => { is_boolean => 1 },
495
    '+reset_password'                         => { is_boolean => 1 },
449
    '+enforce_expiry_notice'                  => { is_boolean => 1 },
496
    '+enforce_expiry_notice'                  => { is_boolean => 1 },
497
    '+self_renewal_enabled'                   => { is_boolean => 1 },
450
);
498
);
451
499
452
1;
500
1;
453
- 

Return to bug 26355