Slight modification for where status options are invoked.
authorArt Rhyno <art632000@yahoo.ca>
Wed, 27 Jul 2011 12:40:22 +0000 (08:40 -0400)
committerArt Rhyno <art632000@yahoo.ca>
Wed, 27 Jul 2011 12:40:22 +0000 (08:40 -0400)
Signed-off-by: Art Rhyno <art632000@yahoo.ca>
conifer/integration/evergreen_site.py

index e3bb28a..2e7b820 100644 (file)
@@ -105,9 +105,6 @@ class EvergreenIntegration(object):
 
     USE_Z3950 = bool(getattr(settings, 'Z3950_CONFIG', None))
 
-    EVERGREEN_STATUS_ORG = getattr(settings, 'EVERGREEN_STATUS_ORG', 1)
-    EVERGREEN_STATUS_DEPTH = getattr(settings, 'EVERGREEN_STATUS_DEPTH', 0)
-
     TIME_FORMAT = getattr(settings, 'SYRUP_TIME_FORMAT', '%Y-%m-%dT%H:%M:%S')
     DUE_FORMAT  = getattr(settings, 'SYRUP_DUE_FORMAT', '%b %d %Y, %r')
 
@@ -124,7 +121,6 @@ class EvergreenIntegration(object):
         ] 
 
 
-
     # ----------------------------------------------------------------------
 
 
@@ -322,6 +318,9 @@ class EvergreenIntegration(object):
         circmod = ''
         alldues = []
             
+        EVERGREEN_STATUS_ORG = getattr(settings, 'EVERGREEN_STATUS_ORG', 1)
+        EVERGREEN_STATUS_DEPTH = getattr(settings, 'EVERGREEN_STATUS_DEPTH', 0)
+
         counts = E1(OPENSRF_COPY_COUNTS, bib_id, EVERGREEN_STATUS_ORG, EVERGREEN_STATUS_DEPTH)
 
         version = getattr(settings, 'EVERGREEN_VERSION',