client/public/elements/pages/work/rp-page-work.js
/**
   * @method _doAuthorQuery
   * @description Performs primary browse/search query for the work model based on url path and parameters
   * to get the authors for the works
   * 
   * @param {String} id
   * @param {Object} authors
   */
@method _doAuthorQuery
@description Performs primary browse/search query for the work model based on url path and parameters
to get the authors for the works

@param {String} id
@param {Object} authors
@method _doAuthorQuery @description Performs primary browse / search query for the work model based on url path and parameters to get the authors for the works @param { String } id @param { Object } authors
async _doAuthorQuery(id, authors) {
    this.universityAuthors = [];
    let universityAuthors = [];
    for( let type in authors ) {
      universityAuthors = [... universityAuthors, ...authors[type]
        .filter(author => author._client.aggieExpertsAuthor === true)
        .map(a => a._client.apiEndpoint)
      ];
    }
    if( universityAuthors.length === 0 ) {
      this.universityAuthorsStatus = 'none-found';
      return;
    }
    let data = await this.WorkModel.getAuthorsFullObject(id, universityAuthors);
    this.universityAuthorsStatus = data.state;
    if (data.state != 'loaded') return;
    if (Array.isArray(data.payload)) {
      universityAuthors = data.payload;
    }
    else {
      universityAuthors = [data.payload];
    }
    this.universityAuthors = universityAuthors;
  }
async _doAuthorQuery ( id , authors ) { this . universityAuthors = [ ] ; let universityAuthors = [ ] ; for ( let type in authors ) { universityAuthors = [ ... universityAuthors , ... authors [ type ] . filter ( author => author . _client . aggieExpertsAuthor === true ) . map ( a => a . _client . apiEndpoint ) ] ; } if ( universityAuthors . length === 0 ) { this . universityAuthorsStatus = 'none-found' ; return ; } let data = await this . WorkModel . getAuthorsFullObject ( id , universityAuthors ) ; this . universityAuthorsStatus = data . state ; if ( data . state != 'loaded' ) return ; if ( Array . isArray ( data . payload ) ) { universityAuthors = data . payload ; } else { universityAuthors = [ data . payload ] ; } this . universityAuthors = universityAuthors ; }
@method _doAuthorQuery
 @description Performs primary browse/search query for the work model based on url path and parameters
 to get the authors for the works
@method _doAuthorQuery @description Performs primary browse / search query for the work model based on url path and parameters to get the authors for the works
// don't render