[open-ils-commits] [GIT] Evergreen ILS branch rel_2_0 updated. 9fd5c9aea9d401caefc2ffdbb7adcbbf2b7a3e6a

Evergreen Git git at git.evergreen-ils.org
Tue Nov 15 11:43:54 EST 2011


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Evergreen ILS".

The branch, rel_2_0 has been updated
       via  9fd5c9aea9d401caefc2ffdbb7adcbbf2b7a3e6a (commit)
      from  1f9c2177643d50e4bd9065d850bbe2e17fe7b271 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 9fd5c9aea9d401caefc2ffdbb7adcbbf2b7a3e6a
Author: Jason Etheridge <jason at esilibrary.com>
Date:   Tue Nov 8 18:42:18 2011 -0500

    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 at esilibrary.com>
    Signed-off-by: Mike Rylander <mrylander at gmail.com>

diff --git a/Open-ILS/xul/staff_client/chrome/content/cat/opac.js b/Open-ILS/xul/staff_client/chrome/content/cat/opac.js
index f44aeae..7dd6357 100644
--- a/Open-ILS/xul/staff_client/chrome/content/cat/opac.js
+++ b/Open-ILS/xul/staff_client/chrome/content/cat/opac.js
@@ -200,6 +200,7 @@ function set_marc_edit() {
                             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();
                             return cat.util.spawn_copy_editor( { 'handle_update' : 1, 'edit' : 1, 'docid' : doc_id, 'copies' : [ copy_obj ] });
diff --git a/Open-ILS/xul/staff_client/server/cat/util.js b/Open-ILS/xul/staff_client/server/cat/util.js
index 7f7949a..e1530f8 100644
--- a/Open-ILS/xul/staff_client/server/cat/util.js
+++ b/Open-ILS/xul/staff_client/server/cat/util.js
@@ -565,6 +565,7 @@ cat.util.fast_item_add = function(doc_id,cn_label,cp_barcode) {
         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');
diff --git a/Open-ILS/xul/staff_client/server/cat/volume_copy_creator.js b/Open-ILS/xul/staff_client/server/cat/volume_copy_creator.js
index ac28aff..ff0d9b7 100644
--- a/Open-ILS/xul/staff_client/server/cat/volume_copy_creator.js
+++ b/Open-ILS/xul/staff_client/server/cat/volume_copy_creator.js
@@ -451,6 +451,7 @@ g.stash_and_close = function(param) {
             copy.holdable(get_db_true());
             copy.opac_visible(get_db_true());
             copy.ref(get_db_false());
+            copy.mint_condition(get_db_true());
             return copy;
         }
 

-----------------------------------------------------------------------

Summary of changes:
 .../xul/staff_client/chrome/content/cat/opac.js    |    1 +
 Open-ILS/xul/staff_client/server/cat/util.js       |    1 +
 .../staff_client/server/cat/volume_copy_creator.js |    1 +
 3 files changed, 3 insertions(+), 0 deletions(-)


hooks/post-receive
-- 
Evergreen ILS


More information about the open-ils-commits mailing list