Fix so that date, if any, in source reference is printed.
svn: r17734
This commit is contained in:
parent
9c7fd12d56
commit
d66d7cdc9c
@ -224,7 +224,7 @@ class Bibliography(object):
|
|||||||
if ( self.mode & self.MODE_DATE ) == self.MODE_DATE:
|
if ( self.mode & self.MODE_DATE ) == self.MODE_DATE:
|
||||||
date1 = source_ref1.get_date_object()
|
date1 = source_ref1.get_date_object()
|
||||||
date2 = source_ref2.get_date_object()
|
date2 = source_ref2.get_date_object()
|
||||||
if date1.is_equal(date2):
|
if not date1.is_equal(date2):
|
||||||
return False
|
return False
|
||||||
if ( self.mode & self.MODE_CONF ) == self.MODE_CONF:
|
if ( self.mode & self.MODE_CONF ) == self.MODE_CONF:
|
||||||
conf1 = source_ref1.get_confidence_level()
|
conf1 = source_ref1.get_confidence_level()
|
||||||
|
@ -133,6 +133,16 @@ def write_endnotes(bibliography, database, doc, printnotes=False, links=False):
|
|||||||
first = True
|
first = True
|
||||||
reflines = ""
|
reflines = ""
|
||||||
for key, ref in ref_list:
|
for key, ref in ref_list:
|
||||||
|
datepresent = False
|
||||||
|
date = ref.get_date_object()
|
||||||
|
if date is not None and not date.is_empty():
|
||||||
|
datepresent = True
|
||||||
|
if datepresent:
|
||||||
|
if ref.get_page():
|
||||||
|
txt = "%s: %s - %s" % (key, ref.get_page(), str(date))
|
||||||
|
else:
|
||||||
|
txt = "%s: %s" % (key, str(date))
|
||||||
|
else:
|
||||||
txt = "%s: %s" % (key, ref.get_page())
|
txt = "%s: %s" % (key, ref.get_page())
|
||||||
if first:
|
if first:
|
||||||
reflines += txt
|
reflines += txt
|
||||||
|
Loading…
Reference in New Issue
Block a user