如何使用 biblatex-ext-oa 获取手动开放获取声明出版物的开放获取符号?

如何使用 biblatex-ext-oa 获取手动开放获取声明出版物的开放获取符号?

按照以下示例https://tex.stackexchange.com/a/459488/98739我将其扩展为另一个出版物(Bossert:788839)。unpaywall API 找不到这篇文章(我不希望如此),但它通过 Zenodo 开放访问,并且有一个 DOI。我在 biblatex-ext 手册中读到,我可以通过添加DOI+an = {openaccess}(第 48 页)将此类出版物声明为“开放访问”,然而,当我使用选项时,这一点被忽略了openaccess=doiapi

我的问题是:如何对(大多数)出版物条目使用 Unpaywall API,并为其中一些条目手动设置此状态?

\documentclass[british]{article}
\usepackage{etoolbox}
\usepackage{babel}
\usepackage{csquotes}

\usepackage[backend=biber, style=numeric]{biblatex}
\usepackage[doiapi=true, symbolpackage=tikz, symbol=oanet]{biblatex-ext-oa}
% symbolpackage=tikz chooses open access symbols drawn in TikZ
% symbol=oanet gives an the open access symbol from
% open-access.net (https://open-access.net/),
% logo by
% Medien + Design
% Center for Digital Systems
% Competence Center for E-Learning and Multimedia
% Freie Universität Berlin
% CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/)
\ExecuteBibliographyOptions{openaccess=doiapi}

\SetDOIAPIMail{[email protected]}% <- this MUST be set for doiapi
%\SetDOIAPICacheExpiration{15}% if you like, you can set the expiration period
                              % for the cache here, default is seven days

\usepackage{kantlipsum}
\usepackage[colorlinks]{hyperref}

\usepackage{filecontents}
\begin{filecontents*}[overwrite]{\jobname.bib}
% this article is open access at the source
@article{valfort,
  author   = {Valfort, Aurore-Cécile and Launay, Caroline and Sémon, Marie
              and Delattre, Marie},
  title    = {Evolution of mitotic spindle behavior during the first
              asymmetric embryonic division of nematodes},
  journal  = {PLOS Biology},
  date     = {2018-01},
  volume   = {16},
  number   = {1},
  pages    = {1-23},
  doi      = {10.1371/journal.pbio.2005099},
}
% has open access version on Harvard DASH
@article{kucsko,
  author   = {G. Kucsko and P. C. Maurer and N. Y. Yao and M. Kubo
              and H. J. Noh and P. K. Lo and H. Park and M. D. Lukin},
  title    = {Nanometre-scale thermometry in a living cell},
  journal  = {Nature},
  volume   = {500},
  number   = {7460},
  pages    = {54--58},
  doi      = {10.1038/nature12373},
  date     = {2013},
}
% has open access version on the arXiv
@article{randall,
  author   = {Lisa Randall and Raman Sundrum},
  title    = {Large Mass Hierarchy from a Small Extra Dimension},
  journal  = {Physical Review Letters},
  year     = {1999},
  volume   = {83},
  number   = {17},
  pages    = {3370--3373},
  doi      = {10.1103/physrevlett.83.3370},
}
% second open access at HAL
@article{abiakle,
  author     = {Abi Akle, Audrey and Stéphanie Minel and Bernard Yannou},
  title      = {Information visualization for selection in Design by Shopping},
  journal    = {Research in Engineering Design},
  volume     = {28},
  number     = {1},
  year       = {2017},
  pages      = {99--117},
  doi        = {10.1007/s00163-016-0235-2},
}
% no open access that I know of
@Article{Bossert:788839,
  Author     = {Bossert, Lukas C.},
  Title      = {Mit »biber --tool« Bibliografieeinträge bearbeiten},
  JournalTitle = {Die TEXnische Komödie},
  Year       = {2020},
  DOI        = {10.5281/zenodo.3784922},
  DOI+an     = {openaccess},
  Location   = {Heidelberg},
  Pages      = {24--33},
  Publisher  = {DANTE},
  Volume     = {2}
}
\end{filecontents*}


\addbibresource{\jobname.bib}
\begin{document}
\kant[1]
\nocite{*}
\printbibliography
\end{document}

在此处输入图片描述

答案1

openacess = doi,一个简单的方法是通过作为每个条目选项传递,明确说明最佳开放存取 URL 是 DOI 。

@article{Bossert:788839,
  author     = {Bossert, Lukas C.},
  title      = {Mit »biber --tool« Bibliografieeinträge bearbeiten},
  journaltitle = {Die TEXnische Komödie},
  year       = {2020},
  options    = {openaccess=doi},
  doi        = {10.5281/zenodo.3784922},
  location   = {Heidelberg},
  pages      = {24--33},
  publisher  = {DANTE},
  volume     = {2}
}

在全

\documentclass[british]{article}
\usepackage{babel}
\usepackage{csquotes}

\usepackage[backend=biber, style=numeric]{biblatex}
\usepackage[doiapi=true, symbolpackage=tikz, symbol=oanet]{biblatex-ext-oa}
% symbol=oanet gives an the open access symbol from
% open-access.net (https://open-access.net/),
% logo by
% Medien + Design
% Center for Digital Systems
% Competence Center for E-Learning and Multimedia
% Freie Universität Berlin
% CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/)
\ExecuteBibliographyOptions{openaccess=doiapi}

\SetDOIAPIMail{[email protected]}

\usepackage{kantlipsum}
\usepackage[colorlinks]{hyperref}

\begin{filecontents*}{\jobname.bib}
% this article is open access at the source
@article{valfort,
  author   = {Valfort, Aurore-Cécile and Launay, Caroline and Sémon, Marie
              and Delattre, Marie},
  title    = {Evolution of mitotic spindle behavior during the first
              asymmetric embryonic division of nematodes},
  journal  = {PLOS Biology},
  date     = {2018-01},
  volume   = {16},
  number   = {1},
  pages    = {1-23},
  doi      = {10.1371/journal.pbio.2005099},
}
% has open access version on Harvard DASH
@article{kucsko,
  author   = {G. Kucsko and P. C. Maurer and N. Y. Yao and M. Kubo
              and H. J. Noh and P. K. Lo and H. Park and M. D. Lukin},
  title    = {Nanometre-scale thermometry in a living cell},
  journal  = {Nature},
  volume   = {500},
  number   = {7460},
  pages    = {54--58},
  doi      = {10.1038/nature12373},
  date     = {2013},
}
% has open access version on the arXiv
@article{randall,
  author   = {Lisa Randall and Raman Sundrum},
  title    = {Large Mass Hierarchy from a Small Extra Dimension},
  journal  = {Physical Review Letters},
  year     = {1999},
  volume   = {83},
  number   = {17},
  pages    = {3370--3373},
  doi      = {10.1103/physrevlett.83.3370},
}
% second open access at HAL
@article{abiakle,
  author     = {Abi Akle, Audrey and Stéphanie Minel and Bernard Yannou},
  title      = {Information visualization for selection in Design by Shopping},
  journal    = {Research in Engineering Design},
  volume     = {28},
  number     = {1},
  year       = {2017},
  pages      = {99--117},
  doi        = {10.1007/s00163-016-0235-2},
}
@article{Bossert:788839,
  author     = {Bossert, Lukas C.},
  title      = {Mit »biber --tool« Bibliografieeinträge bearbeiten},
  journaltitle = {Die TEXnische Komödie},
  year       = {2020},
  options    = {openaccess=doi},
  doi        = {10.5281/zenodo.3784922},
  location   = {Heidelberg},
  pages      = {24--33},
  publisher  = {DANTE},
  volume     = {2}
}
\end{filecontents*}

\addbibresource{\jobname.bib}
\begin{document}
\kant[1]
\nocite{*}
\printbibliography
\end{document}

所有条目均带有开放存取符号的参考书目。


另一种方法是通过字段设置(使用开放访问检测启发式方法)在openaccess=doiapi,本地禁用相关条目。openaccess=auto,options

请注意,由于字段注释的特定语法,字段openaccess的注释doi必须包含。=

所以我们最终会得到

@article{Bossert:788839,
  author     = {Bossert, Lukas C.},
  title      = {Mit »biber --tool« Bibliografieeinträge bearbeiten},
  journaltitle = {Die TEXnische Komödie},
  year       = {2020},
  options    = {openaccess=auto},
  doi        = {10.5281/zenodo.3784922},
  doi+an     = {=openaccess},
  location   = {Heidelberg},
  pages      = {24--33},
  publisher  = {DANTE},
  volume     = {2}
}

在全

\documentclass[british]{article}
\usepackage{babel}
\usepackage{csquotes}

\usepackage[backend=biber, style=numeric]{biblatex}
\usepackage[doiapi=true, symbolpackage=tikz, symbol=oanet]{biblatex-ext-oa}
% symbol=oanet gives an the open access symbol from
% open-access.net (https://open-access.net/),
% logo by
% Medien + Design
% Center for Digital Systems
% Competence Center for E-Learning and Multimedia
% Freie Universität Berlin
% CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/)
\ExecuteBibliographyOptions{openaccess=doiapi}

\SetDOIAPIMail{[email protected]}

\usepackage{kantlipsum}
\usepackage[colorlinks]{hyperref}

\begin{filecontents*}{\jobname.bib}
% this article is open access at the source
@article{valfort,
  author   = {Valfort, Aurore-Cécile and Launay, Caroline and Sémon, Marie
              and Delattre, Marie},
  title    = {Evolution of mitotic spindle behavior during the first
              asymmetric embryonic division of nematodes},
  journal  = {PLOS Biology},
  date     = {2018-01},
  volume   = {16},
  number   = {1},
  pages    = {1-23},
  doi      = {10.1371/journal.pbio.2005099},
}
% has open access version on Harvard DASH
@article{kucsko,
  author   = {G. Kucsko and P. C. Maurer and N. Y. Yao and M. Kubo
              and H. J. Noh and P. K. Lo and H. Park and M. D. Lukin},
  title    = {Nanometre-scale thermometry in a living cell},
  journal  = {Nature},
  volume   = {500},
  number   = {7460},
  pages    = {54--58},
  doi      = {10.1038/nature12373},
  date     = {2013},
}
% has open access version on the arXiv
@article{randall,
  author   = {Lisa Randall and Raman Sundrum},
  title    = {Large Mass Hierarchy from a Small Extra Dimension},
  journal  = {Physical Review Letters},
  year     = {1999},
  volume   = {83},
  number   = {17},
  pages    = {3370--3373},
  doi      = {10.1103/physrevlett.83.3370},
}
% second open access at HAL
@article{abiakle,
  author     = {Abi Akle, Audrey and Stéphanie Minel and Bernard Yannou},
  title      = {Information visualization for selection in Design by Shopping},
  journal    = {Research in Engineering Design},
  volume     = {28},
  number     = {1},
  year       = {2017},
  pages      = {99--117},
  doi        = {10.1007/s00163-016-0235-2},
}
% no open access that I know of
@article{Bossert:788839,
  author     = {Bossert, Lukas C.},
  title      = {Mit »biber --tool« Bibliografieeinträge bearbeiten},
  journaltitle = {Die TEXnische Komödie},
  year       = {2020},
  options    = {openaccess=auto},
  doi        = {10.5281/zenodo.3784922},
  doi+an     = {=openaccess},
  location   = {Heidelberg},
  pages      = {24--33},
  publisher  = {DANTE},
  volume     = {2}
}
\end{filecontents*}

\addbibresource{\jobname.bib}
\begin{document}
\kant[1]
\nocite{*}
\printbibliography
\end{document}

所有条目均带有开放获取符号的参考书目

相关内容