Bugzilla – Attachment 194220 Details for
Bug 35104
We should warn when attempting to save MARC records that contain characters invalid in XML
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 35104: Add Koha::Biblio::Metadata::Error(s) object classes
8d17717.patch (text/plain), 3.09 KB, created by
Martin Renvoize (ashimema)
on 2026-03-01 16:23:46 UTC
(
hide
)
Description:
Bug 35104: Add Koha::Biblio::Metadata::Error(s) object classes
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2026-03-01 16:23:46 UTC
Size:
3.09 KB
patch
obsolete
>From 8d17717f0d40599a326b2343ddf09ecdcf3df2e1 Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@openfifth.co.uk> >Date: Sat, 28 Feb 2026 17:06:33 +0000 >Subject: [PATCH] Bug 35104: Add Koha::Biblio::Metadata::Error(s) object > classes > >Introduce Koha::Biblio::Metadata::Error and Koha::Biblio::Metadata::Errors >as the Koha object layer over the new biblio_metadata_errors table. > >Sponsored-by: OpenFifth >--- > Koha/Biblio/Metadata/Error.pm | 38 +++++++++++++++++++++++++++ > Koha/Biblio/Metadata/Errors.pm | 48 ++++++++++++++++++++++++++++++++++ > 2 files changed, 86 insertions(+) > create mode 100644 Koha/Biblio/Metadata/Error.pm > create mode 100644 Koha/Biblio/Metadata/Errors.pm > >diff --git a/Koha/Biblio/Metadata/Error.pm b/Koha/Biblio/Metadata/Error.pm >new file mode 100644 >index 00000000000..37ecabb4781 >--- /dev/null >+++ b/Koha/Biblio/Metadata/Error.pm >@@ -0,0 +1,38 @@ >+package Koha::Biblio::Metadata::Error; >+ >+# 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 base qw(Koha::Object); >+ >+=head1 NAME >+ >+Koha::Biblio::Metadata::Error - Koha Biblio Metadata Error object class >+ >+=head1 API >+ >+=head2 Internal methods >+ >+=head3 _type >+ >+=cut >+ >+sub _type { >+ return 'BiblioMetadataError'; >+} >+ >+1; >diff --git a/Koha/Biblio/Metadata/Errors.pm b/Koha/Biblio/Metadata/Errors.pm >new file mode 100644 >index 00000000000..3fd752d2ab9 >--- /dev/null >+++ b/Koha/Biblio/Metadata/Errors.pm >@@ -0,0 +1,48 @@ >+package Koha::Biblio::Metadata::Errors; >+ >+# 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 Koha::Biblio::Metadata::Error; >+ >+use base qw(Koha::Objects); >+ >+=head1 NAME >+ >+Koha::Biblio::Metadata::Errors - Koha Biblio Metadata Errors object set class >+ >+=head1 API >+ >+=head2 Internal methods >+ >+=head3 _type >+ >+=cut >+ >+sub _type { >+ return 'BiblioMetadataError'; >+} >+ >+=head3 object_class >+ >+=cut >+ >+sub object_class { >+ return 'Koha::Biblio::Metadata::Error'; >+} >+ >+1; >-- >2.53.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 35104
:
157625
|
157627
|
157628
|
157642
|
159615
|
159620
|
159621
|
159630
|
159810
|
159811
|
159812
|
159813
|
166431
|
173145
|
173146
|
176820
|
176821
|
176850
|
176851
|
176852
|
176860
|
193985
|
193986
|
193987
|
193988
|
193989
|
193990
|
193991
|
193992
|
193993
|
193994
|
193995
|
193996
|
193997
|
193998
|
193999
|
194000
|
194001
|
194004
|
194005
|
194006
|
194007
|
194008
|
194009
|
194010
|
194011
|
194012
|
194013
|
194152
|
194153
|
194154
|
194155
|
194156
|
194157
|
194158
|
194159
|
194160
|
194161
|
194162
|
194163
|
194164
|
194165
|
194166
|
194167
|
194168
|
194169
|
194170
|
194171
|
194172
|
194213
|
194214
|
194215
|
194216
|
194217
|
194218
|
194219
| 194220 |
194221
|
194222
|
194223
|
194224
|
194225
|
194226
|
194227