CHIELDOnline / CHIELD

10 stars 3 forks source link

Submission fails when there's no `year` in bibtex #102

Closed SimonGreenhill closed 6 years ago

SimonGreenhill commented 6 years ago

I'm getting this error when trying to add data:

"There may be an error with the submission, please check data and try again."

Here's the causal link:

"Var1","Relation","Var2","Cor","Topic","Stage","Type","Confirmed","Notes","bibref"
"parasite prevalence",">","language diversity","pos","","language change","statistical","yes","the worldwide distribution of indigenous human language diversity, a form of biodiversity, is strongly, positively related to human parasite diversity indicative of a legacy of parasite‐mediated diversification","doi:10.1111/j.0030-1299.2008.16684.x"

Here's the bibtex:

@article{doi:10.1111/j.0030-1299.2008.16684.x,
author = {Corey L. Fincher and Randy Thornhill},
title = {A parasite‐driven wedge: infectious diseases may explain language and other biodiversity},
journal = {Oikos},
volume = {117},
number = {9},
pages = {1289-1297},
doi = {10.1111/j.0030-1299.2008.16684.x},
url = {https://onlinelibrary.wiley.com/doi/abs/10.1111/j.0030-1299.2008.16684.x},
eprint = {https://onlinelibrary.wiley.com/doi/pdf/10.1111/j.0030-1299.2008.16684.x},
abstract = {Parasite–host coevolutionary races are spatially variable across species’ or human cultural ranges. Assortative sociality, biased toward local conspecifics, and limited dispersal (philopatry) in humans and other organisms can be adaptive through reduced contact with dangerous contagions harbored by distant/non‐local conspecifics. These factors can generate cultural or population divergence. Thus, parasites are like a wedge driving groups apart through their effective creation of anticontagion behaviors. If this proposition is correct, then biological diversity should positively correlate with parasite diversity. Here we show that the worldwide distribution of indigenous human language diversity, a form of biodiversity, is strongly, positively related to human parasite diversity indicative of a legacy of parasite‐mediated diversification. The significant pattern remains when potential confounds are removed. The pattern too is seen in each of the six world regions and is not confounded by regional differences in their history of colonization and conquest. We hypothesize that variation in limited dispersal and assortative sociality with conspecifics in response to the worldwide spatial variation in pathogen diversity provides a fundamental mechanism of population divergence explaining many important aspects of the geographic patterns of biodiversity. This hypothesis has broad implications for a diversity of research topics including language diversity, cultural evolution, speciation, phylogeny and biogeography.}
}
SimonGreenhill commented 6 years ago

Ahh. It didn't like that this (official, downloaded from the journal) bibtex file didn't have a year field. The javascript renderer didn't flag it and I didn't spot the "n.d.". Adding the year field works.

Either your bibtex renderer needs to flag entries without years, or (better I think, as n.d.'s can occur), have some handling of them in the filing backend