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>
Wed, 23 Jan 2013 15:24:39 +0000 (10:24 -0500)
commit568628f6cba117556ce555584b1d0a87134b890d
tree87436b525895ee4b0fbc9a4acafc87484126b1a4
parentc0532bfe5aba425f1541477d78ff1312d79d4d6f
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