0

as stated in the title I have a problem with biblatex. If the year is empty, it shows the date given in the urldate entry, instead of showing n.d..

@online{Pizza,
 author = {Treccani},
 title = {Pizza},
 url = {https://www.treccani.it/vocabolario/pizza},
 urldate = {2022-01-01}
}

The code above outputs:

  • Treccani (2022). Pizza. [...]

I would like instead:

  • Treccani (n.d.). Pizza. [...]
Gibif
  • 27
  • 1
    Remove urldate from the labeldate definition. See https://tex.stackexchange.com/q/126584/35864. – moewe Aug 03 '22 at 04:02
  • Hi @moewe thanks for the reply. I tried the solution above but it doesn't work quite well. If the year is given it shows n.d. and push the date after the title of the reference. For example:

    @online{Schrag2008, author = {Schrag, J.}, title = {Taking Aim: The Power of User Experience Goals}, year = {2008}, url = {https://uxpamagazine.org/taking_aim_ux_goals/}, urldate = {2022-07-20} }

    It outputs:

    • Schrag, J. (n.d.). Taking Aim: The Power of User Experience Goals. 2008. url:

    https://uxpamagazine.org/taking_aim_ux_goals/ (visitato il 20/07/2022) (cit. a p. 23)

    – Gibif Aug 03 '22 at 07:28

1 Answers1

2

The default labeldate definition (ll. 1385-1392 of biblatex.def) looks as follows

\DeclareLabeldate{%
  \field{date}
  \field{year}
  \field{eventdate}
  \field{origdate}
  \field{urldate}
  \literal{nodate}
}

and takes urldate into account.

If you don't want that, add the following to your preamble

\DeclareLabeldate{%
  \field{date}
  \field{year}
  \field{eventdate}
  \field{origdate}
  \literal{nodate}
}
moewe
  • 175,683