From debd8665459600a14c448a0689b06de1ddf30207 Mon Sep 17 00:00:00 2001 From: devlinjd Date: Sat, 21 Nov 2015 03:11:18 -0500 Subject: [PATCH] Adjust date references. --- src/core/convert.js | 2 +- src/core/fresh-resume.js | 12 +++++++----- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/src/core/convert.js b/src/core/convert.js index 4ae1a95..f16aafc 100644 --- a/src/core/convert.js +++ b/src/core/convert.js @@ -210,7 +210,7 @@ FRESH to JSON Resume conversion routiens. awards: src.recognition.map(function(awd){ return { - flavor: foreign ? awd.type : undefined, + flavor: foreign ? awd.flavor : undefined, url: foreign ? awd.url: undefined, title: awd.title, date: awd.date, diff --git a/src/core/fresh-resume.js b/src/core/fresh-resume.js index f5f702c..fafe024 100644 --- a/src/core/fresh-resume.js +++ b/src/core/fresh-resume.js @@ -284,12 +284,14 @@ Definition of the FRESHResume class. end: _fmt( vol.end || 'current' ) }; }); - // this.awards && this.awards.forEach( function(awd) { - // awd.safeDate = _fmt( awd.date ); - // }); - this.publications && this.publications.forEach( function(pub) { + this.recognition && this.recognition.forEach( function(rec) { + rec.safe = { + date: _fmt( rec.date ) + }; + }); + this.writing && this.writing.forEach( function(pub) { pub.safe = { - date: _fmt( pub.year ) + date: _fmt( pub.date ) }; }); }