Really add *entire* selection list to a purchase order, when desired, user/senator/lp-810030
authorLebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Tue, 4 Oct 2011 21:51:35 +0000 (17:51 -0400)
committerLebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Wed, 5 Oct 2011 22:05:34 +0000 (18:05 -0400)
commit9ccdbaf852d37dc01d396be33c2bb0c0dff245a6
tree48b479f8c5155731ff5783a1f428d89630adc446
parent1ba8903c40413f692ff0146ece061417eafcdafd
Really add *entire* selection list to a purchase order, when desired,

and generally do what a user would expect when, in Acq, the user
executes an operation on "all items".

This addresses LaunchPad bug #810030.

The fundamental issue is that an AcqLiTable, which is used in several
different ways in different interfaces, may be representing items on a
selection list (for example), but it doesn't necessarily know all of the
items that belong to that selection list.  It only knows what it has drawn.

This addresses that deficiency by teaching the getSelected() method
some new tricks so that it can consult the server in the various ways
appropriate to getting a list of /all/ the items on a selection list, a
purchase order, a virtual PO, a set of search results, etc.

Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Open-ILS/web/js/ui/default/acq/common/li_table.js
Open-ILS/web/js/ui/default/acq/common/li_table_pager.js
Open-ILS/web/js/ui/default/acq/search/unified.js