From aed683d1d5066a1ecfa529973bb887b08dfcb893 Mon Sep 17 00:00:00 2001 From: Stefan Huber Date: Wed, 21 Dec 2022 11:12:32 +0100 Subject: [PATCH] bib2html.py: Add isbn and note fields --- bib2html.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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)] -- 2.39.5