Commit
·
2ccab26
1
Parent(s):
18f5a77
Update Climate_site/python_scripts/paper_functions_own_details.py
Browse files
Climate_site/python_scripts/paper_functions_own_details.py
CHANGED
|
@@ -473,6 +473,8 @@ def main_authors( research_key_words , details , size):
|
|
| 473 |
work_count = 0
|
| 474 |
cited_by_count = 0
|
| 475 |
institutions = ''
|
|
|
|
|
|
|
| 476 |
for elem in list_ids:
|
| 477 |
if len(elem) > 3:
|
| 478 |
|
|
@@ -481,7 +483,7 @@ def main_authors( research_key_words , details , size):
|
|
| 481 |
work_count += data["works_count"]
|
| 482 |
cited_by_count += data["cited_by_count"]
|
| 483 |
|
| 484 |
-
|
| 485 |
if data["last_known_institution"] != None and data["last_known_institution"]["id"] != None:
|
| 486 |
institution_id = data["last_known_institution"]["id"][21:]
|
| 487 |
|
|
@@ -511,6 +513,8 @@ def main_authors( research_key_words , details , size):
|
|
| 511 |
|
| 512 |
institution_id = dic_papers_co_authors[author_name_norm]["Institution_id"]
|
| 513 |
if institution_id in dic_institutions:
|
|
|
|
|
|
|
| 514 |
dic_papers_map[count] = {}
|
| 515 |
dic_papers_map[count]["longitude"] = data["longitude"]
|
| 516 |
dic_papers_map[count]["latitude"] = data["latitude"]
|
|
|
|
| 473 |
work_count = 0
|
| 474 |
cited_by_count = 0
|
| 475 |
institutions = ''
|
| 476 |
+
institution_id = None
|
| 477 |
+
|
| 478 |
for elem in list_ids:
|
| 479 |
if len(elem) > 3:
|
| 480 |
|
|
|
|
| 483 |
work_count += data["works_count"]
|
| 484 |
cited_by_count += data["cited_by_count"]
|
| 485 |
|
| 486 |
+
|
| 487 |
if data["last_known_institution"] != None and data["last_known_institution"]["id"] != None:
|
| 488 |
institution_id = data["last_known_institution"]["id"][21:]
|
| 489 |
|
|
|
|
| 513 |
|
| 514 |
institution_id = dic_papers_co_authors[author_name_norm]["Institution_id"]
|
| 515 |
if institution_id in dic_institutions:
|
| 516 |
+
data = dic_institutions[institution_id]
|
| 517 |
+
|
| 518 |
dic_papers_map[count] = {}
|
| 519 |
dic_papers_map[count]["longitude"] = data["longitude"]
|
| 520 |
dic_papers_map[count]["latitude"] = data["latitude"]
|