Esempio n. 1
0
 def getClient(self):
     if self.format == 'citeproc':
         return FakeOaiClientForCrossref()
     registry = MetadataRegistry()
     client = Client(self.url, registry)
     client.get_method = self.get_method
     client._day_granularity = self.day_granularity
     return client
Esempio n. 2
0
def get_proxy_client():
    registry = MetadataRegistry()
    registry.registerReader('oai_dc', my_oai_dc_reader)
    client = Client(PROXY_ENDPOINT, registry)
    client._day_granularity = PROXY_DAY_GRANULARITY
    return client
Esempio n. 3
0
 def getClient(self):
     registry = MetadataRegistry()
     client = Client(self.url, registry)
     client.get_method = self.get_method
     client._day_granularity = self.day_granularity
     return client
Esempio n. 4
0
def get_proxy_client():
    registry = MetadataRegistry()
    registry.registerReader('oai_dc', my_oai_dc_reader)
    client = Client(PROXY_ENDPOINT, registry)
    client._day_granularity = PROXY_DAY_GRANULARITY
    return client
Esempio n. 5
0
 def getClient(self):
     registry = MetadataRegistry()
     client = Client(self.url, registry)
     client.get_method = self.get_method
     client._day_granularity = self.day_granularity
     return client