Bug 38619 - UNIMARC prices should also be extracted from 071d
Summary: UNIMARC prices should also be extracted from 071d
Status: Needs Signoff
Alias: None
Product: Koha
Classification: Unclassified
Component: Acquisitions (show other bugs)
Version: Main
Hardware: All All
: P5 - low enhancement
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-12-04 11:17 UTC by Baptiste Wojtkowski (bwoj)
Modified: 2024-12-04 12:50 UTC (History)
1 user (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:


Attachments
Bug 38619: UNIMARC prices should also be extracted from 071d (1.32 KB, patch)
2024-12-04 11:25 UTC, Baptiste Wojtkowski (bwoj)
Details | Diff | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
Description Baptiste Wojtkowski (bwoj) 2024-12-04 11:17:46 UTC
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
6 - The price in 071 is not exported
Comment 1 Baptiste Wojtkowski (bwoj) 2024-12-04 11:25:05 UTC
Created attachment 175169 [details] [review]
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
Comment 2 Mathieu Saby 2024-12-04 12:50:15 UTC
Does the function extract also price from 073$d and 072$d? It can be there too