LP#1202742 Non-active transit copy status messages
authorBill Erickson <berick@esilibrary.com>
Thu, 18 Jul 2013 15:17:23 +0000 (11:17 -0400)
committerBill Erickson <berick@esilibrary.com>
Mon, 4 Aug 2014 13:17:23 +0000 (09:17 -0400)
commitc949ea9f157dc7ea06e66607f2e3722c3db8dd58
treefb88dba24b32f1b88d7ff3ddda902fc2d0d66133
parent7917dc6585983ac62927642fc5c9d045fcd34c9d
LP#1202742 Non-active transit copy status messages

When an in-transit copy is checked into the staff client, display a special
message in the transit alert dialog and in the printed transit receipt
(optionally, via macro) if the copy is in (or, rather, will be once it
arrives at its destination) a non-active copy status.

See config.copy_status.copy_active.

For example, assuming the org unit setting 'circ.lost_immediately_available'
is unset, when a Lost copy is checked in that must transit home, the
following message will appear in the transit alert dialog:

This item is in status "Lost", additional staff action may be required.

Additionally, the value of the 'transit_copy_status_msg' macro, which
defaults to "", will be set to this message, so that the message may
appear in printed transit slips.

Note that the code will test for the presence of the
"staff.circ.utils.transit.copy_status_message" string property and fail
gracefully if it is unset.  Through this, admins can disable this
feature entirely.

Signed-off-by: Bill Erickson <berick@esilibrary.com>
Open-ILS/xul/staff_client/server/circ/util.js
Open-ILS/xul/staff_client/server/locale/en-US/circ.properties