From: Stefan Huber Date: Wed, 21 Dec 2022 10:12:32 +0000 (+0100) Subject: bib2html.py: Add isbn and note fields X-Git-Url: https://git.sthu.org/?p=shutils.git;a=commitdiff_plain;h=aed683d1d5066a1ecfa529973bb887b08dfcb893 bib2html.py: Add isbn and note fields --- diff --git a/bib2html.py b/bib2html.py index 72a5771..5db0d07 100755 --- a/bib2html.py +++ b/bib2html.py @@ -65,8 +65,9 @@ def format_details_article(entry): format_field(entry, 'number', pre='(', post=')')) line.append(format_field(entry, 'month', post=' ') + \ format_field(entry, 'year')) - line = filter(lambda l: l != "", line) + line.append(format_field(entry, 'note')) + line = filter(lambda l: l != "", line) return [where, ", ".join(line)] def format_details_inproceedings(entry): @@ -77,6 +78,9 @@ def format_details_inproceedings(entry): line.append(format_field(entry, 'address')) line.append(format_field(entry, 'month', post=' ') + \ format_field(entry, 'year')) + line.append(format_field(entry, 'isbn', pre='ISBN ')) + line.append(format_field(entry, 'note')) + line = filter(lambda l: l != "", line) return [where, ", ".join(line)] @@ -85,6 +89,8 @@ def format_details_thesis(entry): line.append(format_field(entry, 'school')) line.append(format_field(entry, 'month', post=' ') + \ format_field(entry, 'year')) + line.append(format_field(entry, 'note')) + line = filter(lambda l: l != "", line) return [", ".join(line)] @@ -94,6 +100,8 @@ def format_details_book(entry): line.append(format_field(entry, 'isbn', pre='ISBN ')) line.append(format_field(entry, 'month', post=' ') + \ format_field(entry, 'year')) + line.append(format_field(entry, 'note')) + line = filter(lambda l: l != "", line) return [", ".join(line)]