line = filter(lambda l: l != "", line)
return [", ".join(line)]
+def format_details_patent(entry):
+ line = []
+ line.append(format_field(entry, 'number', pre='Pat. '))
+ 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)]
+
def format_links(entry):
doi = format_field(entry, 'doi', pre='<a href="http://dx.doi.org/', post='">[DOI]</a>')
webpdf = format_field(entry, 'webpdf', pre='<a href="', post='">[PDF]</a>')
lines.extend(format_details_inproceedings(entry))
elif entry.type=='book':
lines.extend(format_details_book(entry))
+ elif entry.type=='patent':
+ lines.extend(format_details_patent(entry))
elif entry.type in ['mastersthesis', 'phdthesis']:
lines.extend(format_details_thesis(entry))
else: