Fixed title/author display at checkout for non-pre-cat items.
authorSteven Callender <stevecallender@esilibrary.com>
Thu, 10 Oct 2013 20:09:06 +0000 (16:09 -0400)
committerBen Shum <bshum@biblio.org>
Tue, 21 Jan 2014 19:55:25 +0000 (14:55 -0500)
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@esilibrary.com>
Signed-off-by: Ben Shum <bshum@biblio.org>

Open-ILS/xul/staff_client/server/circ/checkout.js

index bc6fad9..d23e66e 100644 (file)
@@ -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();
                         }