Added option for evergreen searching depth.
authorArt Rhyno <art632000@yahoo.ca>
Wed, 27 Jul 2011 12:47:07 +0000 (08:47 -0400)
committerArt Rhyno <art632000@yahoo.ca>
Wed, 27 Jul 2011 12:47:07 +0000 (08:47 -0400)
Signed-off-by: Art Rhyno <art632000@yahoo.ca>
conifer/integration/evergreen_site.py
conifer/local_settings.py.example

index 2e7b820..9843994 100644 (file)
@@ -391,9 +391,11 @@ class EvergreenIntegration(object):
                     raise NotImplementedError, \
                         'Your integration must provide a value for OSRF_CAT_SEARCH_ORG_UNIT.'
 
+                EVERGREEN_SEARCH_DEPTH = getattr(settings, 'EVERGREEN_SEARCH_DEPTH', 1)
                 superpage = E1('open-ils.search.biblio.multiclass.query',
                                {'org_unit': self.OSRF_CAT_SEARCH_ORG_UNIT,
-                                'depth': 1, 'limit': limit, 'offset': start-1,
+                                'depth': EVERGREEN_SEARCH_DEPTH, 
+                                'limit': limit, 'offset': start-1,
                                 'visibility_limit': 3000,
                                 'default_class': 'keyword'},
                                query, 1)
index 5da4081..e519a01 100644 (file)
@@ -60,6 +60,8 @@ MIN_QUERY_LENGTH = 3
 # Set these for limiting options for status displays
 #EVERGREEN_STATUS_ORG = 28
 #EVERGREEN_STATUS_DEPTH = 1
+# Set this for limiting searching
+#EVERGREEN_SEARCH_DEPTH = 1
 
 # Note, in the Evergreen integration, commenting out Z3950_CONFIG or setting it
 # equal to None will result in OpenSRF being used for catalogue search instead