diff --git a/build_frontmatter.py b/build_frontmatter.py
index 20ce901..d5abf2d 100644
--- a/build_frontmatter.py
+++ b/build_frontmatter.py
@@ -682,7 +682,7 @@ def create_omp_native_xml(eoa_publication):
outfile.close()
# def create_omp_native_xml ends here
-def create_xhtml(eoa_publication):
+def create_xhtml(eoa_publication, edited):
"""Use the database infos for creating an XHTML file for pro business"""
# validate input
@@ -721,7 +721,10 @@ def create_xhtml(eoa_publication):
if len(authors_line) == 0:
authors_line = item_for_template["bookauthors"]
- xhtml_string += "
{} ({})\n".format(chapter_title, authors_line)
+ if edited:
+ xhtml_string += "{} ({})\n".format(chapter_title, authors_line)
+ else:
+ xhtml_string += "{}\n".format(chapter_title)
xhtml_string += "\n"
# the template file
@@ -740,6 +743,7 @@ def main():
parser = argparse.ArgumentParser()
parser.add_argument("publication", help="Series and number of publication without space (e.g. sources7).")
parser.add_argument("-r", "--remove", help="Remove the first page in case the chapter already contains an info page.", action="store_true")
+ parser.add_argument("-e", "--edited", help="If set, the publication is treated as edited volume. This prints authors' names in the xhtml mode.", action="store_true")
group = parser.add_mutually_exclusive_group()
group.add_argument("-p", "--pdf", action="store_true")
group.add_argument("-o", "--omp", action="store_true")
@@ -752,7 +756,7 @@ def main():
elif args.omp:
create_omp_native_xml(args.publication)
elif args.xhtml:
- create_xhtml(args.publication)
+ create_xhtml(args.publication, args.edited)
else:
print_error("Specify whether you want the output as a PDF, OMP or XHTML input.")
sys.exit()