Beispiel #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
Beispiel #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
Beispiel #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
Beispiel #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')
     }
Beispiel #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"),
     }
Beispiel #6
0
 def __init__(self, **kwargs):
     """Constructor for RegistryRequest."""
     WorldCatRequest.__init__(self, **kwargs)
Beispiel #7
0
 def __init__(self, **kwargs):
     """Constructor for RegistryRequest."""
     WorldCatRequest.__init__(self, **kwargs)