From: adin Date: Sun, 4 Sep 2016 22:33:52 +0000 (-0300) Subject: Patch the date range source map X-Git-Url: https://hydra-www.ietfng.org/gitweb/?a=commitdiff_plain;h=892e35e0f7b1cd94718132517afe79a3ee82943c;p=mcv-academic Patch the date range source map --- diff --git a/moderncvstyleacademic.sty b/moderncvstyleacademic.sty index 27413ee..16ce39a 100755 --- a/moderncvstyleacademic.sty +++ b/moderncvstyleacademic.sty @@ -164,11 +164,13 @@ \RequirePackage[backend=biber, citestyle=numeric-comp, bibstyle=multiple-dm, sorting=ymdtn, maxbibnames=99, defernumbers=true, giveninits=true, sortcites]{biblatex} % Patch endyears that are not declared +% http://tex.stackexchange.com/a/327884/7561 \DeclareSourcemap{ \maps[datatype=bibtex]{ \map{ - \step[fieldsource=year] - \step[fieldset=endyear, origfieldval] + \step[fieldsource=date, match=\regexp{\A([0-9]{4}-[0-9]{2}-[0-9]{2})\Z}, replace=\regexp{$1/$1}] + \step[fieldsource=date, match=\regexp{\A([0-9]{4}-[0-9]{2})\Z}, replace=\regexp{$1/$1}] + \step[fieldsource=date, match=\regexp{\A([0-9]{4})\Z}, replace=\regexp{$1/$1}] } } }