Skip to content

Commit

Permalink
Fix series replacement string
Browse files Browse the repository at this point in the history
  • Loading branch information
kthoden committed Nov 15, 2021
1 parent a717901 commit b48b8bb
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/data/epub_files/epubintro-sources.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,6 @@ The Deutsche Nationalbibliothek lists this publication in the Deutsche Nationalb
AdditionalInformation

<p>Edition Open Sources<br />
series number</p>
eoaseries number</p>

</body></html>
2 changes: 1 addition & 1 deletion src/data/epub_files/epubintro.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,6 @@ The Deutsche Nationalbibliothek lists this publication in the Deutsche Nationalb
AdditionalInformation

<p>Max Planck Research Library for the History and Development of Knowledge<br />
mprlseries number</p>
eoaseries number</p>

</body></html>
4 changes: 2 additions & 2 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-07-02 12:15:51 (kthoden)>
# Time-stamp: <2021-11-15 21:09:52 (kthoden)>

""" Convert a customized DocBook XML file into a set of files that
constitute the contents of an EPUB file.
Expand Down Expand Up @@ -658,7 +658,7 @@ def add_css_snippet(css_snippet, css_file):
strIntroHTML = re.sub("author", strAuthorString, strIntroHTML)
strIntroHTML = re.sub("TITLE", strTitleString, strIntroHTML)
strIntroHTML = re.sub("year", cfgPublication.get("Technical", "PublicationYear"), strIntroHTML)
strIntroHTML = re.sub("mprlseries", publication_series, strIntroHTML)
strIntroHTML = re.sub("eoaseries", publication_series, strIntroHTML)
strIntroHTML = re.sub("number", publication_number, strIntroHTML)
strIntroHTML = re.sub("epubisbn", publication_isbn, strIntroHTML)
strIntroHTML = re.sub("pubdoi", publication_doi, strIntroHTML)
Expand Down

0 comments on commit b48b8bb

Please sign in to comment.