' + msg.content + catalogButtonHtml + '
').show(); } if (url.indexOf("family") >= 0 && ((url.indexOf("ProductTypeDisplayTitle") >= 0 && type == "GemsProductType") || (url.indexOf("SeriesDisplayTitle") >= 0 && type == "ProductSeries"))) { $('.heirarchyInfo').show(); } } }); } var buildFacet = function (facet, family, preselected) { if (facet.Options) { var facetOptions = facet.Options; facetOptions.sort(function (a, b) { if (a.Name > b.Name) { return 1; } if (b.Name > a.Name) { return -1; } return 0; }); } let facetName = facet.Name; let facetKey = facet.Key; let selector = "#psFacets"; if (config[family].facets.includes(facetKey) || facetKey == "SeriesDisplayTitle" || facetKey == "ProductTypeDisplayTitle" || facetKey == "ApplicationNames" || facetKey == "IndustryNames" || preselected) { if (facetKey == "SeriesDisplayTitle") { selector = "#psSeries"; } if (facetKey == "ProductTypeDisplayTitle") { selector = "#psProductType"; } if (facetKey == "ApplicationNames" || facetKey == "IndustryNames") { selector = "#psCategories"; } if (!preselected) { $(selector).append(function () { let elem = $('
'); let elemLabel = $(''); let selelem = $('