Bug 12554: Fix GetMarcPrice for NORMARC
authorPetter Goksoyr Asen <boutrosboutrosboutros@gmail.com>
Fri, 11 Jul 2014 08:54:11 +0000 (10:54 +0200)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Sun, 3 Aug 2014 15:27:52 +0000 (12:27 -0300)
commitc9fab262405a08a24f46defb9654fc00a7775d31
tree8075373973156d2dfecc2d49f39790f369bd314c
parentb0e9711ec40bae63ca2feab63711b491042b5df2
Bug 12554: Fix GetMarcPrice for NORMARC

When doing aquisitions and ordering from external z3950 targes, the item price is not inferred from the MARC record when the NORMARC framework is set.

This patch makes GetMarcPrice treat NORMARC the same as MARC21.

Test plan

* Setup Koha with NORMARC framework
* Add a norwegian z3950 search target (ex: z3950.bibsys.no:2100, database=BIBSYS)
* Create a new basket, and add order to basket from external source
* Search for a tile (ex: ISBN 8205341834) from the bibsys z3950 server
* Click to order the title
* Observe that vendor price is not set
* Apply patch, repeat search for same book
* Order, and observe the vendor price is filled in from the MARC record

http://bugs.koha-community.org/show_bug.cgi?id=12554
Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com>
Works as described. No errors.

Tested changing marcflavour syspref to NORMARC,
and following test plan, bug exist and is fixed.

Changed bug description on patch, too long :)

Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Patch adds a check for NORMARC to provide the same functionality
as for MARC21. No regressions found.

Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
C4/Biblio.pm