Bugzilla – Attachment 191614 Details for
Bug 40777
500 Error: Something went wrong when loading the table Should Exit Cleanly
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 40777: Add POD
Bug-40777-Add-POD.patch (text/plain), 3.48 KB, created by
Victor Grousset/tuxayo
on 2026-01-18 14:44:38 UTC
(
hide
)
Description:
Bug 40777: Add POD
Filename:
MIME Type:
Creator:
Victor Grousset/tuxayo
Created:
2026-01-18 14:44:38 UTC
Size:
3.48 KB
patch
obsolete
>From 5afaff7779133d2cac8f87c8e921ed0abf83ca90 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Mon, 5 Jan 2026 11:16:04 +0100 >Subject: [PATCH] Bug 40777: Add POD > >Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net> >--- > Koha/Database/DataInconsistency.pm | 69 ++++++++++++++++++++++++++++++ > 1 file changed, 69 insertions(+) > >diff --git a/Koha/Database/DataInconsistency.pm b/Koha/Database/DataInconsistency.pm >index 42646c2b3d..f669dcbe8f 100644 >--- a/Koha/Database/DataInconsistency.pm >+++ b/Koha/Database/DataInconsistency.pm >@@ -1,5 +1,20 @@ > package Koha::Database::DataInconsistency; > >+# This file is part of Koha. >+# >+# Koha is free software; you can redistribute it and/or modify it >+# under the terms of the GNU General Public License as published by >+# the Free Software Foundation; either version 3 of the License, or >+# (at your option) any later version. >+# >+# Koha is distributed in the hope that it will be useful, but >+# WITHOUT ANY WARRANTY; without even the implied warranty of >+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the >+# GNU General Public License for more details. >+# >+# You should have received a copy of the GNU General Public License >+# along with Koha; if not, see <https://www.gnu.org/licenses>. >+ > use Modern::Perl; > use C4::Context; > use C4::Biblio; >@@ -10,6 +25,18 @@ use Koha::Items; > use Koha::ItemTypes; > use Koha::I18N qw( __x ); > >+=head1 NAME >+ >+Koha::Database::DataInconsistency - Search for data inconsistency in the database >+ >+=head1 API >+ >+=head2 invalid_item_library >+ >+ Search for items with non-existent holding or home library. >+ >+=cut >+ > sub invalid_item_library { > my ( $self, $items ) = @_; > >@@ -39,6 +66,12 @@ sub invalid_item_library { > return @errors; > } > >+=head2 ids >+ >+ Build a hashref of IDs from a Koha::Object Koha::Objects-based object. >+ >+=cut >+ > sub ids { > my ( $self, $object ) = @_; > if ( $object->can('_resultset') ) { >@@ -52,6 +85,12 @@ sub ids { > } > } > >+=head2 no_item_type >+ >+ Search for items of biblioitems with non-existent item type. >+ >+=cut >+ > sub no_item_type { > my ( $self, $biblios ) = @_; > my $ids = $self->ids($biblios); >@@ -99,6 +138,12 @@ sub no_item_type { > return @errors; > } > >+=head2 invalid_item_type >+ >+ Search for items or biblioitems with invalid item type. >+ >+=cut >+ > sub invalid_item_type { > my ( $self, $biblios ) = @_; > my $ids = $self->ids($biblios); >@@ -141,6 +186,12 @@ sub invalid_item_type { > return @errors; > } > >+=head2 errors_in_marc >+ >+ Search for bibliographic records with errors in the MARC record. >+ >+=cut >+ > sub errors_in_marc { > my ( $self, $biblios ) = @_; > my $ids = $self->ids($biblios); >@@ -218,6 +269,12 @@ sub errors_in_marc { > return $errors; > } > >+=head2 nonexistent_AV >+ >+ Search for bibliographic frameworks with non-existent authorised values. >+ >+=cut >+ > sub nonexistent_AV { > my ( $self, $biblios ) = @_; > my $ids = $self->ids($biblios); >@@ -302,6 +359,12 @@ sub nonexistent_AV { > return @errors; > } > >+=head2 empty_title >+ >+ Search for bibliographic records without title defined. >+ >+=cut >+ > sub empty_title { > my ( $self, $biblios ) = @_; > my $ids = $self->ids($biblios); >@@ -327,6 +390,12 @@ sub empty_title { > return @errors; > } > >+=head2 for_biblio >+ >+ Search for possible problems in a given bibliographic record. >+ >+=cut >+ > sub for_biblio { > my ( $self, $biblio ) = @_; > my @invalid_item_library = $self->invalid_item_library( $biblio->items ); >-- >2.52.0
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 40777
:
187526
|
187527
|
187528
|
188222
|
188223
|
188224
|
188225
|
188226
|
188227
|
189598
|
190261
|
190262
|
190263
|
190264
|
190265
|
190266
|
190267
|
190268
|
190269
|
190270
|
190884
|
190885
|
191603
|
191604
|
191605
|
191606
|
191607
|
191608
|
191609
|
191610
|
191611
|
191612
|
191613
| 191614 |
191615