Bugzilla – Attachment 135767 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.65 KB, created by
Marcel de Rooy
on 2022-06-07 13:00:13 UTC
(
hide
)
Description:
Bug 30813: (follow-up) ImportBatch updates
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2022-06-07 13:00:13 UTC
Size:
1.65 KB
patch
obsolete
>From 23a65e61ffd1cadeb0f7abde8d53e84691212574 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 >MIME-Version: 1.0 >Content-Type: text/plain; charset=utf-8 >Content-Transfer-Encoding: 8bit >Content-Type: text/plain; charset=utf-8 > >Missed these in the original commits > >Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> > >Signed-off-by: Joonas Kylmälä <joonas.kylmala@iki.fi> > >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >--- > C4/ImportBatch.pm | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > >diff --git a/C4/ImportBatch.pm b/C4/ImportBatch.pm >index 6a8fc526f2..1dffc9a5b1 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'} ); >@@ -1714,7 +1714,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.20.1
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