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 (-1 / +48 lines)
Lines 222-227 define maximum amount that the guarantors with guarantees of a patron in this ca Link Here
222
222
223
enforce the patron expiry notice for this category
223
enforce the patron expiry notice for this category
224
224
225
=head2 self_renewal_enabled
226
227
  data_type: 'tinyint'
228
  default_value: 0
229
  is_nullable: 0
230
231
allow self renewal for this category
232
233
=head2 self_renewal_availability_start
234
235
  data_type: 'smallint'
236
  is_nullable: 1
237
238
how long before the patron expiry date self-renewal should be made available (overrides system default of NotifyBorrowerDeparture)
239
240
=head2 self_renewal_fines_block
241
242
  data_type: 'integer'
243
  is_nullable: 1
244
245
the amount owed in fines before self renewal is blocked (overrides system default of noissuescharge)
246
247
=head2 self_renewal_if_expired
248
249
  data_type: 'smallint'
250
  default_value: 0
251
  is_nullable: 1
252
253
how long after expiry a patron can self renew their account
254
255
=head2 self_renewal_failure_message
256
257
  data_type: 'mediumtext'
258
  is_nullable: 1
259
260
the message to display if self renewal is not successful
261
225
=cut
262
=cut
226
263
227
__PACKAGE__->add_columns(
264
__PACKAGE__->add_columns(
Lines 293-298 __PACKAGE__->add_columns( Link Here
293
  { data_type => "integer", is_nullable => 1 },
330
  { data_type => "integer", is_nullable => 1 },
294
  "enforce_expiry_notice",
331
  "enforce_expiry_notice",
295
  { data_type => "tinyint", default_value => 0, is_nullable => 0 },
332
  { data_type => "tinyint", default_value => 0, is_nullable => 0 },
333
  "self_renewal_enabled",
334
  { data_type => "tinyint", default_value => 0, is_nullable => 0 },
335
  "self_renewal_availability_start",
336
  { data_type => "smallint", is_nullable => 1 },
337
  "self_renewal_fines_block",
338
  { data_type => "integer", is_nullable => 1 },
339
  "self_renewal_if_expired",
340
  { data_type => "smallint", default_value => 0, is_nullable => 1 },
341
  "self_renewal_failure_message",
342
  { data_type => "mediumtext", is_nullable => 1 },
296
);
343
);
297
344
298
=head1 PRIMARY KEY
345
=head1 PRIMARY KEY
Lines 437-442 __PACKAGE__->add_columns( Link Here
437
    '+require_strong_password'                => { is_boolean => 1 },
484
    '+require_strong_password'                => { is_boolean => 1 },
438
    '+reset_password'                         => { is_boolean => 1 },
485
    '+reset_password'                         => { is_boolean => 1 },
439
    '+enforce_expiry_notice'                  => { is_boolean => 1 },
486
    '+enforce_expiry_notice'                  => { is_boolean => 1 },
487
    '+self_renewal_enabled'                   => { is_boolean => 1 },
440
);
488
);
441
489
442
1;
490
1;
443
- 

Return to bug 26355