From 15f01d5e3752d8dda460b7236483c25e5f4eb458 Mon Sep 17 00:00:00 2001 From: Georgy Litvinov Date: Tue, 28 Sep 2021 18:10:46 +0200 Subject: [PATCH] Added buttons to remove document from search results --- .../freemarker/body/search/search-pagedResults.ftl | 1 + webapp/src/main/webapp/themes/iph/css/iph.css | 13 +++++++++++++ .../webapp/themes/iph/i18n/all_ru_RU.properties | 2 +- .../webapp/themes/iph/templates/queryBuilder.ftl | 5 ++++- 4 files changed, 19 insertions(+), 2 deletions(-) diff --git a/webapp/src/main/webapp/templates/freemarker/body/search/search-pagedResults.ftl b/webapp/src/main/webapp/templates/freemarker/body/search/search-pagedResults.ftl index 8b37e2ef..ac3161f4 100644 --- a/webapp/src/main/webapp/templates/freemarker/body/search/search-pagedResults.ftl +++ b/webapp/src/main/webapp/templates/freemarker/body/search/search-pagedResults.ftl @@ -235,6 +235,7 @@ } }); } + createRemoveButtons(); } diff --git a/webapp/src/main/webapp/themes/iph/css/iph.css b/webapp/src/main/webapp/themes/iph/css/iph.css index 66a0f6f3..637c7189 100644 --- a/webapp/src/main/webapp/themes/iph/css/iph.css +++ b/webapp/src/main/webapp/themes/iph/css/iph.css @@ -3511,6 +3511,19 @@ label.switch >.collapseTextControl >img { text-decoration: none; cursor: pointer; } + +.removeDocFromSearch { + border-inline-width: thin; + border-top-width: thin; + border-bottom-width: thin; + border-color: #8B4513; + border-inline-style: solid; + border-top-style: solid; + border-bottom-style: solid; + margin-left: 0.4em; + padding: 0.0em 0.2em 0.1em 0.2em; +} + /* -------------------------------------------------> */ /* FONTS --------------------------------> */ /* -------------------------------------------------> */ diff --git a/webapp/src/main/webapp/themes/iph/i18n/all_ru_RU.properties b/webapp/src/main/webapp/themes/iph/i18n/all_ru_RU.properties index 67434d96..ae45b193 100644 --- a/webapp/src/main/webapp/themes/iph/i18n/all_ru_RU.properties +++ b/webapp/src/main/webapp/themes/iph/i18n/all_ru_RU.properties @@ -106,4 +106,4 @@ organizer_role = Organizer Role faculty_memberships = Faculty Memberships edit_mailing_address = Edit Mailing Address add_capitalized = Add - +remove_doc_from_search_results=Удалить из результатов поиска diff --git a/webapp/src/main/webapp/themes/iph/templates/queryBuilder.ftl b/webapp/src/main/webapp/themes/iph/templates/queryBuilder.ftl index 66900a10..681d3719 100644 --- a/webapp/src/main/webapp/themes/iph/templates/queryBuilder.ftl +++ b/webapp/src/main/webapp/themes/iph/templates/queryBuilder.ftl @@ -219,7 +219,10 @@ var name = button.textContent; var a = document.createElement('a'); a.setAttribute('href',"javascript:excludeDocByURI(\'" + escapeQutes(name) + "\',\'" + escapeQutes(uri) + "\');"); - a.textContent = " Удалить документ из поиска"; + a.setAttribute('class',"removeDocFromSearch"); + + a.textContent = "${i18n().remove_doc_from_search_results}" ; + button.appendChild(a); }