LP1794588 Web client edit single call number changes all when multiple items attached collab/phasefx/lp1794588-callnumber-edit2
authorJason Etheridge <jason@EquinoxInitiative.org>
Wed, 16 Jan 2019 13:57:26 +0000 (08:57 -0500)
committerJason Etheridge <jason@EquinoxInitiative.org>
Thu, 17 Jan 2019 18:00:21 +0000 (13:00 -0500)
commit24d130b2fdd03493336f4c90b0cbcbe148bfdf50
treebcd7e416c5a07410cd8cada21d7f52e9fda8c784
parenteaca9cd603da425a82ad478c7798645ea45c2178
LP1794588 Web client edit single call number changes all when multiple items attached

This patch tweaks the behavior Cat.pm's fleshed_volume_update, aka
open-ils.cat.asset.volume.fleshed.batch.update

Previously, if a volume label was edited, all items attached to that
volume would be essentially affected.  Now, if only a sub-set of items
for the original volume being edited are being edited along with the
volume, then a new volume is potentially created instead, leaving the
original volume (and its unedited copies) untouched.  If no copies are
being edited along with a volume, then the volume itself is edited.

Auto-merging of volumes may still happen in all of these scenarios.

Signed-off-by: Jason Etheridge <jason@EquinoxInitiative.org>
Open-ILS/src/perlmods/lib/OpenILS/Application/Cat.pm