%[result.title]
+|
- %[result.raw.author]
From ec8b8c25ba84f3875d8ea4ef65bade17d90db544 Mon Sep 17 00:00:00 2001
From: Cody Foss Page not found | Page introuvable gDg!C{15}AMjc(W!}){Bon&eB
zJ~zG%YD5~yi8u1gNPlTg<3H5jD$a(tS)1gbl{&p7Ri57HN&a7z!D%ziif#tEKu_9R
zK%CqJTb(YF|1XXgB_0Mf#i_1H1qJ-WAWrQxCI7E35jO46W|i>_>J;lE3IV*$`b*N`
zZ8lP#ye!tg?Yhm%kN;<*?R#H&?>K%t$b0Z~d{CD@DZD$gkY5|Q)8)g*JDfj!EaEkW
z=khvpb9pUIaY4hUA_LyJ?dy5rE4Q6DzR%~kUm2-LSw2{r0dKR@Rk85ePF2SJ`2O8m
z4wML_c>q@s;8U_uG%*>)#fwML+UgUuUHj3ut5=V{T)XDl%S{_T`PO0M7~0xR;JWow
zxPIep+`Rb?x;Rf^ZDA?@Y+VwZ(x;H6zG2Mg6lhZ_p;fMd7Kw~}SPxAy1wGTi(TaRf
zrImS^m|XsT(V{E3WXV-rw)9h6w)|6EzG4h5SKdIIRo8Ki?MUi-c>Pw#q2s)t@(5gb;OK&MIpEm9>Iw8hY;&7o&%Xpw25S*!p>`XOkP
zs-dey4ebi)CeD7tEfbTgXl`y~FJCc=D=n{~jm>pjy=Dy8uDy This is a demo site for the GC Search UI. To properly test pages below, such as getting results back from the search engine, please make sure you have a valid token. Please refer to the README documentation to get more information on the GC Search UI. - %[highlightedExcerpt] - %[highlightedExcerpt] Aucun résultat ne correspond à vos critères de recherche. Suggestions : No pages were found that match your search terms. Suggestions: L'équipe chargée de rétablir les services touchés travaille de façon à résoudre le problème aussi rapidement que possible. Nous vous prions de nous excuser pour tout inconvénient. A resolution for the restoration is presently being worked. We apologize for any inconvenience. Rechercher plutôt ? Did you mean ? %[result.raw.description] | ${isFr ? 'Filtres' : 'Filters'}
+ Expected output for the result section
+Output for Results section
+ [To be completed, see Connector.js for reference until then]
+ / Government of Canada
+
+
+
+
+
Recherche
+
+
+
+ 404
+Détails de la page
+
+ / Gouvernement du Canada
+
+
+
+
+
Search
+
+
+
+ Search user interface (UI) with Headless
+Working examples
+
+Before you test
+ Regular pages
+
+
+
+Advanced tests
+
+
+
+Page details
+
+%[result.title]
+
+ %[result.breadcrumb]
+ %[result.title]
+
+ %[result.breadcrumb]
+ Aucun résultat
+
+
+ No results
+
+
+ Nous éprouvons actuellement des problèmes avec la fonction de recherche sur le site Web Canada.ca
+ The Canada.ca Search is currently experiencing issues
+ %[numberOfResults] résultats de recherche pour "%[query]"
`;
+ }
+ else {
+ querySummaryTemplateHTML =
+ `%[numberOfResults] search results for "%[query]"
`;
+ }
+ }
+
+ if ( !didYouMeanTemplateHTML ) {
+ if ( lang === "fr" ) {
+ didYouMeanTemplateHTML =
+ `%[numberOfResults] résultats de recherche
`;
+ }
+ else {
+ noQuerySummaryTemplateHTML =
+ `%[numberOfResults] search results
`;
+ }
+ }
+
+ if ( !previousPageTemplateHTML ) {
+ if ( lang === "fr" ) {
+ previousPageTemplateHTML =
+ `Expected output for the result section
+Output for Results section
+ [To be completed, see Connector.js for reference until then]
+Page details
+
+Sélection de la langue
+
+
+ / Government of Canada
+
+
+
+
+
+
+ Interface utilisateur de la recherche avancée d'actualités
+
+
+%[result.title]
+
| %[result.raw.disp_declared_type]
%[result.raw.description]
+ + + + +Effectuer une recherche avancée
+ + +Effectuer une recherche avancée
+ + +Effectuer une recherche avancée
+ + +– %[highlightedExcerpt]
+Did you mean
Nothing seems to match your search terms. Suggestions:
+We apologize for any inconvenience caused by this issue. You may try to refresh the page.
+Results pages
+Page not found | Page introuvable
-Please refer to the README documentation to get more information on the GC Search UI.
diff --git a/netlify/src/connector.css b/netlify/src/connector.css index a7205fb..680a94c 100644 --- a/netlify/src/connector.css +++ b/netlify/src/connector.css @@ -79,6 +79,7 @@ left: 0; } -.gc-date-pickers .form-control { +.gc-date-pickers .form-control, +.gc-facet-search { width: 100%; } diff --git a/netlify/src/connector.js b/netlify/src/connector.js index 408ead4..de5e390 100644 --- a/netlify/src/connector.js +++ b/netlify/src/connector.js @@ -80,6 +80,7 @@ let facetControllers = []; let facetStates = []; let dateFilterControllers = []; let dateFilterStates = []; +let facetSearchTimers = []; // UI states let updateSearchBoxFromState = false; @@ -406,7 +407,7 @@ function initTpl() {Try this out! Click on the following link to search for "Taxes" with the search results ordered by dates descending, instead of relevance.
- -Note: Current implementation of the sorting feature requires server-side code or additional custom JS to make dynamic with the search query.
-Effectuer une recherche avancée
- - -|
%[result.raw.description]
-|
%[result.raw.description]
-Effectuer une recherche avancée
- - -Effectuer une recherche avancée
- - -Effectuer une recherche avancée
- - -– %[highlightedExcerpt]
-Did you mean
Nothing seems to match your search terms. Suggestions:
-We apologize for any inconvenience caused by this issue. You may try to refresh the page.
-Results pages
-