コード例 #1
0
ファイル: papers2.py プロジェクト: rhangelxs/papers-bin
def command_bibtex(app, options):
    r = app.query_papers_by_citekey([options.citekey])

    for pub in r.values():
        crossref = {}
        if pub["bundle"] is not None and pub["bundle"] not in crossref:
            crossref = app.get_publication_by_id([pub["bundle"]], crossref)

        print "[PUB] %s" % pub
        print "[CROSSREF] %s" % crossref
        print bibtex.to_bibtex(pub, crossref)
コード例 #2
0
ファイル: sente6.py プロジェクト: rhangelxs/papers-bin
def command_get(app, options):
    entries = app.query_papers_by_citekey([options.citekey])
    for entry in entries.values(): bibtex.to_bibtex(entry)