diff --git a/img/mimetypes/cleaned.png b/img/mimetypes/cleaned.png deleted file mode 100644 index 4a77504..0000000 Binary files a/img/mimetypes/cleaned.png and /dev/null differ diff --git a/js/config.js b/js/config.js index b7f8db2..5ecbfde 100644 --- a/js/config.js +++ b/js/config.js @@ -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", diff --git a/js/views/resultRow.html b/js/views/resultRow.html index 3b46524..47f454e 100644 --- a/js/views/resultRow.html +++ b/js/views/resultRow.html @@ -22,6 +22,9 @@

{{#if quality}} {{fixQuality quality.rate}}% {{/if}} + {{#ifEquals mimetype "text/cleaned"}} + cleaned + {{/ifEquals}} {{~/fulltext}} diff --git a/less/istex/main.less b/less/istex/main.less index d3ef88e..494998d 100644 --- a/less/istex/main.less +++ b/less/istex/main.less @@ -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;