[open-ils-commits] r1177 - servres/trunk/conifer/integration (artunit)

svn at svn.open-ils.org svn at svn.open-ils.org
Sun Jan 9 19:51:43 EST 2011


Author: artunit
Date: 2011-01-09 19:51:43 -0500 (Sun, 09 Jan 2011)
New Revision: 1177

Modified:
   servres/trunk/conifer/integration/uwindsor.py
Log:
changed to suppress due date info if copy available

Modified: servres/trunk/conifer/integration/uwindsor.py
===================================================================
--- servres/trunk/conifer/integration/uwindsor.py	2011-01-09 23:04:00 UTC (rev 1176)
+++ servres/trunk/conifer/integration/uwindsor.py	2011-01-10 00:51:43 UTC (rev 1177)
@@ -112,6 +112,8 @@
                 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 @@
 		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")



More information about the open-ils-commits mailing list