Skip to content

Commit

Permalink
feat(cleaned-fulltext): changed to cleaned fulltext icon to be the TX…
Browse files Browse the repository at this point in the history
…T icon with a banner saying "cleaned"
  • Loading branch information
ClementDreptin committed Oct 1, 2021
1 parent b2496b6 commit 21a13a6
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 1 deletion.
Binary file removed img/mimetypes/cleaned.png
Binary file not shown.
2 changes: 1 addition & 1 deletion js/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ define(["js/parameters.js"], function(parameters) {
"application/mods+xml": "mods",
"application/tei+xml": "tei",
"text/plain": "txt",
"text/cleaned": "cleaned",
"text/cleaned": "txt",
"image/jpeg": "jpg",
"text/ocr": "ocr",
"image/gif": "gif",
Expand Down
3 changes: 3 additions & 0 deletions js/views/resultRow.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ <h4 class='alert-success'>
{{#if quality}}
<i class="ocr-quality">{{fixQuality quality.rate}}%</i>
{{/if}}
{{#ifEquals mimetype "text/cleaned"}}
<i class="cleaned">cleaned</i>
{{/ifEquals}}
<img src='img/mimetypes/{{mimetypeIconName mimetype}}.png' title="{{mimetype}}">
</a> {{~/fulltext}}
</div>
Expand Down
5 changes: 5 additions & 0 deletions less/istex/main.less
Original file line number Diff line number Diff line change
Expand Up @@ -502,6 +502,11 @@ textarea {
margin-left: auto;
}

// Banner for cleaned fulltexts (same style as .ocr-quality, it's a separate class just for semantics)
.cleaned {
.ocr-quality();
}

// Pager
#topResultPager {
margin-bottom: 5px;
Expand Down

0 comments on commit 21a13a6

Please sign in to comment.