{#- A dialog that shows a work in the format a reader picks, fetched when it is picked, with a copy and a download (citation.js). `sources` are (label, url with __FORMAT__ in place of the format) pairs: one for a dataset, one per reference of the hub's "Cite us", each a tab. `qr_url` is the QR code of its identifier, which `qr_label` names (dataset's identifier_label: DOI, or ID for one of the hub's own), and `qr_caption` the address it leads to, written under it. The dialog opens on `default_format` (a citation in words), already fetched. -#} {% macro cite_dialog(id, title_, sources, citation_formats, qr_url=none, qr_label="DOI", qr_caption=none, default_format="text") -%}
{%- endmacro %}