import { map } from 'lodash';

function parseL1ArticlePresenter(article) {
  return {
    identifier: article.doi,
    datePublished: article.published_date,
    title: article.title,
  }
}

export default function parseL1ArticlePresenters(articles) {
  return map(articles, parseL1ArticlePresenter);
}

import { map } from 'lodash';

function parseL1ArticlePresenter(article) {
  return {
    id: article.id,
    identifier: article.doi,
    datePublished: article.published_date,
    title: article.title,
  }
}

export default function parseL1ArticlePresenters(articles) {
  return map(articles, parseL1ArticlePresenter);
}

Add figshare ID to L1 presenter data
Add figshare ID to L1 presenter data
