]> hydra-www.ietfng.org Git - mcv-academic/commitdiff
bib: add hintcol to override date
authorNathaniel Wesley Filardo <nwfilardo@gmail.com>
Sat, 9 Nov 2019 19:54:52 +0000 (19:54 +0000)
committeradin <adin@ic.unicamp.br>
Tue, 7 Apr 2020 16:46:02 +0000 (13:46 -0300)
cv.bbx
cv.dbx

diff --git a/cv.bbx b/cv.bbx
index 8efa93ab60e902e395a0425fb666ffa154340eda..ef3e91a88e5dc5bd7b8871f91da66be3e89ad06f 100644 (file)
--- a/cv.bbx
+++ b/cv.bbx
@@ -43,9 +43,7 @@
 \DeclareBibliographyDriver{cventry}{%
   \usebibmacro{begentry}%
   \usebibmacro{cvitem}%
-  {% print the date or the list-of-dates
-    \usebibmacro{dates}%
-  }%
+  {\iffieldundef{hintcol}{\usebibmacro{range-date}}{\printfield{hintcol}}}%
   {%
     \ifnameundef{author}{}{\usebibmacro{author}\newunit}%
     \printmlfield{title}%
diff --git a/cv.dbx b/cv.dbx
index 9e98b8a4f089ae69d0bfec254fe563f5a2edb446..38aa278fa46c13870a69a458fe18b9330ca582fe 100644 (file)
--- a/cv.dbx
+++ b/cv.dbx
@@ -6,6 +6,9 @@
   number%
 }
 
+\DeclareDatamodelEntryfields{hintcol}
+\DeclareDatamodelFields[type=field, datatype=literal]{hintcol}
+
 \DeclareDatamodelFields[type=field, datatype=datepart]{
   year,%
   endyear,%