Add note to local_settings example
authorArt Rhyno <art632000@yahoo.ca>
Sun, 7 Apr 2013 23:47:57 +0000 (19:47 -0400)
committerArt Rhyno <art632000@yahoo.ca>
Sun, 7 Apr 2013 23:47:57 +0000 (19:47 -0400)
EVERGREEN_SEARCH_DEPTH needs to be set to 1 to return IDs, this
is the default but the consequences of not doing so needs to be
clearer.

Signed-off-by: Art Rhyno <art632000@yahoo.ca>
conifer/integration/cas.py
conifer/integration/evergreen_example.py
conifer/local_settings.py.example
conifer/syrup/models.py

index bdd0ddc..e502ccd 100644 (file)
@@ -42,6 +42,7 @@ class CASBackend(backends.CASBackend):
         """Authenticates CAS ticket and retrieves user data"""
 
         user = super(CASBackend, self).authenticate(ticket, service)
+        print "user", user
         if user:
             user.maybe_decorate()
         return user
index 4eb4fc3..a07127c 100644 (file)
@@ -5,12 +5,15 @@ import subprocess
 from django.conf                          import settings
 from urllib2 import urlopen
 from django.utils import simplejson
-from conifer.libsystems.evergreen import opensrf
+try:
+    from conifer.libsystems.evergreen import opensrf
+except ImportError:
+    print "evergreen access without opensrf library"
 
 
 class EvergreenExampleIntegration(EvergreenIntegration):
 
-    OSRF_CAT_SEARCH_ORG_UNIT = 28
+    OSRF_CAT_SEARCH_ORG_UNIT = 106
     
     OPAC_LANG = 'en-US'
     OPAC_SKIN = 'default'
index eb25784..fd5a561 100644 (file)
@@ -72,8 +72,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 = 0
+# Set this for limiting searching - note that a value of 0 will not give you ids for adding the record to a course
+#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
index d1f794e..19ee817 100644 (file)
@@ -978,6 +978,7 @@ def highlight(text, phrase,
 # Activate the local integration module. We loaded the module at the top of
 # models.py, now we instantiate it.
 
+    
 if integration_class:
     initialize_hooks(integration_class())