mirror of
https://github.com/migatu/conjurer.git
synced 2026-07-14 21:38:38 +00:00
asdasdasd
This commit is contained in:
@@ -31,7 +31,7 @@ class Librarian(object):
|
||||
authTokens = netrc_mod.authenticators("crossref")
|
||||
self.cr = Crossref(mailto=authTokens[0])
|
||||
self.last_search = ""
|
||||
self.limit = 1000
|
||||
self.limit = 20
|
||||
|
||||
def search_crossref(self, query, uuid):
|
||||
self.last_search = self.cr.works(query = query, limit = self.limit)
|
||||
@@ -49,7 +49,8 @@ class Librarian(object):
|
||||
container = "NO"
|
||||
if "container-title" in item:
|
||||
container = "YES"
|
||||
summarized_results.append({"DOI" : item['DOI'], "title": item['title'], "type": item['type'], "container": container})
|
||||
print(item['title'])
|
||||
#summarized_results.append({"DOI" : item['DOI'], "title": item['title'], "type": item['type'], "container": container})
|
||||
result = {"UUID": uuid, "total_results": self.last_search['message']['total-results'], "on_page" : 1, "summary":summarized_results, "results":self.last_search['message']['items'], }
|
||||
file_data.append(result)
|
||||
print("Saving")
|
||||
|
||||
Reference in New Issue
Block a user