2

The dateaccessed column won't appear in my .bib file on Overleaf when I import it with Mendeley.

I am using both the web app and desktop version of Mendeley. I tried to go View - Citation style - More styles... and changing the "include URLs and Date accessed in Bibliographies" setting from "For all document types" to "only for webpages". But toggling this setting did not change anything.

When I chose "copy as BibTeX entry" on a reference in Mendeley where the date is registered; the info in the Date Accessed column is included as the entry "urldate". But I can't find the column anywhere in my .bib-file on Overleaf.

I'm importing biblatex like this

\usepackage[style=nature,isbn=false,doi=true,sorting=none]{biblatex}

The image below shows that there is info in the "Data Accessed" column in Mendeley, but the information is not transferred to the .bib file overleaf imports from Mendeley. The Mendeley program clearly has a "Date Accessed" column that is filled. But the info does not appear in the .bib file imported from mendeley

5
  • Hello there! Tom from Overleaf Support Team here. Can you please reach me on Overleaf support email address, so that we can see what's going on there? Then if it's something worth sharing with others, I will make an answer here. Thanks!
    – yo'
    Dec 2, 2019 at 14:32
  • I'm not sure if you are asking about the dateaccessed field actually appearing in your .bib file or about the access date appearing in the bibliography output produced by biblatex. If it's the latter you should note that dateaccessed is not a field known by standard biblatex, so if you want to have an access date you need to remap it to urldate and need to make sure that the input is in the right format (IISO 8601).
    – moewe
    Dec 2, 2019 at 17:19
  • @moewe I saw that my original question was not clear enough and edited it. The problem is that the info in the "Date Accessed" field is not transferred when I import the .bib file to overleaf through Mendeley. If I were to chose "copy as bibtext entry" in Mendely, the info in "Date Accessed" field is copied as "urldate". Dec 3, 2019 at 11:08
  • I see. In that case that is not a biblatex issue but a general Mendeley/Overleaf exporting issue, so I removed the tag.
    – moewe
    Dec 3, 2019 at 17:14
  • I'm having the same issue.
    – OscarVanL
    Jan 7, 2021 at 17:01

3 Answers 3

4

I have now been in contact with both Overleaf and Mendeley support. It seems like the Mendeley API does not provide all the fields that are expected and @urldate is one of them. It also seems like Mendeley is not prioritizing to fix this any time soon.

Fortunately, with the help of overleaf support team, I did find a solution to the problem.

One of the fields that are provided is "publications", which is transferred to the .bib file as @booktitle. Since most webpages don't have book titles, this can be exploited by copy-pasting the date accessed into the "publications" field and using BibLaTeX-settings that displays the @booktitle field for @misc entries.

2
  • wow I am having the same problem and this makes Mendeley pretty much useless for me. do you have a link to a bugreport or any follow up on this?
    – Yush0
    Feb 25, 2020 at 2:50
  • Can you give an example of how to change the BibLaTeX settings to display booktitle for misc?
    – OscarVanL
    Jan 7, 2021 at 17:12
3

Based on the answer of Aslak Todal:

One of the fields that are provided is "publications", which is transferred to the .bib file as @booktitle. Since most webpages don't have book titles, this can be exploited by copy-pasting the date accessed into the "publications" field and using BibLaTeX-settings that displays the @booktitle field for @misc entries.

I used the following Latex-Code to change the BibLaTeX-display settings for @misc - @booktitle essentially using this code:

\DeclareBibliographyDriver{misc}{%
    % ...
    \printfield{booktitle}%
    % ...
    \finentry
}

In the Mendeley Publication section I entered e.g. "Last accessed: Jan. 1, 2077"


more extensive example:

\DeclareFieldFormat[misc]{title}{\mkbibquote{#1}}  % show title in quotes
\DeclareBibliographyDriver{misc}{%
    \printnames{author}%
    \newunit%
    \printfield{title}%
    \newunit%
    \printfield{url}%
    \newunit%
    \printfield{booktitle}%  display booktitle or last-accessed for websites
    \newunit%
    \printfield{issn}%
    \newunit%
    \printfield{doi}%
    \finentry
}
0

I just found a way to have "date access" in reference for online sources like websites and add it to .bib file. I opened the .bib file in LaTeX (I'm using TeXstudio), and in the field "year", just typed:

year = {Accessed: Dec. 15, 2015},
1
  • Welcome to this place.
    – MS-SPO
    Jul 28, 2022 at 12:32

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .