Bugzilla – Attachment 175169 Details for
Bug 38619
UNIMARC prices should also be extracted from 071d
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 38619: UNIMARC prices should also be extracted from 071d
Bug-38619-UNIMARC-prices-should-also-be-extracted-.patch (text/plain), 1.32 KB, created by
Baptiste Wojtkowski (bwoj)
on 2024-12-04 11:25:05 UTC
(
hide
)
Description:
Bug 38619: UNIMARC prices should also be extracted from 071d
Filename:
MIME Type:
Creator:
Baptiste Wojtkowski (bwoj)
Created:
2024-12-04 11:25:05 UTC
Size:
1.32 KB
patch
obsolete
>From 1db2d0507de54fb4719d8ae0a2d1a94cd22eb353 Mon Sep 17 00:00:00 2001 >From: Baptiste Wojtkowski <baptiste.wojtkowski@biblibre.com> >Date: Wed, 4 Dec 2024 12:22:33 +0100 >Subject: [PATCH] Bug 38619: UNIMARC prices should also be extracted from 071d > >When adding a document that does not use 010d as price document, but 071d, the price is not imported from koha since it only checks 010d and 345d. > >To reproduce: >1 - Create a Koha item, make sure there is neither 010d or 345d >2 - Add a 071d and fill a price >3 - Export the item as marcxml >4 - If you do not have one: in acquisition, create a vendor, a basket associated to this vendor, and a line associated to this vendor >5 - Add a line to any open basket, select: import "from a new file" and > select the exported marcxml -> The price in 071 is not imported >6 - Apply patch >7 - Repeat 5 -> the price is properly imported >--- > C4/Biblio.pm | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/C4/Biblio.pm b/C4/Biblio.pm >index 6c62b213..681ef771 100644 >--- a/C4/Biblio.pm >+++ b/C4/Biblio.pm >@@ -1306,7 +1306,7 @@ sub GetMarcPrice { > @listtags = ('345', '020'); > $subfield="c"; > } elsif ( $marcflavour eq "UNIMARC" ) { >- @listtags = ('345', '010'); >+ @listtags = ('345', '010', '071'); > $subfield="d"; > } else { > return; >-- >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 38619
: 175169