From: Steven Callender Date: Thu, 10 Oct 2013 20:09:06 +0000 (-0400) Subject: Fixed title/author display at checkout for non-pre-cat items. X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=3bc7d49a4c3ed411233f3ca7d615d5c8dcec8636;p=evergreen%2Fmasslnc.git 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 Signed-off-by: Ben Shum --- diff --git a/Open-ILS/xul/staff_client/server/circ/checkout.js b/Open-ILS/xul/staff_client/server/circ/checkout.js index bc6fad98a2..d23e66ef41 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(); }