Browse Source

Updated documentation

Andreas Kopmann 7 years ago
parent
commit
bf0cc38b3e
2 changed files with 5 additions and 5 deletions
  1. 4 4
      README.md
  2. 1 1
      scopus-update-database.py

+ 4 - 4
README.md

@@ -1,10 +1,9 @@
 # README scopus
 *Ak, 27.3.2017*
 
-Get information from Scopus database for usage in websites.
+Get information on publications of work groups from Elsevier's Scopus database for usage in websites. For each publication a post on a Wordpress CMS is created. Citations are mapped to Wordpress comments. The get-publication script is intended to run on a regualr basis (e.g. by cron).
 
-Note: This scripts run only with access to Scopus (e.g. from KIT LAN).
-The Scopus service is not public available.
+Note: All scopus scripts run only with valid access to the Scopus database (e.g. from KIT LAN). The Scopus service is not public available.
 
 
 ## Version history
@@ -24,7 +23,8 @@ readme.md       This file
 my_scopus.py	List of scopus author ids
 ak_scopus.py	Functions to access scopus
 ak_wordpress.py Functions to creates Wordpress posts + comments
-scopus-get-publications.py Script to query Scopus
+scopus-get-publications.py  Script to query Scopus
+scopus-update-database.py   Synchronize database and available Wordpress posts
 
 test-scopus.py	Application with some functions to get publication entries
 		Prints a list with some formatting

+ 1 - 1
scopus-update-database.py

@@ -48,7 +48,7 @@ def update_database():
     try:
         with connection.cursor() as cursor:
             
-            sql = "SELECT wpid FROM `publications`"
+            sql = "SELECT wpid FROM `publications` WHERE wpid > 0"
             cursor.execute(sql)
             
             result = cursor.fetchall()