client/public/elements/components/ae-publication-list.js
/**
   * @method _loadPubs
   * @description Retrieves publications and adds them to the master publication object.
   * Attached to "Get More" buttons in the publication section of profile.
   *
   * @param {String} pubType - the id of the publication type to retrieve. i.e. article, conference-paper, etc
   * @param {Boolean} getMore - Have we already retrieved a few publications of this type?
   *
   * @returns {Promise}
   */
@method _loadPubs
@description Retrieves publications and adds them to the master publication object.
Attached to "Get More" buttons in the publication section of profile.

@param {String} pubType - the id of the publication type to retrieve.

@returns {Promise}
@method _loadPubs @description Retrieves publications and adds them to the master publication object . Attached to " Get More " buttons in the publication section of profile . @param { String } pubType - the id of the publication type to retrieve . @returns { Promise }
async _loadPubs(pubType, getMore=true){
    let offset = this.publicationOverview[pubType].displayedOffset;
    if (offset < 10) {
      offset = 10;
    }
    else if (!getMore) {
      offset -= 10;
    }
    this.publicationOverview[pubType].displayedOffset = getMore ? offset + 10 : offset;
    await this._doPubQuery(this.publicationOverview[pubType], offset);
  }
async _loadPubs ( pubType , getMore = true ) { let offset = this . publicationOverview [ pubType ] . displayedOffset ; if ( offset < 10 ) { offset = 10 ; } else if ( ! getMore ) { offset -= 10 ; } this . publicationOverview [ pubType ] . displayedOffset = getMore ? offset + 10 : offset ; await this . _doPubQuery ( this . publicationOverview [ pubType ] , offset ) ; }
@method _loadPubs
 @description Retrieves publications and adds them to the master publication object.
@method _loadPubs @description Retrieves publications and adds them to the master publication object .