Skip to content

Commit 5cb2318

Browse files
authored
Merge pull request #736 from OpenKnowledgeMaps/orcid-bugfix
Orcid bugfix backend
2 parents 89846f0 + e20f824 commit 5cb2318

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

server/workers/base/src/base.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ def execute_search(self, params):
9494
metadata = metadata.head(params.get('list_size'))
9595
metadata.reset_index(inplace=True, drop=True)
9696
metadata = self.enrich_metadata(metadata)
97-
text = pd.concat([metadata.id, metadata[["title", "paper_abstract", "subject_orig", "published_in", "authors"]]
97+
text = pd.concat([metadata.id, metadata[["title", "paper_abstract", "subject_orig", "published_in", "sanitized_authors"]]
9898
.apply(lambda x: " ".join(x), axis=1)], axis=1)
9999
text.columns = ["id", "content"]
100100
input_data = {}
@@ -110,7 +110,7 @@ def execute_search(self, params):
110110
raise
111111

112112
def sanitize_metadata(self, metadata):
113-
metadata["authors"] = metadata["authors"].map(lambda x: sanitize_authors(x))
113+
metadata["sanitized_authors"] = metadata["authors"].map(lambda x: sanitize_authors(x))
114114
return metadata
115115

116116
def enrich_metadata(self, metadata):

0 commit comments

Comments
 (0)