Bugzilla – Attachment 175649 Details for
Bug 38330
Make bib-level suppression a biblio table field instead of part of a marc tag
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 38330: DBIC updates
Bug-38330-DBIC-updates.patch (text/plain), 3.17 KB, created by
Tomás Cohen Arazi (tcohen)
on 2024-12-18 13:14:17 UTC
(
hide
)
Description:
Bug 38330: DBIC updates
Filename:
MIME Type:
Creator:
Tomás Cohen Arazi (tcohen)
Created:
2024-12-18 13:14:17 UTC
Size:
3.17 KB
patch
obsolete
>From cf6cb19ce8ed87f9a383f20372630cb52b8bcc9e Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@theke.io> >Date: Wed, 18 Dec 2024 09:12:22 -0300 >Subject: [PATCH] Bug 38330: DBIC updates > >--- > Koha/Schema/Result/Biblio.pm | 17 ++++++++++++++--- > Koha/Schema/Result/Deletedbiblio.pm | 19 +++++++++++++++++-- > 2 files changed, 31 insertions(+), 5 deletions(-) > >diff --git a/Koha/Schema/Result/Biblio.pm b/Koha/Schema/Result/Biblio.pm >index a8e7098854b..7d2ce13fa0e 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; >diff --git a/Koha/Schema/Result/Deletedbiblio.pm b/Koha/Schema/Result/Deletedbiblio.pm >index 33b8c92ead7..b441f19e6de 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'; > } >-- >2.47.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 38330
:
175648
|
175649
|
175650
|
175651
|
175767
|
175768
|
175769
|
175770
|
179335
|
179336
|
179337
|
179338
|
179339
|
179340
|
179341