From 71f202757a2a05e0609343010324bac0f6367a0b 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 Signed-off-by: David Cook --- Koha/Schema/Result/Biblio.pm | 19 +++++++++++++++---- Koha/Schema/Result/Deletedbiblio.pm | 11 +++++++++++ 2 files changed, 26 insertions(+), 4 deletions(-) diff --git a/Koha/Schema/Result/Biblio.pm b/Koha/Schema/Result/Biblio.pm index a8e7098854..7a848b2f50 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 a699218123..d7603e9382 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 @@ -229,6 +239,7 @@ __PACKAGE__->has_one( ); __PACKAGE__->add_columns( + "+opac_suppressed" => { is_boolean => 1 }, '+serial' => { is_boolean => 1 }, ); -- 2.39.5