commit b7939420c41c30fb9e655bd132f08c3ad4184c92
parent 5cf62b115ca5863ca984b77eb200f4a6249cb4d1
Author: Antoine Amarilli <a3nm@a3nm.net>
Date: Tue, 18 Jan 2022 19:12:21 +0100
dois
Diffstat:
3 files changed, 18 insertions(+), 3 deletions(-)
diff --git a/make_talks_html.py b/make_talks_html.py
@@ -170,6 +170,17 @@ if __name__ == '__main__':
if publi['url'].lower() == 'none':
del publi['url']
+ # all publis should have a DOI, but sometimes they don't
+ # except if wrong types
+ if ('type' not in publi.keys() or publi['type'] not in ['phdthesis',
+ 'patent', 'mscthesis', 'note']) and ('status' not in
+ publi.keys() or publi['status'] not in
+ ['submitted', 'draft', 'toappear']):
+ print(publi)
+ assert('doi' in publi.keys())
+ if 'doi' in publi.keys() and publi['doi'].lower() == 'none':
+ del publi['doi']
+
outlist = set()
if 'venue' in publi.keys():
outlist.add(fall)
@@ -243,6 +254,9 @@ if __name__ == '__main__':
assert('url' in publi.keys())
if publi['url'].lower() == 'none':
del publi['url']
+ # not re-doing the DOI check from above
+ if 'doi' in publi.keys() and publi['doi'].lower() == 'none':
+ del publi['doi']
outlist = set()
if 'venue' in publi.keys():
diff --git a/maketex.py b/maketex.py
@@ -53,7 +53,7 @@ venuesz = dict((x['id'], x) for x in parse('venues'))
def mklinktex(text, url, sep=""):
global SITEURL, LOCALURL
- if not url or url == "none":
+ if not url or url.lower() == "none":
return (text)
url = url.replace("_", "\\_").replace("%", "\%") # naive escaping
return ('\\href{%s}%s{%s}' % (absurl(url, SITEURL, LOCALURL), sep, text))
@@ -173,7 +173,7 @@ def publitobib(publi, lang, venuesz, authorsz):
s += ' note = {%s},\n' % (stz[typ][lang])
if 'issue' in publi.keys():
s += ' number = {%s},\n' % publi['issue']
- if 'doi' in publi.keys() and publi['doi'] != 'none':
+ if 'doi' in publi.keys() and publi['doi'].lower() != 'none':
s += ' doi = {%s},\n' % publi['doi']
s += ' keywords = {' + ','.join(sorted(keywords)) + '},\n'
s += '}\n\n'
@@ -204,7 +204,7 @@ if __name__ == '__main__':
if thepubli and publi['id'] != thepubli:
continue
name, typ2, url, issue, oa, keywords = getvenue(publi, lang, venuesz)
- if fmt == 'tex' and typ2 == 'journal' and publi.get('issue', "none") == "none":
+ if fmt == 'tex' and typ2 == 'journal' and publi.get('issue', "none").lower() == "none":
# in latex, no journal articles without an issue number yet
continue
print(fmtdict[fmt](publi, lang, venuesz, authorsz))
diff --git a/publis b/publis
@@ -26,6 +26,7 @@ Main: yes
Reviewed: yes
Venue: lmcs
ConferenceVersion: amarilli2018when
+Status: toappear
Id: amarilli2021dynamic
Title: Dynamic Membership for Regular Languages