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