def endnotes(self, obj): if not obj or not self.inc_sources: return "" txt = endnotes.cite_source(self.bibli, self.db, obj, self._locale) if txt: txt = '<super>' + txt + '</super>' return txt
def endnotes(self, obj): """ cite the endnotes for the object """ if not obj or not self.inc_sources: return "" txt = endnotes.cite_source(self.bibli, self._db, obj, self._locale) if txt: txt = '<super>' + txt + '</super>' return txt
def endnotes(self, obj): """ write out any endnotes/footnotes """ if not obj or not self.inc_sources: return "" txt = endnotes.cite_source(self.bibli, self._db, obj, self._locale) if txt: txt = '<super>' + txt + '</super>' return txt
def _cite_endnote(self, obj, prior=''): if not self.use_srcs: return "" if not obj: return prior txt = Endnotes.cite_source(self.bibli, self._db, obj, self._locale) if not txt: return prior if prior: # translators: needed for Arabic, ignore otherwise txt = self._('%(str1)s, %(str2)s') % {'str1':prior, 'str2':txt} return txt