Browse Source

Added Webers Scopus IDs and started affiliation splitting

Andreas Kopmann 6 years ago
parent
commit
5730f8a3fb
3 changed files with 49 additions and 9 deletions
  1. 7 1
      README.md
  2. 18 0
      etc/config_ipekopmann2.py
  3. 24 8
      test-scopus2.py

+ 7 - 1
README.md

@@ -9,11 +9,17 @@ Note: All scopus scripts run only with valid access to the Scopus database (e.g.
 ## Version history
 
 Todo:
+- Add script to list all affiliations for one of the authors
+- Change author defintion to author id+ affiliation id
+    If a author has been in two places, add a second author with the same id 
+    the other affilitation
 - Generate a sensible API documentation; 
 	Add a basic user documentation along with the API description
 - Add maintenance scripts, that check consittence of Scopus data and 
   cache database; update of post categories; warning in case of inconsistencies
- 
+- Add configuration for all IPE scientists (and setup IPE publication website)
+
+
 
 Version 1.3, 23.5.17 (ak):
 - generated python inline documentation

+ 18 - 0
etc/config_ipekopmann2.py

@@ -45,7 +45,9 @@ MY_API_KEY = "14d431d052c2caf5e9c4b1ab7de7463d"
 
 # KIT, PDV
 ak = "35313939900"
+ak2 = "57193311016"
 csa = "15076530600"
+csa2 = "6506491376"
 matthiasVogelgesang = "35303862100"
 timoDritschler = "56473578500"
 andreiShkarin = "56950893700"
@@ -73,6 +75,7 @@ tr2 = "35194644400"
 tr3 = "35277157300"
 tomasFarago = "56655045700"
 alexyErshof = "56441809800"
+andreiShkarin = "56950893700"
 romanShkarin = "56951331000"
 tiloBaumbach = "7003270957"
 thomasVandekamp = "46761453500"
@@ -89,6 +92,21 @@ ashotChiligarian = "7004126133"
 hansBluemer = "7006284555"
 matthiasKleifegs = "6602072426"
 
+weber1 = "14625680200"  # KIT Physics 1651, 25.10.17
+weber2 = "7404138824"   # KIT-CN Physice 667, 25.10.17
+weber3 = "56654729000"  # KIT Engineering 29, 25.10.17
+
+
+
+# Affiliations
+kit = "60027314"
+kit_cn = "60027314" 
+kit_cs = "60029428" 
+uni_hd = "60016908"
+uni_h = " 60004935"
+uni_da = "60011226"
+
+
 
 # Definition of workgroups for automatic Scopus publication retrieval
 

+ 24 - 8
test-scopus2.py

@@ -1,16 +1,32 @@
 import requests
 import json
-from my_scopus import MY_API_KEY
 
-resp = requests.get("http://api.elsevier.com/content/search/scopus?query=AU-ID(7004212771)&field=dc:identifier&count=10",
-                    headers={'Accept':'application/json',
-                    'X-ELS-APIKey': MY_API_KEY})
+from ak_scopus import get_scopus_list, get_scopus_data, get_scopus_refs
 
-results = resp.json()
+from config import *
+
+#
+# Script to check all the afiliations of the authors
+#
+
+#url = "http://api.elsevier.com/content/search/scopus?query=AU-ID(%s)&field=dc:identifier&count=10" % micheleCaselle
+
+
+#resp = requests.get(url, headers={'Accept':'application/json',
+#                    'X-ELS-APIKey': MY_API_KEY})
+
+
+results = get_scopus_list([micheleCaselle], '', 10)
+
+for pub in results:
+    data = get_scopus_data(pub[0])
+    print data
+
+# Todo: Implement filter to show Michele and its affiliation id !!!
+
+
+#results = resp.json()
 
 print results
 
-#for r in results['search-results']["entry"]
-#    print r
 
-#return [[str(r['dc:identifier'])] for r in results['search-results']["entry"]]