LP1273566 - Fix acq lineitem order identifier entry for UPC. user/stompro/lp1272566_acq_lineitem_upc
authorJosh Stompro <stompro@stompro.org>
Wed, 16 Feb 2022 22:14:22 +0000 (16:14 -0600)
committerJosh Stompro <stompro@stompro.org>
Wed, 16 Feb 2022 22:14:22 +0000 (16:14 -0600)
commitbf4cff6e3b55d5eb9b5f7914a9ee7628e0a9942f
tree71dbd421544718346c178de6c921611869a4b2eb
parentb2cd5140602c7cfd84ec864a673377a042d8d732
LP1273566 - Fix acq lineitem order identifier entry for UPC.

Adding a new UPC via the lineitem order identifier was failing because
the lineitem_marc_attr_definition for upc requires an ind1 value of 1.

Testing Plan:

This will be easier to test on a test system with production data.

Otherwise you need to get setup to use acquistions and to create new POs

Before change -

1. Create a new po.
2. Add a lineitem for an existing record that has ISBN data.
3. Change the order identifier to upc, and enter a value and then move focus
off the field.
4. The order identifier will switch back to ISBN.

After Change -

1. Create a new po.
2. Add a lineitem for an existing record that has ISBN data.
3. Change the order identifier to upc, and enter a value and then move focus
off the field.
4. The order identifier will stay as the upc you just entered.
5. Check the linked bib record, and see that the upc marc info (024) has
been added.

Signed-off-by: Josh Stompro <stompro@stompro.org>
Open-ILS/src/perlmods/lib/OpenILS/Application/Acq/Order.pm