Bugzilla – Attachment 60806 Details for
Bug 18203
Add per borrower category restrictions on placing ILL requests in OPAC
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
DO NOT PUSH: Schema changes.
DO-NOT-PUSH-Schema-changes.patch (text/plain), 6.65 KB, created by
Alex Sassmannshausen
on 2017-03-03 07:50:04 UTC
(
hide
)
Description:
DO NOT PUSH: Schema changes.
Filename:
MIME Type:
Creator:
Alex Sassmannshausen
Created:
2017-03-03 07:50:04 UTC
Size:
6.65 KB
patch
obsolete
>From 5632485c08cb4c8ff4e66828f0614d22b646ac66 Mon Sep 17 00:00:00 2001 >From: Alex Sassmannshausen <alex.sassmannshausen@ptfs-europe.com> >Date: Fri, 3 Mar 2017 08:32:53 +0100 >Subject: [PATCH] DO NOT PUSH: Schema changes. > >* Koha/Schema/Result/Category.pm: Add `canplaceill`. >--- > Koha/Schema/Result/Category.pm | 287 +++++++++++++++++++++++++++++++++++++++++ > 1 file changed, 287 insertions(+) > >diff --git a/Koha/Schema/Result/Category.pm b/Koha/Schema/Result/Category.pm >index fc26a7d496..e2b22a66fd 100644 >--- a/Koha/Schema/Result/Category.pm >+++ b/Koha/Schema/Result/Category.pm >@@ -123,6 +123,293 @@ __PACKAGE__->table("categories"); > is_nullable: 0 > size: 7 > >+=head2 canplaceill >+ >+ data_type: 'tinyint' >+ default_value: 0 >+ is_nullable: 0 >+ >+=cut >+ >+__PACKAGE__->add_columns( >+ "categorycode", >+ { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 }, >+ "description", >+ { data_type => "mediumtext", is_nullable => 1 }, >+ "enrolmentperiod", >+ { data_type => "smallint", is_nullable => 1 }, >+ "enrolmentperioddate", >+ { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 }, >+ "upperagelimit", >+ { data_type => "smallint", is_nullable => 1 }, >+ "dateofbirthrequired", >+ { data_type => "tinyint", is_nullable => 1 }, >+ "finetype", >+ { data_type => "varchar", is_nullable => 1, size => 30 }, >+ "bulk", >+ { data_type => "tinyint", is_nullable => 1 }, >+ "enrolmentfee", >+ { data_type => "decimal", is_nullable => 1, size => [28, 6] }, >+ "overduenoticerequired", >+ { data_type => "tinyint", is_nullable => 1 }, >+ "issuelimit", >+ { data_type => "smallint", is_nullable => 1 }, >+ "reservefee", >+ { data_type => "decimal", is_nullable => 1, size => [28, 6] }, >+ "hidelostitems", >+ { data_type => "tinyint", default_value => 0, is_nullable => 0 }, >+ "category_type", >+ { data_type => "varchar", default_value => "A", is_nullable => 0, size => 1 }, >+ "BlockExpiredPatronOpacActions", >+ { >+ accessor => "block_expired_patron_opac_actions", >+ data_type => "tinyint", >+ default_value => -1, >+ is_nullable => 0, >+ }, >+ "default_privacy", >+ { >+ data_type => "enum", >+ default_value => "default", >+ extra => { list => ["default", "never", "forever"] }, >+ is_nullable => 0, >+ }, >+ "checkprevcheckout", >+ { >+ data_type => "varchar", >+ default_value => "inherit", >+ is_nullable => 0, >+ size => 7, >+ }, >+ "canplaceill", >+ { data_type => "tinyint", default_value => 0, is_nullable => 0 }, >+); >+ >+=head1 PRIMARY KEY >+ >+=over 4 >+ >+=item * L</categorycode> >+ >+=back >+ >+=cut >+ >+__PACKAGE__->set_primary_key("categorycode"); >+ >+=head1 RELATIONS >+ >+=head2 borrower_message_preferences >+ >+Type: has_many >+ >+Related object: L<Koha::Schema::Result::BorrowerMessagePreference> >+ >+=cut >+ >+__PACKAGE__->has_many( >+ "borrower_message_preferences", >+ "Koha::Schema::Result::BorrowerMessagePreference", >+ { "foreign.categorycode" => "self.categorycode" }, >+ { cascade_copy => 0, cascade_delete => 0 }, >+); >+ >+=head2 borrowers >+ >+Type: has_many >+ >+Related object: L<Koha::Schema::Result::Borrower> >+ >+=cut >+ >+__PACKAGE__->has_many( >+ "borrowers", >+ "Koha::Schema::Result::Borrower", >+ { "foreign.categorycode" => "self.categorycode" }, >+ { cascade_copy => 0, cascade_delete => 0 }, >+); >+ >+=head2 branch_borrower_circ_rules >+ >+Type: has_many >+ >+Related object: L<Koha::Schema::Result::BranchBorrowerCircRule> >+ >+=cut >+ >+__PACKAGE__->has_many( >+ "branch_borrower_circ_rules", >+ "Koha::Schema::Result::BranchBorrowerCircRule", >+ { "foreign.categorycode" => "self.categorycode" }, >+ { cascade_copy => 0, cascade_delete => 0 }, >+); >+ >+=head2 categories_branches >+ >+Type: has_many >+ >+Related object: L<Koha::Schema::Result::CategoriesBranch> >+ >+=cut >+ >+__PACKAGE__->has_many( >+ "categories_branches", >+ "Koha::Schema::Result::CategoriesBranch", >+ { "foreign.categorycode" => "self.categorycode" }, >+ { cascade_copy => 0, cascade_delete => 0 }, >+); >+ >+=head2 default_borrower_circ_rule >+ >+Type: might_have >+ >+Related object: L<Koha::Schema::Result::DefaultBorrowerCircRule> >+ >+=cut >+ >+__PACKAGE__->might_have( >+ "default_borrower_circ_rule", >+ "Koha::Schema::Result::DefaultBorrowerCircRule", >+ { "foreign.categorycode" => "self.categorycode" }, >+ { cascade_copy => 0, cascade_delete => 0 }, >+); >+ >+ >+# Created by DBIx::Class::Schema::Loader v0.07042 @ 2017-03-02 16:54:49 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:3ibThNmTCUqfIMnQH89C8g >+# These lines were loaded from '/home/alex/src/koha/Koha/Schema/Result/Category.pm' found in @INC. >+# They are now part of the custom portion of this file >+# for you to hand-edit. If you do not either delete >+# this section or remove that file from @INC, this section >+# will be repeated redundantly when you re-create this >+# file again via Loader! See skip_load_external to disable >+# this feature. >+ >+use utf8; >+package Koha::Schema::Result::Category; >+ >+# Created by DBIx::Class::Schema::Loader >+# DO NOT MODIFY THE FIRST PART OF THIS FILE >+ >+=head1 NAME >+ >+Koha::Schema::Result::Category >+ >+=cut >+ >+use strict; >+use warnings; >+ >+use base 'DBIx::Class::Core'; >+ >+=head1 TABLE: C<categories> >+ >+=cut >+ >+__PACKAGE__->table("categories"); >+ >+=head1 ACCESSORS >+ >+=head2 categorycode >+ >+ data_type: 'varchar' >+ default_value: (empty string) >+ is_nullable: 0 >+ size: 10 >+ >+=head2 description >+ >+ data_type: 'mediumtext' >+ is_nullable: 1 >+ >+=head2 enrolmentperiod >+ >+ data_type: 'smallint' >+ is_nullable: 1 >+ >+=head2 enrolmentperioddate >+ >+ data_type: 'date' >+ datetime_undef_if_invalid: 1 >+ is_nullable: 1 >+ >+=head2 upperagelimit >+ >+ data_type: 'smallint' >+ is_nullable: 1 >+ >+=head2 dateofbirthrequired >+ >+ data_type: 'tinyint' >+ is_nullable: 1 >+ >+=head2 finetype >+ >+ data_type: 'varchar' >+ is_nullable: 1 >+ size: 30 >+ >+=head2 bulk >+ >+ data_type: 'tinyint' >+ is_nullable: 1 >+ >+=head2 enrolmentfee >+ >+ data_type: 'decimal' >+ is_nullable: 1 >+ size: [28,6] >+ >+=head2 overduenoticerequired >+ >+ data_type: 'tinyint' >+ is_nullable: 1 >+ >+=head2 issuelimit >+ >+ data_type: 'smallint' >+ is_nullable: 1 >+ >+=head2 reservefee >+ >+ data_type: 'decimal' >+ is_nullable: 1 >+ size: [28,6] >+ >+=head2 hidelostitems >+ >+ data_type: 'tinyint' >+ default_value: 0 >+ is_nullable: 0 >+ >+=head2 category_type >+ >+ data_type: 'varchar' >+ default_value: 'A' >+ is_nullable: 0 >+ size: 1 >+ >+=head2 BlockExpiredPatronOpacActions >+ >+ accessor: 'block_expired_patron_opac_actions' >+ data_type: 'tinyint' >+ default_value: -1 >+ is_nullable: 0 >+ >+=head2 default_privacy >+ >+ data_type: 'enum' >+ default_value: 'default' >+ extra: {list => ["default","never","forever"]} >+ is_nullable: 0 >+ >+=head2 checkprevcheckout >+ >+ data_type: 'varchar' >+ default_value: 'inherit' >+ is_nullable: 0 >+ size: 7 >+ > =cut > > __PACKAGE__->add_columns( >-- >2.11.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 18203
:
60805
|
60806
|
145331
|
145349
|
145354
|
148707
|
148719
|
149010
|
153345
|
153346
|
153347
|
153370
|
153371
|
153372
|
155316
|
155317
|
155318
|
158126
|
158127
|
158128