diff --git a/pwa/src/templates/publicationDetail/PublicationsDetailTemplate.tsx b/pwa/src/templates/publicationDetail/PublicationsDetailTemplate.tsx index 2fa597c6b..92e49cf35 100644 --- a/pwa/src/templates/publicationDetail/PublicationsDetailTemplate.tsx +++ b/pwa/src/templates/publicationDetail/PublicationsDetailTemplate.tsx @@ -18,7 +18,6 @@ import { } from "@utrecht/component-library-react/dist/css-module"; import { Container, - InfoCard, Tabs, TabList, Tab, @@ -28,16 +27,13 @@ import { HorizontalOverflowWrapper, } from "@conduction/components"; import { navigate } from "gatsby"; -import { IconExternalLink, IconArrowLeft, IconArrowRight } from "@tabler/icons-react"; +import { IconExternalLink, IconArrowLeft } from "@tabler/icons-react"; import { useTranslation } from "react-i18next"; import { Table, TableBody, TableCell, TableRow } from "@utrecht/component-library-react/dist/css-module"; import { QueryClient } from "react-query"; import { useComponent } from "../../hooks/components"; -import { RatingIndicatorTemplate } from "../templateParts/ratingIndicator/RatingIndicatorTemplate"; import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; import { - faMinus, - faArrowDown, faArrowLeft, faCircle, faGear, @@ -56,12 +52,11 @@ import { DependenciesTemplate } from "../templateParts/dependenciesTemplates/Com import { useResultDisplayLayoutContext } from "../../context/resultDisplayLayout"; import { ComponentCardsAccordionTemplate } from "../templateParts/componentCardsAccordion/ComponentCardsAccordionTemplate"; import { DownloadTemplate } from "../templateParts/download/DownloadTemplate"; -import { RatingOverview } from "../templateParts/ratingOverview/RatingOverview"; import { IDisplaySwitchButton } from "@conduction/components/lib/components/displaySwitch/DisplaySwitch"; import { ExpandableLeadParagraph } from "../../components/expandableLeadParagraph/ExpandableLeadParagraph"; import { TOOLTIP_ID } from "../../layout/Layout"; import { getStatusColor } from "../../services/getStatusColor"; -import { ApplicationCard, ComponentCard } from "../../components"; +import { ComponentCard } from "../../components"; import { getCommongroundRating } from "../../services/getCommongroundRating"; import { CommongroundRatingGold, @@ -85,14 +80,11 @@ export const PublicationsDetailTemplate: React.FC { tabsRef.current.scrollIntoView({ behavior: "smooth", inline: "start" }); @@ -117,9 +109,6 @@ export const PublicationsDetailTemplate: React.FC { const _maintenanceType = maintenanceTypes.find((__maintenanceType) => { @@ -129,18 +118,12 @@ export const PublicationsDetailTemplate: React.FCSomething went wrong...; const organisation = _getPublication?.data?.data?.organization; - const application = _getComponent?.data?.embedded?.applicationSuite; - const applicationComponent = getApplicationComponent?.data?.results[0]; - - const [isMetaDataVisible, setMetaDataIsVisible] = React.useState(false); const imageHasValidSource = (src: string): boolean => { try { @@ -188,8 +171,6 @@ export const PublicationsDetailTemplate: React.FC { switch (rating) { case 0: @@ -606,7 +587,7 @@ export const PublicationsDetailTemplate: React.FC
- {t("MetaData")} + MetaData {t("Organization")}
@@ -660,86 +641,7 @@ export const PublicationsDetailTemplate: React.FC{t("No organization found")} )} - {/* - {(ratingFilter === "OpenCatalogi" || ratingFilter === "false") && ( - <> - {_getPublication.data?.data?.embedded?.rating && ( - <> - - - { - e.preventDefault(), openModal(() => show()); - }} - href={`${_getPublication.data?.data?.id}/?openratingpopup`} - > - - - - {t("Rating")} - - - - )} - {!rating &&
{t("No rating available")}
} - - )} - {ratingFilter === "Commonground" && ( - <> -
- {getCommongroundImage( - _getPublication.data?.data?.embedded?.nl?.embedded?.commonground?.rating ?? "0", - )} -
- - )} - - } - layoutClassName={clsx(styles.infoCard, ratingFilter === "Commonground" && styles.infoCardCommonground)} - /> */} - {/* {isVisible && ( -
- } - primaryButton={{ - label: t("Score calculation"), - handleClick: () => { - navigate("/documentation/about#score-calculation"); - }, - }} - secondaryButton={{ - label: t("Close"), - icon: , - href: `${_getPublication.data?.data?.id}`, - handleClick: () => ({}), - }} - layoutClassName={styles.popup} - /> -
- )} */} {(_getPublication.data?.data?.embedded?.dependsOn?.embedded?.open || getConfigComponents.data?.results?.length > 0 ||