]> hydra-www.ietfng.org Git - mcv-academic/commitdiff
Added presentation entry type
authortjohnson250 <todd.r.johnson@uth.tmc.edu>
Sat, 15 Sep 2018 22:51:27 +0000 (17:51 -0500)
committertjohnson250 <todd.r.johnson@uth.tmc.edu>
Sat, 15 Sep 2018 22:51:27 +0000 (17:51 -0500)
cv.bbx
cv.dbx

diff --git a/cv.bbx b/cv.bbx
index a939f89b1e9f2a7c83419ad21b49119cfe018761..13649598b0d3e15638d8e09a154a439a8b9a338c 100644 (file)
--- a/cv.bbx
+++ b/cv.bbx
 
 \DeclareBibliographyAlias{cvmisc}{cventry}
 
+\DeclareBibliographyDriver{presentation}{%
+  \usebibmacro{bibindex}%
+  \usebibmacro{begentry}%
+  \ifnameundef{author}%
+    % if no author is given, print only the role
+    {\printmlfield{role}\newunit}%
+    {% else, print the author and the role in parenthesis, if the latter exists
+      \usebibmacro{author}
+      \ifmlfieldundef{role}{}%
+      {\mkbibparens{\printmlfield{role}}}%
+      \newunit%
+    }%
+  \printmlfield{title}%
+  \newunit%
+  \usebibmacro{funding-project}%
+  \setunit*{\addspace}%
+  \usebibmacro{period}%
+  \newunit%
+  \usebibmacro{projdate}%
+  \newunit%
+  \usebibmacro{note}% 
+  \usebibmacro{finentry}%
+}
+
 %-------------------------------------------------------------------------------
 % Formats
 %-------------------------------------------------------------------------------
diff --git a/cv.dbx b/cv.dbx
index 45e3a6c955d576ac08e047bb3dc62c7bc66545b7..85236c75558fe51f69c297d4f6e1939ab2c2e8f7 100644 (file)
--- a/cv.dbx
+++ b/cv.dbx
@@ -1,6 +1,6 @@
 \ProvidesFile{cv.dbx}
 
-\DeclareLocalizedDatamodelFields[type=field, datatype=literal]{level, period, title, organization, country, description, funding, role, note}
+\DeclareLocalizedDatamodelFields[type=field, datatype=literal]{level, period, title, organization, country, description, funding, role, note, type, eventtitle, location}
 
 \DeclareDatamodelFields[type=list, datatype=literal]{
   number%
   note,%
   level%
 }
+
+\DeclareLocalizedDatamodelEntryfields[presentation]{%
+  author,%
+  role,%
+  type,%
+  title,%
+  eventtitle,%
+  location,%
+  date,%
+  note%
+}