ACQ API for setting the lineitem order identifier
authorBill Erickson <berick@esilibrary.com>
Mon, 21 Jan 2013 19:51:48 +0000 (14:51 -0500)
committerLebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Mon, 11 Mar 2013 18:00:50 +0000 (14:00 -0400)
commit1ebfa417292089db330eea130a2c16169bcf7b7c
tree8ee7197638c16d0c7f0ebd521fcf38b6839fa3eb
parent94dfe483e79b229de39c6f0df8cf2cb3f096e6bd
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