Readded TSD link in Downloads page

This commit is contained in:
Carlos Felix 2024-12-20 17:36:59 -05:00 committed by Carlos Felix
commit 4f50fe5631
5 changed files with 37 additions and 21 deletions

View file

@ -60,7 +60,7 @@ export const DOWNLOAD_FILES = {
LAST_UPDATED: COMMON_COPY.METH_2_0_RELEASE_DATE,
},
TSD: {
SIZE: 4.4, // MB
SIZE: 79, // KB
URL: getDownloadFileUrl(process.env.GATSBY_FILE_DL_PATH_2_0_TSD_PDF),
LAST_UPDATED: COMMON_COPY.METH_2_0_RELEASE_DATE,
},
@ -210,22 +210,22 @@ export const DOWNLOAD_LINKS = {
/>,
}}
/>,
// <FormattedMessage
// id={'download.page.download.file.4'}
// key={'download.page.download.file.4'}
// defaultMessage={`<link4>Technical support document</link4> (.pdf {tsdFileSize})`}
// description={'Navigate to the download page. This is fourth download file link'}
// values={{
// link4: COMMON_COPY.linkFn(DOWNLOAD_FILES.NARWAL.TSD.URL, false, true),
// link4es: COMMON_COPY.linkFn(DOWNLOAD_FILES.NARWAL.TSD_ES.URL, false, true),
// tsdFileSize: <FormattedNumber
// value={DOWNLOAD_FILES.NARWAL.TSD.SIZE}
// style="unit"
// unit="megabyte"
// unitDisplay="narrow"
// />,
// }}
// />,
<FormattedMessage
id={'download.page.download.file.4'}
key={'download.page.download.file.4'}
defaultMessage={`<link4>Technical support document</link4> (.pdf {tsdFileSize})`}
description={'Navigate to the download page. This is fourth download file link'}
values={{
link4: COMMON_COPY.linkFn(DOWNLOAD_FILES.NARWAL.TSD.URL, false, true),
link4es: COMMON_COPY.linkFn(DOWNLOAD_FILES.NARWAL.TSD_ES.URL, false, true),
tsdFileSize: <FormattedNumber
value={DOWNLOAD_FILES.NARWAL.TSD.SIZE}
style="unit"
unit="kilobyte"
unitDisplay="narrow"
/>,
}}
/>,
<FormattedMessage
id={'download.page.download.file.5'}
key={'download.page.download.file.5'}

View file

@ -239,6 +239,10 @@
"defaultMessage": "<link3>Shapefile</link3> (Codebook included with shapefile {shapeFileSize} unzipped)",
"description": "Navigate to the download page. This is third download file link"
},
"download.page.download.file.4": {
"defaultMessage": "<link4>Technical support document</link4> (.pdf {tsdFileSize})",
"description": "Navigate to the download page. This is fourth download file link"
},
"download.page.download.file.5": {
"defaultMessage": "<link5>Instructions to Federal agencies on using the CEJST</link5> (.pdf {instructions})",
"description": "Navigate to the download page. This is sixth download file link"

View file

@ -570,6 +570,18 @@ exports[`rendering of the DatasetContainer checks if various text fields are vis
/>
(Codebook included with shapefile 356.8MB unzipped)
</p>
<p>
<a
class="usa-link usa-link--external"
data-cy=""
href="//"
rel="noreferrer"
target="_blank"
>
Technical support document
</a>
(.pdf 79kB)
</p>
<p>
<a
class="usa-link usa-link--external"