'Link manually-labeled footnotes and citations to/from their
references.'

def resolve_footnotes_and_citations(self):

    for footnote in self.document.footnotes:
        for label in footnote['names']:
            if self.document.footnote_refs.has_key(label):
                reflist = self.document.footnote_refs[label]
                self.resolve_references(footnote, reflist)
    for citation in self.document.citations:
        for label in citation['names']:
            if self.document.citation_refs.has_key(label):
                reflist = self.document.citation_refs[label]
                self.resolve_references(citation, reflist)
