"""Authenticates CAS ticket and retrieves user data"""
user = super(CASBackend, self).authenticate(ticket, service)
+ print "user", user
if user:
user.maybe_decorate()
return user
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'
# 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
# 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())