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>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
copy_obj.holdable(get_db_true());
copy_obj.opac_visible(get_db_true());
copy_obj.ref(get_db_false());
+ copy_obj.mint_condition(get_db_true());
JSAN.use('util.window'); var win = new util.window();
copy_obj.holdable(get_db_true());
copy_obj.opac_visible(get_db_true());
copy_obj.ref(get_db_false());
+ copy_obj.mint_condition(get_db_true());
JSAN.use('util.window'); var win = new util.window();
JSAN.use('cat.util');
copy.holdable(get_db_true());
copy.opac_visible(get_db_true());
copy.ref(get_db_false());
+ copy.mint_condition(get_db_true());
return copy;
}