diff --git a/src/gen/plug/report/_bibliography.py b/src/gen/plug/report/_bibliography.py index 121cc2b72..cee5ff8b5 100644 --- a/src/gen/plug/report/_bibliography.py +++ b/src/gen/plug/report/_bibliography.py @@ -224,7 +224,7 @@ class Bibliography(object): if ( self.mode & self.MODE_DATE ) == self.MODE_DATE: date1 = source_ref1.get_date_object() date2 = source_ref2.get_date_object() - if date1.is_equal(date2): + if not date1.is_equal(date2): return False if ( self.mode & self.MODE_CONF ) == self.MODE_CONF: conf1 = source_ref1.get_confidence_level() diff --git a/src/gen/plug/report/endnotes.py b/src/gen/plug/report/endnotes.py index b7af8bb83..fc9f71fca 100644 --- a/src/gen/plug/report/endnotes.py +++ b/src/gen/plug/report/endnotes.py @@ -133,7 +133,17 @@ def write_endnotes(bibliography, database, doc, printnotes=False, links=False): first = True reflines = "" for key, ref in ref_list: - txt = "%s: %s" % (key, ref.get_page()) + 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()) if first: reflines += txt first = False