Bugzilla – Attachment 135243 Details for
Bug 30813
Refactor TransformMarcToKoha to remove TransformMarcToKohaOneField
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 30813: (follow-up) ImportBatch updates
Bug-30813-follow-up-ImportBatch-updates.patch (text/plain), 1.34 KB, created by
Nick Clemens (kidclamp)
on 2022-05-20 11:27:43 UTC
(
hide
)
Description:
Bug 30813: (follow-up) ImportBatch updates
Filename:
MIME Type:
Creator:
Nick Clemens (kidclamp)
Created:
2022-05-20 11:27:43 UTC
Size:
1.34 KB
patch
obsolete
>From 1b97bef6b86ae745d723930091fa9890b680b2a4 Mon Sep 17 00:00:00 2001 >From: Nick Clemens <nick@bywatersolutions.com> >Date: Fri, 20 May 2022 11:26:29 +0000 >Subject: [PATCH] Bug 30813: (follow-up) ImportBatch updates > >Missed these in the original commits >--- > C4/ImportBatch.pm | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > >diff --git a/C4/ImportBatch.pm b/C4/ImportBatch.pm >index 845caa3b58..32b741fd95 100644 >--- a/C4/ImportBatch.pm >+++ b/C4/ImportBatch.pm >@@ -765,7 +765,7 @@ sub BatchCommitItems { > my ( $MARCfield, $MARCsubfield ) = GetMarcFromKohaField( 'items.onloan' ); > $item_marc->field($MARCfield)->delete_subfield( code => $MARCsubfield ); > >- my $item = TransformMarcToKoha( $item_marc ); >+ my $item = TransformMarcToKoha({ record => $item_marc }); > > my $duplicate_barcode = exists( $item->{'barcode'} ) && Koha::Items->find({ barcode => $item->{'barcode'} }); > my $duplicate_itemnumber = exists( $item->{'itemnumber'} ); >@@ -1710,7 +1710,7 @@ sub _parse_biblio_fields { > my ($marc_record) = @_; > > my $dbh = C4::Context->dbh; >- my $bibliofields = TransformMarcToKoha($marc_record, ''); >+ my $bibliofields = TransformMarcToKoha({ record => $marc_record }); > return ($bibliofields->{'title'}, $bibliofields->{'author'}, $bibliofields->{'isbn'}, $bibliofields->{'issn'}); > > } >-- >2.30.2
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 30813
:
135232
|
135233
|
135234
|
135235
|
135239
|
135240
|
135241
|
135242
|
135243
|
135302
|
135303
|
135304
|
135305
|
135306
|
135371
|
135374
|
135375
|
135376
|
135377
|
135378
|
135379
|
135763
|
135764
|
135765
|
135766
|
135767
|
135768
|
135769
|
135803
|
135825