changed to suppress due date info if copy available
authorartunit <artunit@6d9bc8c9-1ec2-4278-b937-99fde70a366f>
Mon, 10 Jan 2011 00:51:43 +0000 (00:51 +0000)
committerartunit <artunit@6d9bc8c9-1ec2-4278-b937-99fde70a366f>
Mon, 10 Jan 2011 00:51:43 +0000 (00:51 +0000)
git-svn-id: svn://svn.open-ils.org/ILS-Contrib/servres/trunk@1177 6d9bc8c9-1ec2-4278-b937-99fde70a366f

conifer/integration/uwindsor.py

index 33c5913..57493c7 100644 (file)
@@ -112,6 +112,8 @@ def _item_status(bib_id):
                 if loc == RESERVES_DESK_NAME:
                     desk += anystatus_here
                     avail += avail_here
+                    callno = callnum
+                   dueinfo = ''
                 lib += anystatus_here
                copyids = E1(OPENSRF_CN_CALL, bib_id, callnum, org)
                
@@ -122,7 +124,7 @@ def _item_status(bib_id):
                for copyid in copyids:
                        circinfo = E1(OPENSRF_FLESHED2_CALL, copyid)
                        circs = circinfo.get("circulations")
-                       if circs:
+                       if circs and avail==0:
                                if len(circs) > 0:
                                        circ = circs[0]
                                        rawdate = circ.get("due_date")