From ea362e033e6841838c1ff13fdbe555dfdef549ea Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Wed, 18 Dec 2024 09:12:22 -0300 Subject: [PATCH] Bug 38330: DBIC updates Signed-off-by: Andrew Fuerste Henry Signed-off-by: Martin Renvoize --- Koha/Schema/Result/Biblio.pm | 19 +++++++++++++++---- Koha/Schema/Result/Deletedbiblio.pm | 21 ++++++++++++++++++--- 2 files changed, 33 insertions(+), 7 deletions(-) diff --git a/Koha/Schema/Result/Biblio.pm b/Koha/Schema/Result/Biblio.pm index a8e7098854b..7a848b2f506 100644 --- a/Koha/Schema/Result/Biblio.pm +++ b/Koha/Schema/Result/Biblio.pm @@ -139,6 +139,14 @@ the date this record was added to Koha summary from the MARC record (520$a in MARC21) +=head2 opac_suppressed + + data_type: 'tinyint' + default_value: 0 + is_nullable: 0 + +whether the record should be suppressed in the OPAC + =cut __PACKAGE__->add_columns( @@ -179,6 +187,8 @@ __PACKAGE__->add_columns( { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 0 }, "abstract", { data_type => "longtext", is_nullable => 1 }, + "opac_suppressed", + { data_type => "tinyint", default_value => 0, is_nullable => 0 }, ); =head1 PRIMARY KEY @@ -631,8 +641,8 @@ __PACKAGE__->has_many( ); -# Created by DBIx::Class::Schema::Loader v0.07051 @ 2024-07-31 14:45:08 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:rLzlHl6jAwBmgmiXavpP0w +# Created by DBIx::Class::Schema::Loader v0.07051 @ 2024-12-18 12:10:28 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:QXaEHXqH2ApC+F22zo7gXA __PACKAGE__->has_many( "biblioitem", @@ -663,7 +673,8 @@ __PACKAGE__->has_many( ); __PACKAGE__->add_columns( - "+serial" => { is_boolean => 1 } + "+opac_suppressed" => { is_boolean => 1 }, + "+serial" => { is_boolean => 1 }, ); -1; +1; \ No newline at end of file diff --git a/Koha/Schema/Result/Deletedbiblio.pm b/Koha/Schema/Result/Deletedbiblio.pm index 33b8c92ead7..e950ce322a2 100644 --- a/Koha/Schema/Result/Deletedbiblio.pm +++ b/Koha/Schema/Result/Deletedbiblio.pm @@ -139,6 +139,14 @@ the date this record was added to Koha summary from the MARC record (520$a in MARC21) +=head2 opac_suppressed + + data_type: 'tinyint' + default_value: 0 + is_nullable: 0 + +whether the record should be suppressed in the OPAC + =cut __PACKAGE__->add_columns( @@ -179,6 +187,8 @@ __PACKAGE__->add_columns( { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 0 }, "abstract", { data_type => "longtext", is_nullable => 1 }, + "opac_suppressed", + { data_type => "tinyint", default_value => 0, is_nullable => 0 }, ); =head1 PRIMARY KEY @@ -211,8 +221,8 @@ __PACKAGE__->has_many( ); -# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-01-21 13:39:29 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:KwlqhkWWX6CYWb3l2fCcSg +# Created by DBIx::Class::Schema::Loader v0.07051 @ 2024-12-18 12:10:28 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:3ijUwLxcF/WMvNqoQVc6ZQ __PACKAGE__->has_many( "biblioitem", @@ -228,6 +238,11 @@ __PACKAGE__->has_one( { cascade_copy => 0, cascade_delete => 0 }, ); +__PACKAGE__->add_columns( + "+opac_suppressed" => { is_boolean => 1 }, + "+serial" => { is_boolean => 1 }, +); + sub koha_objects_class { 'Koha::Old::Biblios'; } @@ -236,4 +251,4 @@ sub koha_object_class { 'Koha::Old::Biblio'; } -1; +1; \ No newline at end of file -- 2.48.1