From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/29384 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "'sebastien rey-coyrehourcq' via pandoc-discuss" Newsgroups: gmane.text.pandoc Subject: How to retrieve doi/ url from citeproc with lua filter ? Date: Fri, 22 Oct 2021 14:26:27 -0700 (PDT) Message-ID: <126d5d2c-335d-45a9-8976-14ded00cc735n@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_10914_2042216132.1634937987799" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6781"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBDBJNH6FTMBBBBOZZSFQMGQEYGKMFWA-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Fri Oct 22 23:26:32 2021 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-ot1-f64.google.com ([209.85.210.64]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1me23b-0001Xp-6A for gtp-pandoc-discuss@m.gmane-mx.org; Fri, 22 Oct 2021 23:26:31 +0200 Original-Received: by mail-ot1-f64.google.com with SMTP id y22-20020a9d4616000000b0054e84ab2a68sf2654378ote.16 for ; Fri, 22 Oct 2021 14:26:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; h=date:from:to:message-id:subject:mime-version:x-original-sender :reply-to:precedence:mailing-list:list-id:list-post:list-help :list-archive:list-subscribe:list-unsubscribe; bh=rapRcrD+AlJeRp/CG1kdZPtocXQSlXIxJBq9yLSerBY=; b=anJrDoAd3deTNIObq+e9sBpfjylc3W6V7+WxQW4T4KsLuSjbNCshLOX3jCG8rin+V5 7hgTgi4R7DXIc1Iw41HYnqDz1ds0UFHLBiBEUSCIpR5LUtk/9gFjkfVDS8SGhEjsQONF crcI2PmHVoalGfg4APb++Pr1ZCBI9T40+d1hsNi2ywYBUDc8KfTcgKavtd0X62iMQqbp 1x+S+xlWK9GheiZKYk7l/GrIdgTskaod0airRH1d2Oh3AlVKxaTcD7zTeiNARq2ez0i5 L3pRGi6HTCuPMl5fDQrHOCuh/aVrP2c2oNUOEh0NunYAFJ1Py9Vi9yK2zjkzRrXRD1RI qtYw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:message-id:subject:mime-version :x-original-sender:reply-to:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=rapRcrD+AlJeRp/CG1kdZPtocXQSlXIxJBq9yLSerBY=; b=ZQ4QYqyf3mK8DsHIL1nv4TlRDwsUKeeWpcr69qUcJqmPBSDMRyJ8hEtRVQpn8117Qj H+JH8SO1UZQOsVjHiKRZwGimeVLVu6oXwQ9RTsCYGuJl8pEkDd2gkCJCPV97Oocj5voS 3ilz+8JFNM+7Gz28100/tcEqJCuw2veS4EdGcGMXOpAcdP0HzvpmFZfHMXAnr0iPd9UB akl4L+jCl4D3z/0FKHPhzfDQSyjj5AlcO5M4rxw0Zo0CdGqc0NOZYleGdjFzbhbLyEqK bvWlmOKoTUU6ymxO4L7FCnVelBwjUHCxeP7aesmZEMTNNMUVphdl7NXGNoiGd/FKdU/E mfhw== X-Gm-Message-State: AOAM531CAYqp3ezC+THHuVskKMHqox74bGX4NCx+7pPgm6kGj/C0fREp ytA+/j8z2BHpQFlo4ByhWRk= X-Google-Smtp-Source: ABdhPJwo2WMF7RPAfsrhSnemeyV5iaCZAqzHTWNtGJlB7k8+pp/RBgXRd/uWygUX1EBSkfGxPeFcvQ== X-Received: by 2002:a9d:1b29:: with SMTP id l38mr1826695otl.363.1634937990171; Fri, 22 Oct 2021 14:26:30 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a4a:e298:: with SMTP id k24ls724427oot.3.gmail; Fri, 22 Oct 2021 14:26:28 -0700 (PDT) X-Received: by 2002:a05:6820:1622:: with SMTP id bb34mr1802595oob.7.1634937988621; Fri, 22 Oct 2021 14:26:28 -0700 (PDT) X-Original-Sender: s.rey.coyrehourcq-rL08mxTRTsNl57MIdRCFDg@public.gmane.org X-Original-From: sebastien rey-coyrehourcq 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:29384 Archived-At: ------=_Part_10914_2042216132.1634937987799 Content-Type: multipart/alternative; boundary="----=_Part_10915_538687146.1634937987799" ------=_Part_10915_538687146.1634937987799 Content-Type: text/plain; charset="UTF-8" Hi there, I'm a little lost in lua filters. If i want url and doi in my bibtex appearing in the AST Json #ref div i suppose the only way was to change default CSL. But after that, without regex ? is there a way to retrieve the url and the doi from elem? I said that because i need to push these information into my database after resolving. The workflow is : docs.md -> pandoc --citeproc docs.bib + lua filter -> save key/doi/url of citation into a database for another usage Best regards -- 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/126d5d2c-335d-45a9-8976-14ded00cc735n%40googlegroups.com. ------=_Part_10915_538687146.1634937987799 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi there,

I'm a little lost in lua filters.

If i want url and doi in my bibtex appearing in the= AST Json #ref div i suppose the only way was to change default CSL. But af= ter that, without regex ? is there a way to retrieve the url and the doi fr= om elem? I said that because i need to push these information into my datab= ase after resolving.

The workflow is :
<= br>
docs.md  -> pandoc --citeproc docs.bib + lua filter -= > save key/doi/url of citation into a database for another usage

Best regards


--
You received this message because you are subscribed to the Google Groups &= quot;pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to pand= oc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d= /msgid/pandoc-discuss/126d5d2c-335d-45a9-8976-14ded00cc735n%40googlegroups.= com.
------=_Part_10915_538687146.1634937987799-- ------=_Part_10914_2042216132.1634937987799--