LP887822 mint_condition/Quality not set correctly collab/phasefx/mint_condition
authorJason Etheridge <jason@esilibrary.com>
Tue, 8 Nov 2011 23:42:18 +0000 (18:42 -0500)
committerJason Etheridge <jason@esilibrary.com>
Tue, 8 Nov 2011 23:42:18 +0000 (18:42 -0500)
commit5d2aa3b782b99fda58d1c7b00ef5c40ee2115ef6
treee460a61b054ba80407765b1506548a6c4f5e5dae
parentfc8925034444d844d6028d0984a2d3f971f2d746
LP887822 mint_condition/Quality not set correctly

during item creation.

Specifically, the Javascript object for a new item (acp) does not explicitly set
the mint_condition field, leaving it null. The item attribute editor treats the
null as false (which it displays as "Mediocre" for that field). The database has
a not null constraint the corresponding column in asset.copy, and defaults to
true. So a new item in the attribute editor will show "Mediocre", but when
actually created, will become "Good".

This branch just sets mint_condition to true when an item is created.

Signed-off-by: Jason Etheridge <jason@esilibrary.com>
Open-ILS/xul/staff_client/chrome/content/cat/opac.js
Open-ILS/xul/staff_client/server/cat/util.js
Open-ILS/xul/staff_client/server/cat/volume_copy_creator.js