ACQ API for setting the lineitem order identifier
authorBill Erickson <berick@esilibrary.com>
Mon, 21 Jan 2013 19:51:48 +0000 (14:51 -0500)
committerBill Erickson <berick@esilibrary.com>
Mon, 11 Mar 2013 21:17:15 +0000 (17:17 -0400)
commit3e432d98743a1d9fb2dfb356d0252efb7228b0a1
tree8a50284de0258e6837aae9fcd92bb03b29172689
parent3e73403be48989eb1a4cda3bc15386a4bba87231
ACQ API for setting the lineitem order identifier

API: open-ils.acq.lineitem.order_identifier.set

Given an existing lineitem_attr (typically a marc_attr), this will
create a matching local_attr to store the name and value and mark
the attr as the order_ident.  Any existing local_attr marked as
order_ident is removed.  When necessary, the value (isbn, issn, upc) is
added to the record first to create the marc attribute.  If the lineitem
is linked to a bib record and the user has the correct permissions, any
new data will also be applied to the bib record.

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