client/public/src/models/CollectionModel.js
/**
   * @method _fmtSubFacetMenuObject
   * @description Utility method for formatting a subfacet for menu usage.
   * @param {Object} facet - A subfacet objet
   * @param {Object} counts - Type aggregations from a query payload
   * @param {Object} elementQuery - Current query so we can construct links
   * 
   * @returns {Object}
   */
@method _fmtSubFacetMenuObject
@description Utility method for formatting a subfacet for menu usage.
@param {Object} facet - A subfacet objet
@param {Object} counts - Type aggregations from a query payload
@param {Object} elementQuery - Current query so we can construct links

@returns {Object}
@method _fmtSubFacetMenuObject @description Utility method for formatting a subfacet for menu usage . @param { Object } facet - A subfacet objet @param { Object } counts - Type aggregations from a query payload @param { Object } elementQuery - Current query so we can construct links @returns { Object }
_fmtSubFacetMenuObject(facet, counts, elementQuery) {
    elementQuery.subFacet = facet.id;
    facet.href = this.constructUrl(elementQuery, ['page', 'az']);
    if (Object.keys(counts).includes(facet.es)){
      facet.text += ` (${counts[facet.es]})`;
      facet.ct = counts[facet.es];
    }
    else {
      facet.text += " (0)";
      facet.ct = 0;
      facet.disabled = true;
    }
    return facet;
  }
_fmtSubFacetMenuObject ( facet , counts , elementQuery ) { elementQuery . subFacet = facet . id ; facet . href = this . constructUrl ( elementQuery , [ 'page' , 'az' ] ) ; if ( Object . keys ( counts ) . includes ( facet . es ) ) { facet . text += ` ${ counts [ facet . es ] } ` ; facet . ct = counts [ facet . es ] ; } else { facet . text += " (0)" ; facet . ct = 0 ; facet . disabled = true ; } return facet ; }
@method _fmtSubFacetMenuObject
 @description Utility method for formatting a subfacet for menu usage.
@method _fmtSubFacetMenuObject @description Utility method for formatting a subfacet for menu usage .