Support Purchase Order name extraction from upload collab/berick/acq-po-name-from-order-record
authorBill Erickson <berick@esilibrary.com>
Tue, 17 Jul 2012 15:08:35 +0000 (11:08 -0400)
committerBill Erickson <berick@esilibrary.com>
Tue, 17 Jul 2012 15:08:35 +0000 (11:08 -0400)
commitaa98c48571e7be6c31379e81289f0b161015fa92
tree630beb3110bf955fe1c4dbef82bea00a2da76acc
parentb6de97d55f67480e459b68473acc5ae84ec84f57
Support Purchase Order name extraction from upload

It's now possible to extract a purchase order name from a MARC order
record file received from a vendor.  If the provider has an attribute
definition (Admin -> Server Admin -> Acquisitions -> Providers ->
Attribute Definitions) configured with code "purchase_order" and the
order record contains a PO name at the configured MARC field/subfield,
the PO name will be used for the newly created purchase order.

Example attribute configuration:

code            => purchase_order
xpath           => //*[@tag="980"]/*[@code="p"]
Is Identifier   => false

*note 980p is arbitrary

Signed-off-by: Bill Erickson <berick@esilibrary.com>
Open-ILS/src/perlmods/lib/OpenILS/Application/Acq/Order.pm