Open DavidLuptak opened 4 years ago
Maybe all this implementation is my work based on my own interpretation of the standard ISO 690 and also a minimalistic approach when creating a bib file. I admit it might be surprising how powerful the urldate
field is.
Reference https://github.com/michal-h21/biblatex-iso690/commit/eb193e8e0f06af5344918412b080b3dd3ef8be04.
To be honest, when I think again this chunk of code, I would add something more
\newbibmacro*{medium-type}{%
\iffieldundef{howpublished}
{% Automatic printing of '[online]' type of medium when
% a) 'urldate' is present AND
% b) 'url', 'doi' or 'eprint' is present AND
% c) url is enabled (pkg option url=true) OR
% entry type is '@online'
\ifboolexpr{
not test {\iffieldundef{urlyear}}
and ( not test {\iffieldundef{url}}
or not test {\iffieldundef{doi}}
or not test {\iffieldundef{eprint}})
and ( test {\iftoggle{bbx:url}}
or test {\ifentrytype{online}})
}
but this might be really an overkill.
I clarify the behaviour in the documentation at least, since I don't want to make some last-minute changes on my own, better to discuss them. The reporter of this issue (point n.4) and @moewew in https://github.com/michal-h21/biblatex-iso690/issues/80#issuecomment-602223588 agreed actually on one thing, and so that the printing of [online]
is somehow redundant. So maybe it is really worth to switch from this automatic machinery (creators of a bib file could save a line with howpublished = {online}
in their entries; intuitive for some and surprising for the others at the same time) to the explicit recording the howpublished
fields.