From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/29329 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: John MacFarlane Newsgroups: gmane.text.pandoc Subject: Re: Citations: lookup online and fetch metadata? Date: Sun, 03 Oct 2021 10:46:19 -0700 Message-ID: References: <86fd3cd3-ada6-406a-9aa6-7929aeb254fen@googlegroups.com> <145362a0-b797-40f7-8610-9dd3b5e42f20n@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36005"; mail-complaints-to="usenet@ciao.gmane.io" To: Martin Fenner , pandoc-discuss Original-X-From: pandoc-discuss+bncBCJZJHG45QDBB6WY46FAMGQECZVQ34A-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Sun Oct 03 19:46:38 2021 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-ua1-f63.google.com ([209.85.222.63]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1mX5ZM-00096F-HD for gtp-pandoc-discuss@m.gmane-mx.org; Sun, 03 Oct 2021 19:46:36 +0200 Original-Received: by mail-ua1-f63.google.com with SMTP id y2-20020ab03382000000b002baed713ac3sf7842020uap.7 for ; Sun, 03 Oct 2021 10:46:36 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1633283195; cv=pass; d=google.com; s=arc-20160816; b=cgJ8Mx83Zm2bNY5rKj9d+29zdgnLMrLMJvmNv/wyAsfyq9/QXRBjfVEND01KLJNRp+ qHSXi8Fuwu6Zbvd75ukz4THy2sX0v7K6hcRe/1nJHLrMQXKWYiBruKKqC2RdF+PJm5C0 Ab1qU7yEYRI5Is18m+YbR+BjYo+/q3/AaA/hz8mPEvFWKQZMduu6qkMTojNe40SWU/fq Uh68VuHCrxztxG/qZKRcXZDLh4rINvKOQ22iHBO+RuvMyJCmt7fpzqMv0oW0iM8bz++o DECU9yaZKd/A6fAE5sPhJfSFpNgnO7uOJ+RJZVgzWswR75fY0gboXxf/EUc/eQ4xd2Ld xi9A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:mime-version:message-id :date:references:in-reply-to:subject:to:from:sender:dkim-signature; bh=+Ocd9sckQyH6ZgNt1+2cinHfpD46kGh9nwiC/TqCVHY=; b=xoEGRjIymKpBTp2EulEQBebWoK9s3k2oF70XL2dk09IPG9fmhfo4BoekuBHu2YyIVo WsSSOBC+5tAxMqg8VCizqpAOqeJ9mDzrg2WIAyNsVv/bVHi35tNCEQUibzU1KXkL3uTK N2F2O/fzlPt6Npm/3Rngeu/LhRkP0psyOKEyy9XOFP/4BRJi2XQNzRwamkixJBTvP1xU 6qYQSWa/i64pP05F3Qm0lmVV5PqEzsrztZRhoradq/XZmxxNUz8CyTHfLmL8Bc5s1TPw BVQEC7LzIwWw6zwT5UVir/RYYRZbqzWa9BJy2BXPS38f7E/Ob7a85zxoRaJwsdYPegUR o7sg== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20210112.gappssmtp.com header.s=20210112 header.b=kmu+O0PS; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::1035 as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; h=sender:from:to:subject:in-reply-to:references:date:message-id :mime-version:x-original-sender:x-original-authentication-results :reply-to:precedence:mailing-list:list-id:list-post:list-help :list-archive:list-subscribe:list-unsubscribe; bh=+Ocd9sckQyH6ZgNt1+2cinHfpD46kGh9nwiC/TqCVHY=; b=n/dZta8Y4eDsNzYLyIU+ljYxiMXawaPwoiruD4SqTgm821EEhKcy6RBFuv/sbpETLv kF878xlIx94hzDG7lCGFmaxmq3FdqjimXLrCld0gZgWNJchCIhtLCes5bO+k02M5yqBp 67JhmevIEgS2egcSgSuYtyHb3xOz0sw4W1f3FM/JbxbH8Lvz4+XzRBdaq0z383S0dFl3 5mEr86QjbV3RXimwZEc1+XWut+iFWqozpmUyHt5KS4qdMyg0nKLqiljVxoyDw9kxDMoI pQFeDS5tHhhKHjR34T04JCUuF+X+sZy8cPixQ9W5wbuapGEM5yNxIKWfW9PkOh4TvRvF wDOw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=sender:x-gm-message-state:from:to:subject:in-reply-to:references :date:message-id:mime-version:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=+Ocd9sckQyH6ZgNt1+2cinHfpD46kGh9nwiC/TqCVHY=; b=DF9IjVyCYGHs30i2fp6qBxpbtUaneGk71UrsWRhNltkCSf+gMAnhFmgCYJ7CCsKnpq mNOMo6Ka98r314sNQjrso93tjIrum1pb5ieZtsmEi/b9iNEynxV0LvRmm5Nq9P9hKWIb Maflxm4HQSYIGR+ABQeVubsFfh3efOzCri1BLfBQvB5zT8V1qbHtk1AL5JckELd9W75F f7pr4WCx17UIIy1vBU8sk0kUv8FbhEu2p1YpW94GMpmS2AIUzBLlYHZj2r+B2y7t6ay6 nOmupm/AqourXymhO5WbjWpnVPtI8w+DXh75bLtnj5tMl8FSOaCSDgEDxlAF8XaYvSm3 MFaw== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM530Hg/iU7RvRptTp/jxQptdohJpPyquA4iHrczaWEahDltfk4zb2 n1um2EyNy2Utb2TpZoi8U5c= X-Google-Smtp-Source: ABdhPJwqw7H55vW8Pp/cQlx5RnDs0h50zdMsnT/C2nSWdCmGAsaL+JdEJqdUYleYnKa3FTmRQprw+w== X-Received: by 2002:a05:6102:233a:: with SMTP id b26mr10192535vsa.45.1633283195561; Sun, 03 Oct 2021 10:46:35 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a9f:3b07:: with SMTP id i7ls2213958uah.11.gmail; Sun, 03 Oct 2021 10:46:33 -0700 (PDT) X-Received: by 2002:ab0:3c93:: with SMTP id a19mr1809427uax.93.1633283193754; Sun, 03 Oct 2021 10:46:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633283193; cv=none; d=google.com; s=arc-20160816; b=mCrtPeY+T0319LywqZCAVlGytJwWHKQbANZaiHYG2lY1GX5hZZn+pJ14+pYLN7kVio W65j56ks3zXPJRtwADfzbloxNnPdhiBxxek04TW15p3VIiO06ihSHZDT5lUMLmmvxk7+ nq9F9fTSzqIWR68FRp45b4vurMqc+nyk5T15KQuy+ZEGFkzoPiauT53AzSMNewSRMH+z vBr4BIMXMd6YxiqFosXyTUeaEU1VLoxKMNpMfJdcFxodaacQ+RBkDHx1bzZ/SmGuz1xR RJx5RL/W7HpLbBls0e28qevrAL4rL1NwGZk6b5GT8tUI/5Xm0manQggWs9oi6kMFop0W BMyw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:message-id:date:references:in-reply-to:subject:to:from :dkim-signature; bh=f2TR52KltWLGg0Vfa+0ngD2bdBbgzGaCx7yvJoe+XyA=; b=SduQMvSouVXPWGYpz/yBszdqeLqGU8pyqATR9Eu/QRrhD/efs4SrA62awQzEZlnPTo MBKIwlpCZkbO4nYGlbpsCgUHpz7PTUKyqTm1sCrot6pumtBrXzjKabHjJxHAq2KlO8y/ Au/PstOLqnsJhq6eseBBjDLGZxy1A8ON/8D2HqApSczr1WMkKuJRxrBHRFL9+SKr3Puk 7KqfMFk4FK7G50rJoHjUQesSplhl2HKRsTcUlEP520dmccPNBtQhMfm21/QElgmV1Hfm YqYRIBF0uN0blXPaRMCbkoiFKPmGux4/qKv+G6d5CbdCE5YqkrdWh8f+1kWOwFSmoH9P 3sWQ== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20210112.gappssmtp.com header.s=20210112 header.b=kmu+O0PS; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::1035 as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org Original-Received: from mail-pj1-x1035.google.com (mail-pj1-x1035.google.com. [2607:f8b0:4864:20::1035]) by gmr-mx.google.com with ESMTPS id a13si728316uax.0.2021.10.03.10.46.33 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 03 Oct 2021 10:46:33 -0700 (PDT) Received-SPF: pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::1035 as permitted sender) client-ip=2607:f8b0:4864:20::1035; Original-Received: by mail-pj1-x1035.google.com with SMTP id k23-20020a17090a591700b001976d2db364so10536229pji.2 for ; Sun, 03 Oct 2021 10:46:33 -0700 (PDT) X-Received: by 2002:a17:902:b945:b0:13d:c17d:4209 with SMTP id h5-20020a170902b94500b0013dc17d4209mr19556867pls.75.1633283192141; Sun, 03 Oct 2021 10:46:32 -0700 (PDT) Original-Received: from johnmacfarlane.net (li55-134.members.linode.com. [74.82.3.134]) by smtp.gmail.com with ESMTPSA id z7sm1875116pff.23.2021.10.03.10.46.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 03 Oct 2021 10:46:31 -0700 (PDT) Original-Received: by johnmacfarlane.net (Postfix, from userid 1000) id C563FA1A8; Sun, 3 Oct 2021 13:46:19 -0400 (EDT) In-Reply-To: <145362a0-b797-40f7-8610-9dd3b5e42f20n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> X-Original-Sender: jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20210112.gappssmtp.com header.s=20210112 header.b=kmu+O0PS; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::1035 as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org Precedence: list Mailing-list: list pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; contact pandoc-discuss+owners-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org List-ID: X-Google-Group-Id: 1007024079513 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Xref: news.gmane.io gmane.text.pandoc:29329 Archived-At: Great idea -- maybe put up an issue on https://github.com/pandoc/lua-filters so we don't lose track of the suggestion? Or even better a PR! Martin Fenner writes: > I suggest to not call the Crossref REST API directly, but instead use DOI > content negotiation, as there are a total of 11 DOI registration agencies > (although Crossref is by far the largest one). For example (using curl): > curl -LH "Accept: application/x-bibtex" > https://doi.org/10.1126/science.169.3946.635. More info > at https://citation.crosscite.org/docs.html > > Best, Martin > > On Saturday, October 2, 2021 at 9:31:39 PM UTC+2 John MacFarlane wrote: > >> >> >> This might interest you: >> https://github.com/pandoc/lua-filters/tree/master/doi2cite >> Use DOIs as cite keys and automatically fetch the data. >> >> Ilia Zaihcuk writes: >> >> > Hi all, >> > >> > Is it possible, within the "pandoc'osphere", to fetch more metadata >> about a >> > given citation from some online resource? >> > >> > Inspired by zbib.org (based on zotero ). >> Given, >> > for example, the simple search string "*Probability Neglect 2002*", the >> > service returns as much as >> > >> > @article{sunstein_probability_2002, >> > title = {Probability {Neglect}: {Emotions}, {Worst} {Cases}, and >> > {Law}}, >> > volume = {112}, >> > issn = {00440094}, >> > shorttitle = {Probability {Neglect}}, >> > url = {https://www.jstor.org/stable/1562234?origin=crossref}, >> > doi = {10.2307/1562234}, >> > number = {1}, >> > urldate = {2021-10-02}, >> > journal = {The Yale Law Journal}, >> > author = {Sunstein, Cass R.}, >> > month = oct, >> > year = {2002}, >> > pages = {61}, >> > } >> > >> > I see a lot of integrations with packages like citeproc-hs >> > , zotxt >> > , zotero-better-bibtex >> > , etc., but >> all >> > of them are talking primarily about managing and formatting a >> preexisting >> > bibliography and I've seen *no* mention of anything about fetching *new >> > data*. >> > >> > This can be very useful when citations in the source files are missing >> > parts, or need to be converted into a format which requires more data >> (e.g. >> > input is only , but output requires DOI). >> > >> > Best, >> > >> > Ilia >> > >> > -- >> > You received this message because you are subscribed to the Google >> Groups "pandoc-discuss" group. >> > To unsubscribe from this group and stop receiving emails from it, send >> an email to pandoc-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >> > To view this discussion on the web visit >> https://groups.google.com/d/msgid/pandoc-discuss/86fd3cd3-ada6-406a-9aa6-7929aeb254fen%40googlegroups.com >> . >> > > -- > You received this message because you are subscribed to the Google Groups "pandoc-discuss" group. > To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/145362a0-b797-40f7-8610-9dd3b5e42f20n%40googlegroups.com.