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