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=refs%2Fheads%2Fcollab%2FCallender%2Ffix_title_checkout_former_precats;p=working%2FEvergreen.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 --- diff --git a/Open-ILS/xul/staff_client/server/circ/checkout.js b/Open-ILS/xul/staff_client/server/circ/checkout.js index 78ae98b613..20903e42ba 100644 --- a/Open-ILS/xul/staff_client/server/circ/checkout.js +++ b/Open-ILS/xul/staff_client/server/circ/checkout.js @@ -425,13 +425,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(); }