From 1e9265298e779c9c0b56cb598906a9f43a98d12b Mon Sep 17 00:00:00 2001 From: Art Rhyno Date: Sat, 25 Jun 2011 03:01:38 -0400 Subject: [PATCH] Two modifications that came up in test system for MassLNC. Signed-off-by: Art Rhyno --- conifer/integration/evergreen_example.py | 17 +++++++++++++++++ conifer/integration/evergreen_site.py | 9 +++++++++ 2 files changed, 26 insertions(+) diff --git a/conifer/integration/evergreen_example.py b/conifer/integration/evergreen_example.py index 7b57df3..1143af2 100644 --- a/conifer/integration/evergreen_example.py +++ b/conifer/integration/evergreen_example.py @@ -15,6 +15,23 @@ class EvergreenExampleIntegration(EvergreenIntegration): OPAC_LANG = 'en-US' OPAC_SKIN = 'default' + # Options for circ modifiers + MODIFIER_CHOICES = [ + ('CIRC', 'Normal'), + ('RSV2', '2 Hour'), + ('RSV1', '1 Day'), + ('RSV3', '3 Day'), + ('RSV7', '7 Day'), + ] + + # TODO: these are harcoded for now, should make the opensrf calls to resolve them + # Options for circ desk + DESK_CHOICES = [ + ('821', 'Reserves Counter'), + ('598', 'Circulating Collection'), + ] + + def external_person_lookup(self, userid): """ Given a userid, return either None (if the user cannot be found), diff --git a/conifer/integration/evergreen_site.py b/conifer/integration/evergreen_site.py index 51e3105..b9a3eee 100644 --- a/conifer/integration/evergreen_site.py +++ b/conifer/integration/evergreen_site.py @@ -181,6 +181,12 @@ class EvergreenIntegration(object): circmod = '' alldues = [] + # Note: MassLNC requires this, need to add a version + # value to settings and consider required opensrf to + # to be installed for any evergreen site. + # + # for org, skip1, callnum, skip2, loc, stats in counts: + for org, callnum, loc, stats in counts: callprefix = '' callsuffix = '' @@ -215,6 +221,9 @@ class EvergreenIntegration(object): else: callno = callnum + # Another MassLNC variation, needs same refactoring as above + # copyids = E1(OPENSRF_CN_CALL, bib_id, [callnum], org) + copyids = E1(OPENSRF_CN_CALL, bib_id, callnum, org) # we want to return the resource that will be returned first if -- 2.11.0