Bugzilla – Attachment 182136 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), 2.88 KB, created by
David Cook
on 2025-05-09 03:18:33 UTC
(
hide
)
Description:
Bug 38330: DBIC updates
Filename:
MIME Type:
Creator:
David Cook
Created:
2025-05-09 03:18:33 UTC
Size:
2.88 KB
patch
obsolete
>From 71f202757a2a05e0609343010324bac0f6367a0b 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 > >Signed-off-by: Andrew Fuerste Henry <andrew@bywatersolutions.com> >Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> >Signed-off-by: David Cook <dcook@prosentient.com.au> >--- > 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
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
|
182094
|
182095
|
182096
|
182097
|
182098
|
182099
|
182100
|
182101
|
182102
|
182135
| 182136 |
182137
|
182138
|
182139
|
182140
|
182141
|
182142
|
182143
|
182144
|
182145