From: Stephanie Leary Date: Mon, 9 Jan 2023 19:46:53 +0000 (-0600) Subject: LP1970946 Less intense search result highlights X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=4753ecb02506efeceb164f8b8224e19f80ee9ac4;p=working%2FEvergreen.git LP1970946 Less intense search result highlights Lowers the contrast on search result match highlights, and changes the highlight tag from (PostgreSQL's default) to (new in HTML5). Signed-off-by: Stephanie Leary Signed-off-by: Jane Sandberg --- diff --git a/Open-ILS/src/eg2/src/app/share/catalog/bib-display-field.component.css b/Open-ILS/src/eg2/src/app/share/catalog/bib-display-field.component.css index f4dfc111e5..bd8aa4986a 100644 --- a/Open-ILS/src/eg2/src/app/share/catalog/bib-display-field.component.css +++ b/Open-ILS/src/eg2/src/app/share/catalog/bib-display-field.component.css @@ -1,11 +1,12 @@ .oils_SH { font-weight: bolder; - background-color: #99ff99; + background: #B4F8D3; + border-bottom: 1px solid #20C997; } .oils_SH.identifier { - font-weight: bolder; - background-color: #42b0f4; + background: #C4F0F8; + border-bottom: 1px solid #3DD5F3; } diff --git a/Open-ILS/src/sql/Pg/300.schema.staged_search.sql b/Open-ILS/src/sql/Pg/300.schema.staged_search.sql index 9533dcc80c..523e2868c2 100644 --- a/Open-ILS/src/sql/Pg/300.schema.staged_search.sql +++ b/Open-ILS/src/sql/Pg/300.schema.staged_search.sql @@ -999,7 +999,7 @@ BEGIN v_css_class := 'oils_SH'; END IF; - opts := opts || $$, StopSel=, StartSel=", StartSel=""$xx$ -- "' + ) AS highlight + FROM metabib.display_entry de + JOIN config.metabib_field mf ON (mf.id = de.field) + JOIN search.best_tsconfig t ON (t.id = de.field) + WHERE de.source = $2 + AND field = ANY ($3) + ORDER BY de.id;$$; + + RETURN QUERY EXECUTE hl_query USING opts, rid, v_field_list; +END; +$f$ LANGUAGE PLPGSQL; + +COMMIT;