[open-ils-commits] [GIT] Evergreen ILS branch master updated. 3bc7d49a4c3ed411233f3ca7d615d5c8dcec8636

Evergreen Git git at git.evergreen-ils.org
Tue Jan 21 14:55:44 EST 2014


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, master has been updated
       via  3bc7d49a4c3ed411233f3ca7d615d5c8dcec8636 (commit)
      from  a8cb33092ae4e0424c904359e255ebdb7807881c (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 3bc7d49a4c3ed411233f3ca7d615d5c8dcec8636
Author: Steven Callender <stevecallender at esilibrary.com>
Date:   Thu Oct 10 16:09:06 2013 -0400

    Fixed title/author display at checkout for non-pre-cat items.
    
    Fixed a display problem on checkout where items that were formely pre-cats
    were still displaying the pre-cat data. Now it will make sure the item is
    still a pre-cat before using the dummy data.
    
    Signed-off-by: Steven Callender <stevecallender at esilibrary.com>
    Signed-off-by: Ben Shum <bshum at biblio.org>

diff --git a/Open-ILS/xul/staff_client/server/circ/checkout.js b/Open-ILS/xul/staff_client/server/circ/checkout.js
index bc6fad9..d23e66e 100644
--- a/Open-ILS/xul/staff_client/server/circ/checkout.js
+++ b/Open-ILS/xul/staff_client/server/circ/checkout.js
@@ -414,13 +414,15 @@ circ.checkout.prototype = {
             
                         /*********************************************************************************************/
                         /* Override mvr title/author with dummy title/author for Pre cat */
-                        if (checkout.payload.copy.dummy_title()) {
-                            checkout.payload.record.title( checkout.payload.copy.dummy_title() );
-                        }
-                        if (checkout.payload.copy.dummy_author()) {
-                            checkout.payload.record.author( checkout.payload.copy.dummy_author() );
+                        if (checkout.payload.copy.call_number()  == -1) {
+                            if (checkout.payload.copy.dummy_title()) {
+                                checkout.payload.record.title( checkout.payload.copy.dummy_title() );
+                            }
+                            if (checkout.payload.copy.dummy_author()) {
+                                checkout.payload.record.author( checkout.payload.copy.dummy_author() );
+                            }
                         }
-           
+
                         if (checkout.payload.patron_money) {
                             obj.most_recent_balance_owed = checkout.payload.patron_money.balance_owed();
                         }

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

Summary of changes:
 Open-ILS/xul/staff_client/server/circ/checkout.js |   14 ++++++++------
 1 files changed, 8 insertions(+), 6 deletions(-)


hooks/post-receive
-- 
Evergreen ILS


More information about the open-ils-commits mailing list