Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Remove printer and distributor line completely if not available
  • Loading branch information
kthoden committed Oct 25, 2021
1 parent bdb089d commit ddb509d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
5 changes: 1 addition & 4 deletions data/frontpage_template.tex
Expand Up @@ -44,10 +44,7 @@
First published $PUB_DATE by $MAINORG, $PUBLISHER_STRING_RAW$LICENCE}
\vspace{1em}
{\small
Printed and distributed by:\par
$FORMATTED_SHOPLINK}
$FORMATTED_SHOPLINK
\vspace{1em}
Expand Down
13 changes: 10 additions & 3 deletions metadator.py
Expand Up @@ -444,12 +444,19 @@ def format_shoplink(input_string, raw=False):
# except AttributeError:
# pass

shoplink_line = r"\vspace{1em}"
shoplink_line += "\n"
shoplink_line += r"{\small"
shoplink_line += "\n"
shoplink_line += r"Printed and distributed by:\par"
shoplink_line += "\n"

if company == "epubli.de":
shoplink_line = r"epubli\,/\,neopubli GmbH, Berlin\par\url{%s}" % shop_url
shoplink_line += r"epubli\,/\,neopubli GmbH, Berlin\par\url{%s}}" % shop_url
elif company == "pro-business.com":
shoplink_line = r"PRO BUSINESS digital printing Deutschland GmbH, Berlin\par\url{%s}" % shop_url
shoplink_line += r"PRO BUSINESS digital printing Deutschland GmbH, Berlin\par\url{%s}}" % shop_url
else:
shoplink_line = ""
shoplink_line = r"\vfill"

if raw == False:
return shoplink_line
Expand Down

0 comments on commit ddb509d

Please sign in to comment.