aboutsummaryrefslogtreecommitdiffstats
path: root/chocula.py
diff options
context:
space:
mode:
Diffstat (limited to 'chocula.py')
-rwxr-xr-xchocula.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/chocula.py b/chocula.py
index 04595da..12b7ae1 100755
--- a/chocula.py
+++ b/chocula.py
@@ -1175,6 +1175,11 @@ class ChoculaDatabase():
if extra['color'] == 'green':
out['is_oa'] = True
+ # filter out "NA" ISSNs
+ for k in ('issne', 'issnp'):
+ if out.get(k) and (len(out[k]) != 9 or out[k][4] != '-'):
+ out.pop(k)
+
cur = self.db.execute("SELECT * FROM homepage WHERE issnl = ?;", [issnl])
for hrow in cur:
out['any_homepage'] = True