Skip to content

Commit

Permalink
Changed texts and the html structure of the new links
Browse files Browse the repository at this point in the history
  • Loading branch information
ra-catrine committed Jul 10, 2024
1 parent b45af71 commit d249d7c
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 30 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -445,24 +445,29 @@ const DownloadDialogue = ({
manifestId + "_" + imageId
);
return (
<div>
<>
<h2>{content.ocrFiles}</h2>
{Strings.format(content.currentViewAsAlto)} (
<a href={currentAsXmlUrl}>{content.xml}</a>,{" "}
<a href={currentAsZippedXml}>{content.zip}</a>)
<br />
{Strings.format(content.currentViewAsText)} (
<a href={currentAsText}>{content.text}</a>,{" "}
<a href={currentAsZippedText}>{content.zip}</a>)
<br />
{Strings.format(content.currentDocumentAsAlto)} (
<a href={volumeAsZippedXml}>{content.zip}</a>
)
<br />
{Strings.format(content.currentDocumentAsText)} (
<a href={volumeAsZippedText}>{content.zip}</a>
)
</div>
<ol className="options">
<li className="option single">
{Strings.format(content.currentViewAsAlto)} (
<a href={currentAsXmlUrl}>{content.xml}</a>,{" "}
<a href={currentAsZippedXml}>{content.zip}</a>)
</li>
<li className="option single">
{Strings.format(content.currentViewAsText)} (
<a href={currentAsText}>{content.text}</a>,{" "}
<a href={currentAsZippedText}>{content.zip}</a>)
</li>
<li className="option single">
{Strings.format(content.currentDocumentAsAlto)} (
<a href={volumeAsZippedXml}>{content.zip}</a>)
</li>
<li className="option single">
{Strings.format(content.currentDocumentAsText)} (
<a href={volumeAsZippedText}>{content.zip}</a>)
</li>
</ol>
</>
);
}

Expand Down Expand Up @@ -672,11 +677,6 @@ const DownloadDialogue = ({
</button>
</li>
)}
{isDownloadOptionAvailable(DownloadOption.CURRENT_IMAGE_AS_OCR) && (
<li className="option single">
<OcrLabels />
</li>
)}
{isDownloadOptionAvailable(DownloadOption.RANGE_RENDERINGS) && (
<RangeRenderings />
)}
Expand All @@ -687,6 +687,9 @@ const DownloadDialogue = ({
<CanvasRenderings />
)}
</ol>
{isDownloadOptionAvailable(DownloadOption.CURRENT_IMAGE_AS_OCR) && (
<OcrLabels />
)}
{(hasManifestRenderings() ||
isDownloadOptionAvailable(DownloadOption.SELECTION)) && (
<h2>{content.allPages}</h2>
Expand Down
8 changes: 4 additions & 4 deletions src/locales/en-GB.json
Original file line number Diff line number Diff line change
Expand Up @@ -163,10 +163,10 @@
"$reset": "Reset",
"$remember": "Remember my settings",
"$ocrFiles": "OCR/HTR Files",
"$currentViewAsAlto": "Current view as Alto",
"$currentViewAsText": "Current view as text",
"$currentDocumentAsAlto": "Current document as Alto",
"$currentDocumentAsText": "Current document as text",
"$currentViewAsAlto": "Current page as Alto",
"$currentViewAsText": "Current page as text",
"$currentDocumentAsAlto": "Current item as Alto",
"$currentDocumentAsText": "Current item as text",
"$xml": "xml",
"$text": "text",
"$zip": "zip"
Expand Down
8 changes: 4 additions & 4 deletions src/locales/sv-SE.json
Original file line number Diff line number Diff line change
Expand Up @@ -163,10 +163,10 @@
"$reset": "Återställ",
"$remember": "Kom ihåg mina inställningar",
"$ocrFiles": "OCR/HTR-filer",
"$currentViewAsAlto": "Aktuell vy som Alto",
"$currentViewAsText": "Aktuell vy som text",
"$currentDocumentAsAlto": "Aktuellt dokument som Alto",
"$currentDocumentAsText": "Aktuellt dokument som text",
"$currentViewAsAlto": "Aktuell sida som Alto",
"$currentViewAsText": "Aktuell sida som text",
"$currentDocumentAsAlto": "Aktuellt objekt som Alto",
"$currentDocumentAsText": "Aktuellt objekt som text",
"$xml": "xml",
"$text": "text",
"$zip": "zip"
Expand Down

0 comments on commit d249d7c

Please sign in to comment.