Major enhancements to openils.widget.PCrudFilterDialog
authorLebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Mon, 9 Jan 2012 19:45:04 +0000 (14:45 -0500)
committerMike Rylander <mrylander@gmail.com>
Tue, 10 Jan 2012 18:17:03 +0000 (13:17 -0500)
commit86a7abec412afe4f348e53c5a449c599c3648319
tree3e4e811728fc7a277e3ef7b5a9123ccc8e123b81
parent05679cce8d1b4903f65262bebbdc384f88238b9d
Major enhancements to openils.widget.PCrudFilterDialog

openils.widget.PCrudFilterDialog is (now) a dijit that allows users to define
inclusionary filters based on any number of rows that specify a field
from a given fieldmapper class, an operator, and a value (or range of
values, for the [not] between operator).  The resulting filter is
suitable for use as the where clause of a pcrud search call.

AutoGrid has an option, showLoadFilter, that allows you to easily
provide a filter dialog in any AutoGrid-based interface, with some minor
caveats (see the comments at the top of the source for
openils.widget.PCrudFilterDialog).  AutoGrid will also pass along the
suppressFilterFields option, which works analagously to the
suppressEditFields option.  You can also build your own interfaces to
use this dijit without AutoGrid, if desired.

Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Open-ILS/web/css/skin/default.css
Open-ILS/web/js/dojo/openils/widget/AutoGrid.js
Open-ILS/web/js/dojo/openils/widget/PCrudFilterDialog.js
Open-ILS/web/js/dojo/openils/widget/nls/PCrudFilterDialog.js [new file with mode: 0644]