ccm commited on
Commit
eb9eac3
·
verified ·
1 Parent(s): 4adcb3c

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +5 -1
main.py CHANGED
@@ -33,7 +33,11 @@ def search(query, k):
33
  search_results += '### ' + top_five["bib_dict"].values[i]["title"] + '\n'
34
  search_results += top_five["bib_dict"].values[i]["citation"] + "\n"
35
  if top_five["pub_url"].values[i] is not None:
36
- search_results += "[Paper](" + top_five["pub_url"].values[i] + ")"
 
 
 
 
37
  search_results += top_five["bib_dict"].values[i]["num_citations"] + " citations\n"
38
  search_results += "\n```\n"
39
  search_results += json.dumps(top_five["bibtex"].values[i], indent=4).replace('\\n', '\n').replace('\\t', '\t').strip("\"")
 
33
  search_results += '### ' + top_five["bib_dict"].values[i]["title"] + '\n'
34
  search_results += top_five["bib_dict"].values[i]["citation"] + "\n"
35
  if top_five["pub_url"].values[i] is not None:
36
+ search_results += "[Full Text](" + top_five["pub_url"].values[i] + ") "
37
+ if top_five["citedby_url"].values[i] is not None:
38
+ search_results += "[Cited By](https://scholarl.google.com" + top_five["citedby_url"].values[i] + ") "
39
+ if top_five["url_related_articles"].values[i] is not None:
40
+ search_results += "[Related Articles](https://scholarl.google.com" + top_five["url_related_articles"].values[i] + ") "
41
  search_results += top_five["bib_dict"].values[i]["num_citations"] + " citations\n"
42
  search_results += "\n```\n"
43
  search_results += json.dumps(top_five["bibtex"].values[i], indent=4).replace('\\n', '\n').replace('\\t', '\t').strip("\"")