projects
/
shutils.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
f6bc474
)
bib2html.py: Add isbn and note fields
author
Stefan Huber <shuber@sthu.org>
Wed, 21 Dec 2022 10:12:32 +0000
(11:12 +0100)
committer
Stefan Huber <shuber@sthu.org>
Wed, 21 Dec 2022 10:12:32 +0000
(11:12 +0100)
bib2html.py
patch
|
blob
|
history
diff --git
a/bib2html.py
b/bib2html.py
index 72a57718d7ab96976e315531b5774b74d7d37dae..5db0d075d32d4ba6b75cbe1ddc7ba66a51cc822c 100755
(executable)
--- 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'))
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):
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, '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)]
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, '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)]
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, '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)]
line = filter(lambda l: l != "", line)
return [", ".join(line)]