From caad9e3349ae40aa5aa8558647f29929529e3ccb Mon Sep 17 00:00:00 2001 From: Alex Martzios Date: Fri, 15 Apr 2022 16:32:14 +0300 Subject: [PATCH] add links to FOS items, changes on SDG json file and page --- explore/src/app/fos/fos.component.html | 47 +++++++++++++++++------- explore/src/app/openaireLibrary | 2 +- explore/src/app/sdg/sdg.component.css | 6 +++ explore/src/app/sdg/sdg.component.html | 32 +++++++++------- explore/src/assets/common-assets | 2 +- explore/src/assets/openaire-theme | 2 +- explore/src/assets/vocabulary/sdg.json | 51 +++++++++++++++++--------- 7 files changed, 94 insertions(+), 48 deletions(-) diff --git a/explore/src/app/fos/fos.component.html b/explore/src/app/fos/fos.component.html index c8afab55..63899aeb 100644 --- a/explore/src/app/fos/fos.component.html +++ b/explore/src/app/fos/fos.component.html @@ -36,7 +36,7 @@
Search results for '{{keyword}}'
- + {{keyword}} @@ -49,30 +49,38 @@
-

{{fos[index].id}}

+

+ + {{fos[index].id}} + +

-

{{child.id}}

+

+ + {{child.id}} + +

- {{subChild.id}} + + {{subChild.id}} +
@@ -86,11 +94,22 @@
-

+

+ + +

-

-
+

+ + +

+
+ +
diff --git a/explore/src/app/openaireLibrary b/explore/src/app/openaireLibrary index aa210384..d17f9b4d 160000 --- a/explore/src/app/openaireLibrary +++ b/explore/src/app/openaireLibrary @@ -1 +1 @@ -Subproject commit aa210384bc1df7b11595243096fd9fd5c8e01ae8 +Subproject commit d17f9b4d5c548a8f5f36cc7049f1b27ac23874d3 diff --git a/explore/src/app/sdg/sdg.component.css b/explore/src/app/sdg/sdg.component.css index 1126c1ad..ebd593ee 100644 --- a/explore/src/app/sdg/sdg.component.css +++ b/explore/src/app/sdg/sdg.component.css @@ -9,6 +9,12 @@ } .sdg-card { color: #F9F9F9 !important; + width: 265px; + height: 235px; +} +.sdg-card img { + height: 40px; + width: auto; } .sdg-1 { background-color: #E6233D; diff --git a/explore/src/app/sdg/sdg.component.html b/explore/src/app/sdg/sdg.component.html index e02a38a2..285dc97a 100644 --- a/explore/src/app/sdg/sdg.component.html +++ b/explore/src/app/sdg/sdg.component.html @@ -39,25 +39,29 @@
-
+
- +
-
-
- {{sdg.code}} +
+
+
+ {{sdg.code}} +
+
+ + +
-
- {{sdg.label}} -
-
-
-
+
-
- {{sdg.number == null ? '0' : sdg.number | number}} -

Research Items

+
+
+ {{sdg.number == null ? '0' : sdg.number | number}} +

Research Items

+
diff --git a/explore/src/assets/common-assets b/explore/src/assets/common-assets index fbbae041..cc271936 160000 --- a/explore/src/assets/common-assets +++ b/explore/src/assets/common-assets @@ -1 +1 @@ -Subproject commit fbbae0418315e06d6ce5a0d193fd08c8ea617b6b +Subproject commit cc2719364d8d553a8ea6585ff651b3858fc1d6a0 diff --git a/explore/src/assets/openaire-theme b/explore/src/assets/openaire-theme index 1200683a..0690007b 160000 --- a/explore/src/assets/openaire-theme +++ b/explore/src/assets/openaire-theme @@ -1 +1 @@ -Subproject commit 1200683a6b345f1b453859e3136e4df227c40fc8 +Subproject commit 0690007b7b3eb567b09b09c6f2968d5abc700cc9 diff --git a/explore/src/assets/vocabulary/sdg.json b/explore/src/assets/vocabulary/sdg.json index 9f588e71..4e682eea 100644 --- a/explore/src/assets/vocabulary/sdg.json +++ b/explore/src/assets/vocabulary/sdg.json @@ -3,82 +3,99 @@ { "code": "1", "id": "1. No poverty", - "label": "No poverty" + "label": "No poverty", + "html": "No
poverty" }, { "code": "2", "id": "2. Zero hunger", - "label": "Zero hunger" + "label": "Zero hunger", + "html": "Zero
hunger" },{ "code": "3", "id": "3. Good health", - "label": "Good health" + "label": "Good health", + "html": "Good
health" }, { "code": "4", "id": "4. Education", - "label": "Education" + "label": "Education", + "html": "Education" }, { "code": "5", "id": "5. Gender equality", - "label": "Gender equality" + "label": "Gender equality", + "html": "Gender
equality" },{ "code": "6", "id": "6. Clean water", - "label": "Clean water" + "label": "Clean water", + "html": "Clean
water" }, { "code": "7", "id": "7. Clean energy", - "label": "Clean energy" + "label": "Clean energy", + "html": "Clean
energy" }, { "code": "8", "id": "8. Economic growth", - "label": "Economic growth" + "label": "Economic growth", + "html": "Economic
growth" },{ "code": "9", "id": "9. Industry and infrastructure", - "label": "Industry and infrastructure" + "label": "Industry and infrastructure", + "html": "Industry and
infrastructure" }, { "code": "10", "id": "10. No inequality", - "label": "No inequality" + "label": "No inequality", + "html": "No
inequality" }, { "code": "11", "id": "11. Sustainability", - "label": "Sustainability" + "label": "Sustainability", + "html": "Sustainability" },{ "code": "12", "id": "12. Responsible consumption", - "label": "Responsible consumption" + "label": "Responsible consumption", + "html": "Responsible
consumption" }, { "code": "13", "id": "13. Climate action", - "label": "Climate action" + "label": "Climate action", + "html": "Climate
action" }, { "code": "14", "id": "14. Life underwater", - "label": "Life underwater" + "label": "Life underwater", + "html": "Life
underwater" },{ "code": "15", "id": "15. Life on land", - "label": "Life on land" + "label": "Life on land", + "html": "Life on
land" }, { "code": "16", "id": "16. Peace & justice", - "label": "Peace & justice" + "label": "Peace & justice", + "html": "Peace &
justice" }, { "code": "17", "id": "17. Partnership", - "label": "Partnership" + "label": "Partnership", + "html": "Partnership" } ] }