From: artunit Date: Mon, 10 Jan 2011 00:51:43 +0000 (+0000) Subject: changed to suppress due date info if copy available X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=0a82c27c908d937232ea2f96aeffa136356dace0;p=syrup%2Fmasslnc.git changed to suppress due date info if copy available git-svn-id: svn://svn.open-ils.org/ILS-Contrib/servres/trunk@1177 6d9bc8c9-1ec2-4278-b937-99fde70a366f --- diff --git a/conifer/integration/uwindsor.py b/conifer/integration/uwindsor.py index 33c5913..57493c7 100644 --- a/conifer/integration/uwindsor.py +++ b/conifer/integration/uwindsor.py @@ -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")