let due date show up correctly in the copy browser for circulating items
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 2 Feb 2011 20:51:40 +0000 (20:51 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 2 Feb 2011 20:51:40 +0000 (20:51 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@19369 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/xul/staff_client/server/cat/copy_browser.js

index c4604d3..e8d1644 100644 (file)
@@ -1451,6 +1451,14 @@ cat.copy_browser.prototype = {
                         'aou' : obj.data.hash.aou[ acn_tree.owning_lib() ],
                         'acn' : acn_tree,
                         'acp' : acp_item,
+                        'circ' :
+                            acp_item.circulations() 
+                            ? (
+                                acp_item.circulations().length > 0
+                                ? acp_item.circulations()[0]
+                                : null
+                            ) 
+                            : null,
                         'volume_count' : '',
                         'copy_count' : '',
                     }