Skip to content

Commit

Permalink
Fix DOI assignment code
Browse files Browse the repository at this point in the history
  • Loading branch information
kthoden committed Apr 23, 2021
1 parent 1fd1d76 commit d094a22
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/imxml2epub.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env python3
# -*- coding: utf-8; mode: python -*-
# Time-stamp: <2021-03-08 11:04:15 (kthoden)>
# Time-stamp: <2021-04-23 09:58:44 (kthoden)>

""" Convert a customized DocBook XML file into a set of files that
constitute the contents of an EPUB file.
Expand Down Expand Up @@ -554,8 +554,10 @@ def add_css_snippet(css_snippet, css_file):
publication_isbn = cfgPublication.get("Technical", "ISBN-epub")
except:
publication_isbn = cfgPublication.get("Technical", "ISBN")

publication_doi = cfgPublication.get("Technical", "DOI") or None
try:
publication_doi = cfgPublication.get("Technical", "DOI")
except:
publication_doi = "missing"

# Prepare Author String
strAuthorString = cfgPublication.get("Authors", "Author1")
Expand Down

0 comments on commit d094a22

Please sign in to comment.