From: Art Rhyno Date: Wed, 27 Jul 2011 12:47:07 +0000 (-0400) Subject: Added option for evergreen searching depth. X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=efb1d6dbf86f5b6467911b11ba384657e9eb414d;p=Syrup.git Added option for evergreen searching depth. Signed-off-by: Art Rhyno --- diff --git a/conifer/integration/evergreen_site.py b/conifer/integration/evergreen_site.py index 2e7b820..9843994 100644 --- a/conifer/integration/evergreen_site.py +++ b/conifer/integration/evergreen_site.py @@ -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) diff --git a/conifer/local_settings.py.example b/conifer/local_settings.py.example index 5da4081..e519a01 100644 --- a/conifer/local_settings.py.example +++ b/conifer/local_settings.py.example @@ -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