diff --git a/apps/red-ui/src/app/screens/file/file-preview-screen/file-preview-screen.component.html b/apps/red-ui/src/app/screens/file/file-preview-screen/file-preview-screen.component.html index f91642ffa..dd611a74e 100644 --- a/apps/red-ui/src/app/screens/file/file-preview-screen/file-preview-screen.component.html +++ b/apps/red-ui/src/app/screens/file/file-preview-screen/file-preview-screen.component.html @@ -34,7 +34,8 @@
-
+
Quick Navigation
@@ -62,7 +63,8 @@
-
+
Annotations
@@ -73,10 +75,10 @@ attr.annotation-page="{{annotation.getPageNumber()}}" (click)="selectAnnotation(annotation)" [ngClass]="{ active: selectedAnnotation === annotation }"> -
{{annotation.Id}}
-
Page {{annotation.getPageNumber()}}
-
{{annotation.getContents()}}
-
{{annotation.getStatus()}}
+
Type: {{getType(annotation.Id)}}
+
Dictionary: {{getDictionary(annotation.Id)}}
+
Page: {{annotation.getPageNumber()}}
+
Content: {{annotation.getContents()}}
diff --git a/apps/red-ui/src/app/screens/file/file-preview-screen/file-preview-screen.component.ts b/apps/red-ui/src/app/screens/file/file-preview-screen/file-preview-screen.component.ts index 16c85ef7b..29941a22e 100644 --- a/apps/red-ui/src/app/screens/file/file-preview-screen/file-preview-screen.component.ts +++ b/apps/red-ui/src/app/screens/file/file-preview-screen/file-preview-screen.component.ts @@ -221,14 +221,23 @@ export class FilePreviewScreenComponent implements OnInit { } } + getType(id: string) { + const parts = id.split(':'); + return parts.length >= 1 ? parts[0] : 'n/a'; + } + + getDictionary(id: string) { + const parts = id.split(':'); + return parts.length >= 2 ? parts[1] : 'n/a'; + } } -(function() { +(function () { // @ts-ignore if (!Element.prototype.scrollIntoViewIfNeeded) { // @ts-ignore - Element.prototype.scrollIntoViewIfNeeded = function(centerIfNeeded) { + Element.prototype.scrollIntoViewIfNeeded = function (centerIfNeeded) { centerIfNeeded = arguments.length === 0 ? true : !!centerIfNeeded; const parent = this.parentNode,