Browse Source

Changed configuration to match the new category names in Wordpress

Andreas Kopmann 6 years ago
parent
commit
5196b16ef9
3 changed files with 20 additions and 16 deletions
  1. 17 13
      etc/config_held_de.py
  2. 1 1
      test-wp.py
  3. 2 2
      test-wp2.py

+ 17 - 13
etc/config_held_de.py

@@ -117,6 +117,10 @@ matthiasKleifegs = "6602072426"
 # Definition of workgroups for automatic Scopus publication retrieval
 
 sc_start = 2016
+sc_citations = False
+sc_keywords = True
+sc_max_authors = 25
+
 
 dts_wp11 = [michaelFiederle,dorisEckstein,alexanderDierlamm]
 dts_wp12 = [ulrichTrunk,ivanPeric]
@@ -125,7 +129,7 @@ dts_wp14 = [andreasMussgiller]
 
 dts_wp21 = [marcSchneider,ms2,ms3,ms4]
 dts_wp22 = [peterKaever,matthiasBalzer,oliverSander]
-dts_wp23 = [michaelBussmann,andreasKopmann,surenChilingaryan,matthiasVogelgesang]
+dts_wp23 = [michaelBussmann,andreasKopmann,ak2,surenChilingaryan,matthiasVogelgesang]
 
 dts_wp31 = [davidPennicard]
 dts_wp32 = [berndVoss,oliverSchaefer]
@@ -135,18 +139,18 @@ dts_wp35 = [corneliaWunderer]
 
 
 sc_workgroups = [
-{'name':"Semiconductor sensors",'authors':dts_wp11},
-{'name':"ASICs",'authors':dts_wp12},
-{'name':"Electronics packaging",'authors':dts_wp13},
-{'name':"Innovative materials",'authors':dts_wp14},
-{'name':"Optical data transmission",'authors':dts_wp21},
-{'name':"Programmable electronics",'authors':dts_wp22},
-{'name':"Real-time data processing",'authors':dts_wp23},
-{'name':"Helmholtz cube",'authors':dts_wp31},
-{'name':"Compact gaseous detectors",'authors':dts_wp32},
-{'name':"Photon & X-ray detetors",'authors':dts_wp33},
-{'name':"Fast timing detectors",'authors':dts_wp34},
-{'name':"CMOS sensors",'authors':dts_wp35},
+{'name':"sensors",'authors':dts_wp11},
+{'name':"asics",'authors':dts_wp12},
+{'name':"packaging",'authors':dts_wp13},
+{'name':"materials",'authors':dts_wp14},
+{'name':"photonics",'authors':dts_wp21},
+{'name':"electronics",'authors':dts_wp22},
+{'name':"computing",'authors':dts_wp23},
+{'name':"helmholtz-cube",'authors':dts_wp31},
+{'name':"gaseous-detectors",'authors':dts_wp32},
+{'name':"photon-detetors",'authors':dts_wp33},
+{'name':"fast-timing",'authors':dts_wp34},
+{'name':"cmos-sensors",'authors':dts_wp35},
 ]
 """ Definition of the workgroups
     

+ 1 - 1
test-wp.py

@@ -15,7 +15,7 @@ from config import *
 # Use Wordpress account - not the mysql credentials
 # Todo: use scopus later !!!
 wp = Client(wp_api_url,wp_user,wp_password)
-#print wp.call(GetPosts())
+print wp.call(GetPosts())
 
 #print wp.call(GetUserInfo())
 

+ 2 - 2
test-wp2.py

@@ -30,10 +30,10 @@ if len(sys.argv) > 1:
 # Read post
 try:
     post = wp.call(GetPost(wpid))
-    print "Post %d: %s" %(wpid,post.title)
+    print ("Post %d: %s" %(wpid,post.title))
 
 except:
-    print "Post %d seems to be not available" % wpid
+    print ("Post %d seems to be not available" % wpid)