doi=only
我对这个选择很满意
如果 biblatex-chicago 中存在 DOI,则隐藏 URL
当 DOI 存在时隐藏 URL。但是,最近我开始有一些包含accessed
URL 字段的条目。这是一个不错的功能,因为有些期刊要求它与 URL 一起提供。
问题是该urldate
字段(打印为“accessed”)与 DOI 一起打印!我认为访问字段应该在 时被抑制doi=only
。我想这是我应该向 的维护者报告的事情,biblatex-chicago
但有没有快速的解决方法?
编辑:这是一个独立的例子:
\documentclass{article}
\begin{filecontents}{references.bib}
@article{SomePaper,
title = {Some title},
author = {Some Author},
year = {1975},
journal = {Journal of Something},
volume = {5},
number = {2},
pages = {300--325},
doi = {12.3456/abcdef-ghijkl},
url = {https://some.organization.com/non-existent.pdf},
urldate = {2021-10-14},
}
\end{filecontents}
\usepackage[doi=only]{biblatex-chicago}
\addbibresource{references.bib}
\begin{document}
\nocite{*}
\printbibliography
\end{document}
参考文献列表中显示了这样的文字:“10 月 14 日访问”。
附加信息:。我联系了 biblatex-chicago 的作者,他指出《芝加哥手册》中包含了带有“已访问”信息的 DOI 示例。经过深思熟虑,我认为这是有道理的,因为在某些学科中,逗号和拼写错误等小改动可能会造成影响。从这个意义上讲,DOI 对象不够稳定。在我们的领域(地球科学),DOI 被视为永久的,并且几乎从未为 DOI 提供“已访问”信息。
无论如何,biblatex-chicago 的维护者表示他/她会考虑添加另一个选项,也许doi=onlynd
,在打印 DOI 时抑制“已访问”。
答案1
该选项在内部doi=only,
设置了切换cms@doionly
,因此我们希望挂接到参考书目和引文中,并清除访问日期(urlyear
就足够了),如果该选项已启用并且有 DOI。
从概念上讲,下面的解决方案并不是最好的,但肯定是最直接的解决方案之一。
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[backend=biber, doi=only]{biblatex-chicago}
\AtEveryCitekey{%
\iftoggle{cms@doionly}
{\iffieldundef{doi}
{}
{\clearfield{urlyear}}}
{}%
}
\AtEveryBibitem{%
\iftoggle{cms@doionly}
{\iffieldundef{doi}
{}
{\clearfield{urlyear}}}
{}%
}
\begin{filecontents}{\jobname.bib}
@article{kastenholz1,
author = {Kastenholz, M. A. and Hünenberger, Philippe H.},
title = {Computation of methodology\hyphen independent ionic solvation free
energies from molecular simulations},
subtitle = {I. The electrostatic potential in molecular liquids},
journal = {Journal of Chemical Physics},
volume = {124},
eid = {124106},
date = {2006},
url = {https://aip.scitation.org/doi/10.1063/1.2172593},
urldate = {2006-10-01},
doi = {10.1063/1.2172593},
}
@article{kastenholz2,
author = {Kastenholz, M. A. and Hünenberger, Philippe H.},
title = {Computation of methodology\hyphen independent ionic solvation free
energies from molecular simulations},
subtitle = {I. The electrostatic potential in molecular liquids},
journal = {Journal of Chemical Physics},
volume = {124},
eid = {124106},
date = {2006},
doi = {10.1063/1.2172593},
}
@article{kastenholz3,
author = {Kastenholz, M. A. and Hünenberger, Philippe H.},
title = {Computation of methodology\hyphen independent ionic solvation free
energies from molecular simulations},
subtitle = {I. The electrostatic potential in molecular liquids},
journal = {Journal of Chemical Physics},
volume = {124},
eid = {124106},
date = {2006},
url = {https://aip.scitation.org/doi/10.1063/1.2172593},
urldate = {2006-10-01},
}
\end{filecontents}
\addbibresource{\jobname.bib}
\begin{document}
\nocite{*}
\printbibliography
\end{document}
答案2
现在,提供抑制“已访问”标签的biblatex-chicago
选项。doi=onlynd
我感谢作者 David Fussner。