client/public/elements/pages/works/rp-page-works.js
/**
   * @method _getFacets
   * @description load and render the current overview works facet list
   * and sub facets from the CollectionModel
   * 
   */
@method _getFacets
@description load and render the current overview works facet list
and sub facets from the CollectionModel
@method _getFacets @description load and render the current overview works facet list and sub facets from the CollectionModel
async _getFacets() {
    let activeFilters = {};
    let kwargs = {}
    if (this.currentQuery.subjectFilter) kwargs.subjectFilter = this.currentQuery.subjectFilter;
    let facetAggs = await this.CollectionModel.overview('worksAggs', kwargs);
    this.subFacetStatus = facetAggs.state;
    if (facetAggs.state != 'loaded') {
      return;
    }
    this.subFacets = this.CollectionModel._getSubFacets(facetAggs.payload, this.currentQuery);
  }
async _getFacets ( ) { let activeFilters = { } ; let kwargs = { } if ( this . currentQuery . subjectFilter ) kwargs . subjectFilter = this . currentQuery . subjectFilter ; let facetAggs = await this . CollectionModel . overview ( 'worksAggs' , kwargs ) ; this . subFacetStatus = facetAggs . state ; if ( facetAggs . state != 'loaded' ) { return ; } this . subFacets = this . CollectionModel . _getSubFacets ( facetAggs . payload , this . currentQuery ) ; }
@method _getFacets
 @description load and render the current overview works facet list
 and sub facets from the CollectionModel
@method _getFacets @description load and render the current overview works facet list and sub facets from the CollectionModel
//console.log("peopleaggs", peopleAggs);