Bugzilla – Attachment 71146 Details for
Bug 20126
Saving a biblio does no longer update MARC field lengths
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 20126: Restore MARC field length calculation in ModBiblioMarc
Bug-20126-Restore-MARC-field-length-calculation-in.patch (text/plain), 1.00 KB, created by
Nick Clemens (kidclamp)
on 2018-02-02 12:39:06 UTC
(
hide
)
Description:
Bug 20126: Restore MARC field length calculation in ModBiblioMarc
Filename:
MIME Type:
Creator:
Nick Clemens (kidclamp)
Created:
2018-02-02 12:39:06 UTC
Size:
1.00 KB
patch
obsolete
>From d6665689628535ae1861fcf2d70b8774b80efde6 Mon Sep 17 00:00:00 2001 >From: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >Date: Fri, 2 Feb 2018 11:32:49 +0100 >Subject: [PATCH] Bug 20126: Restore MARC field length calculation in > ModBiblioMarc > >Trivial fix. Problem raised by bug 10455. > >Test plan: >[1] Create or edit biblio record. >[2] Save and check leader field lengths in MARC view. > >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >--- > C4/Biblio.pm | 2 ++ > 1 file changed, 2 insertions(+) > >diff --git a/C4/Biblio.pm b/C4/Biblio.pm >index b9c4655..f00d8df 100644 >--- a/C4/Biblio.pm >+++ b/C4/Biblio.pm >@@ -3333,6 +3333,8 @@ sub ModBiblioMarc { > format => 'marcxml', > marcflavour => C4::Context->preference('marcflavour'), > }; >+ $record->as_usmarc; # Bug 20126/10455 This triggers field length calculation >+ > # FIXME To replace with ->find_or_create? > if ( my $m_rs = Koha::Biblio::Metadatas->find($metadata) ) { > $m_rs->metadata( $record->as_xml_record($encoding) ); >-- >2.1.4
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 20126
:
71140
|
71145
| 71146 |
71147