summarizePromise(contribution, meta) {

    // console.log('summarizePromise');

    if (!contribution) {
      this._appendError(`Invalid contribution.`);
      return Promise.resolve();
    }

    this.contribution = contribution;
    this.json = {};
    this.reset();
    this._initProp(this.json, 'contribution', _.merge({ summary: { contribution: { data_model_version: _.last(versions) }}}, meta));

    return this._summarizeTables()
      .then(this._getCrossRefData.bind(this))
      .then(this._adoptChildTables.bind(this))
      .then(this._inheritParentTables.bind(this))
      .then(this._aggregateTables.bind(this))
      .then(this._consolidate.bind(this));

  }
// Return a promise for creating the summary
Return a promise for creating the summary
Return a promise for creating the summary
summarizePromise(contribution, meta) {
    if (!contribution) {
      this._appendError(`Invalid contribution.`);
      return Promise.resolve();
    }
    this.contribution = contribution;
    this.json = {};
    this.reset();
    this._initProp(this.json, 'contribution', _.merge({ summary: { contribution: { data_model_version: _.last(versions) }}}, meta));
    return this._summarizeTables()
      .then(this._getCrossRefData.bind(this))
      .then(this._adoptChildTables.bind(this))
      .then(this._inheritParentTables.bind(this))
      .then(this._aggregateTables.bind(this))
      .then(this._consolidate.bind(this));
  }
summarizePromise ( contribution , meta ) { if ( ! contribution ) { this . _appendError ( ` ` ) ; return Promise . resolve ( ) ; } this . contribution = contribution ; this . json = { } ; this . reset ( ) ; this . _initProp ( this . json , 'contribution' , _ . merge ( { summary : { contribution : { data_model_version : _ . last ( versions ) } } } , meta ) ) ; return this . _summarizeTables ( ) . then ( this . _getCrossRefData . bind ( this ) ) . then ( this . _adoptChildTables . bind ( this ) ) . then ( this . _inheritParentTables . bind ( this ) ) . then ( this . _aggregateTables . bind ( this ) ) . then ( this . _consolidate . bind ( this ) ) ; }
Return a promise for creating the summary
Return a promise for creating the summary
// console.log('summarizePromise');