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)
def command_get(app, options): entries = app.query_papers_by_citekey([options.citekey]) for entry in entries.values(): bibtex.to_bibtex(entry)