Example #1
0
 def __init__(self, rec_num=None, **kwargs):
     """Constructor for xIDRequests."""
     if 'method' not in kwargs:
         kwargs['method'] = 'getEditions'
     if 'format' not in kwargs:
         kwargs['format'] = 'python'
     if 'fl' not in kwargs:
         kwargs['fl'] = '*'
     WorldCatRequest.__init__(self, **kwargs)
     self.rec_num = rec_num
Example #2
0
 def __init__(self, rec_num=None, **kwargs):
     """Constructor for xIDRequests."""
     if 'method' not in kwargs:
         kwargs['method'] = 'getEditions'
     if 'format' not in kwargs:
         kwargs['format'] = 'python'
     if 'fl' not in kwargs:
         kwargs['fl'] = '*'
     WorldCatRequest.__init__(self, **kwargs)
     self.rec_num = rec_num
Example #3
0
 def __init__(self, rec_num=None, **kwargs):
     """Constructor for xIDRequests."""
     if "method" not in kwargs:
         kwargs["method"] = "getEditions"
     if "format" not in kwargs:
         kwargs["format"] = "python"
     if "fl" not in kwargs:
         kwargs["fl"] = "*"
     WorldCatRequest.__init__(self, **kwargs)
     self.rec_num = rec_num
Example #4
0
 def __init__(self, **kwargs):
     """Constructor for SearchAPIRequest"""
     if 'wskey' not in kwargs:
         raise APIKeyNotSpecifiedError
     WorldCatRequest.__init__(self, **kwargs)
     self._validators = {
         'servicelevel': ('default', 'full'),
         'cformat': ('apa', 'chicago', 'harvard', 'mla', 'turabian', 'all'),
         'recordSchema':
         ('info:srw/schema/1/marcxml', 'info:srw/schema/1/marcxml-v1.1',
          'info:srw/schema/1/dc', 'info:srw/schema/1/dc-v1.1'),
         'format': ('atom', 'rss')
     }
Example #5
0
 def __init__(self, **kwargs):
     """Constructor for SearchAPIRequest"""
     if "wskey" not in kwargs:
         raise APIKeyNotSpecifiedError
     WorldCatRequest.__init__(self, **kwargs)
     self._validators = {
         "servicelevel": ("default", "full"),
         "cformat": ("apa", "chicago", "harvard", "mla", "turabian", "all"),
         "recordSchema": (
             "info:srw/schema/1/marcxml",
             "info:srw/schema/1/marcxml-v1.1",
             "info:srw/schema/1/dc",
             "info:srw/schema/1/dc-v1.1",
         ),
         "format": ("atom", "rss"),
     }
Example #6
0
 def __init__(self, **kwargs):
     """Constructor for RegistryRequest."""
     WorldCatRequest.__init__(self, **kwargs)
Example #7
0
 def __init__(self, **kwargs):
     """Constructor for RegistryRequest."""
     WorldCatRequest.__init__(self, **kwargs)