From 821471504549770d485cd016e304cfcc7959aeb6 Mon Sep 17 00:00:00 2001 From: milanmajchrak <90026355+milanmajchrak@users.noreply.github.com> Date: Tue, 27 Feb 2024 14:43:59 +0100 Subject: [PATCH 1/8] Fix all mistakes in the /home page (#529) * Fix Catalogue message in the header navbar to Catalog * The Lindat icon in the header must be stored in our assets, not from the current lindat page * Do not redirect to /home page after click on lindat icon in the navbar * Downloaded clarin icons instead of fetching them from lindat page. Changed routerLink to absolute https://lindat.mff.cuni.cz/ path. * The user is redirected to the search page after click on Enter - only if there is some value in the input. * After click on Lindat icon on the navbar menu the user will be redirected into /home page for better develoment using * Override the search classes for the home page from the global styles because ::ng-deep is deprecated * Our custom search is replaced by vanilla search component * Added `Description` translation into clarin-item-box-view.component * The item name should be underscored in the item-view-box.component * The space should not be in the author string before `;` separator * Show correct message if the item contains one file. * Added `and` translation into authors in the item-view-box.component * Added `Show everyone` translation into authors in the item-view-box.component * Do not cut links in the fast search in the home page * Updated fast search links to be correctly responsive * Removed unused css class * Added `... View More` browsing filter button * Do not redirect to home page after click on `Please help, I cannot find my provider` in the discojuice * Added RSS feed button to the home page * Show image for every item type in the item view box * Do not overlay text on the item type icon * View More message in the fast search should be in the new row * Item view box already show more than 20 files info * Fixed linting mistake - import breadcrumbs --- src/aai/discojuice/discojuice.js | 2 +- src/app/home-page/home-page.component.html | 41 +++++++++++++----- src/app/home-page/home-page.component.scss | 7 +-- src/app/home-page/home-page.component.ts | 11 +++++ .../clarin-item-author-preview.component.html | 16 ++++--- .../clarin-item-box-view.component.html | 15 ++++--- .../clarin-item-box-view.component.scss | 3 +- .../clarin-item-box-view.component.ts | 20 ++++++++- src/assets/i18n/cs.json5 | 12 +++++ src/assets/i18n/en.json5 | 15 ++++++- .../images/LINDAT-CLARIAH-cz-gray_0.svg | 26 +++++++++++ src/assets/images/clarin.png | Bin 0 -> 10074 bytes src/assets/images/dariah-eu.png | Bin 0 -> 23385 bytes src/assets/images/item-types/Software.png | Bin 0 -> 14655 bytes .../item-types/application-x-zerosize.png | Bin 0 -> 4562 bytes src/assets/images/item-types/cite.png | Bin 0 -> 3392 bytes src/assets/images/{ => item-types}/corpus.png | Bin src/assets/images/item-types/deposit.png | Bin 0 -> 4744 bytes .../images/item-types/evaluationPackage.png | Bin 0 -> 13005 bytes src/assets/images/item-types/glass.png | Bin 0 -> 16147 bytes .../images/item-types/languageDescription.png | Bin 0 -> 4218 bytes .../item-types/lexicalConceptualResource.png | Bin 0 -> 16578 bytes .../item-types/technologyToolService.png | Bin 0 -> 22516 bytes src/assets/images/item-types/toolService.png | Bin 0 -> 17559 bytes src/styles/_clarin-styles.scss | 19 ++++++++ .../dspace/app/header/header.component.html | 8 ++-- 26 files changed, 158 insertions(+), 37 deletions(-) create mode 100644 src/assets/images/LINDAT-CLARIAH-cz-gray_0.svg create mode 100644 src/assets/images/clarin.png create mode 100644 src/assets/images/dariah-eu.png create mode 100644 src/assets/images/item-types/Software.png create mode 100644 src/assets/images/item-types/application-x-zerosize.png create mode 100644 src/assets/images/item-types/cite.png rename src/assets/images/{ => item-types}/corpus.png (100%) create mode 100644 src/assets/images/item-types/deposit.png create mode 100644 src/assets/images/item-types/evaluationPackage.png create mode 100644 src/assets/images/item-types/glass.png create mode 100644 src/assets/images/item-types/languageDescription.png create mode 100644 src/assets/images/item-types/lexicalConceptualResource.png create mode 100644 src/assets/images/item-types/technologyToolService.png create mode 100644 src/assets/images/item-types/toolService.png diff --git a/src/aai/discojuice/discojuice.js b/src/aai/discojuice/discojuice.js index 821562e0848..4fd1397fcb4 100644 --- a/src/aai/discojuice/discojuice.js +++ b/src/aai/discojuice/discojuice.js @@ -33,7 +33,7 @@ d+" entries listed"))},error:function(a){console.log("error"+a);this.popu DiscoJuice.Dict.helpMore),h=this.parent.Utils.options.get("subtitle",null),c='";var f=this,d=$("body");this.parent.Utils.options.get("useTarget",!1)&&(d=this.parent.Utils.options.get("target",d));/*console.log("Target is");console.log(d);*/this.parent.Utils.options.get("overlay",!0)&&(/*console.log("DiscoJuice Enable: adding overlay"),*/$('').appendTo($("body")));this.popup=$(c).appendTo(d); var that = this; diff --git a/src/app/home-page/home-page.component.html b/src/app/home-page/home-page.component.html index c628e8eed9b..e2369764747 100644 --- a/src/app/home-page/home-page.component.html +++ b/src/app/home-page/home-page.component.html @@ -47,13 +47,16 @@