fixed content of self-drawn annotations
This commit is contained in:
parent
4ae170a468
commit
819df0497c
@ -27,7 +27,7 @@ export class AnnotationWrapper {
|
|||||||
this.firstTopLeftPoint = redactionLogEntry.positions[0]?.topLeft;
|
this.firstTopLeftPoint = redactionLogEntry.positions[0]?.topLeft;
|
||||||
this.pageNumber = redactionLogEntry.positions[0]?.page;
|
this.pageNumber = redactionLogEntry.positions[0]?.page;
|
||||||
this.id = redactionLogEntry.id;
|
this.id = redactionLogEntry.id;
|
||||||
this.content = redactionLogEntry.reason;
|
this.content = this.createAnnotationContent(redactionLogEntry);
|
||||||
}
|
}
|
||||||
|
|
||||||
get manualRedactionOwner() {
|
get manualRedactionOwner() {
|
||||||
@ -42,9 +42,15 @@ export class AnnotationWrapper {
|
|||||||
return this.firstTopLeftPoint.y;
|
return this.firstTopLeftPoint.y;
|
||||||
}
|
}
|
||||||
|
|
||||||
// private String createAnnotationContent(Entity entity) {
|
private createAnnotationContent(entry: RedactionLogEntry) {
|
||||||
//
|
// return "\nRule " + entry.matchedRule + " matched\n\n" + entry.reason + "\n\nLegal basis:" + entry.legalBasis + "\n\nIn section: \"" + entry.section + "\"";
|
||||||
// return "\nRule " + entity.getMatchedRule() + " matched\n\n" + entity.getRedactionReason() + "\n\nLegal basis:" + entity
|
return (
|
||||||
// .getLegalBasis() + "\n\nIn section: \"" + entity.getHeadline() + "\"";
|
entry.reason +
|
||||||
// }
|
'\n\nLegal basis:' +
|
||||||
|
entry.legalBasis +
|
||||||
|
'\n\nIn section: "' +
|
||||||
|
entry.section +
|
||||||
|
'"'
|
||||||
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -15,6 +15,7 @@ export interface RedactionLogEntry {
|
|||||||
color?: Array<number>;
|
color?: Array<number>;
|
||||||
hint?: boolean;
|
hint?: boolean;
|
||||||
id?: string;
|
id?: string;
|
||||||
|
legalBasis?: string;
|
||||||
manual?: boolean;
|
manual?: boolean;
|
||||||
positions?: Array<Rectangle>;
|
positions?: Array<Rectangle>;
|
||||||
reason?: string;
|
reason?: string;
|
||||||
@ -25,7 +26,6 @@ export interface RedactionLogEntry {
|
|||||||
type?: string;
|
type?: string;
|
||||||
value?: string;
|
value?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export namespace RedactionLogEntry {
|
export namespace RedactionLogEntry {
|
||||||
export type StatusEnum = 'REQUESTED' | 'APPROVED' | 'DECLINED';
|
export type StatusEnum = 'REQUESTED' | 'APPROVED' | 'DECLINED';
|
||||||
export const StatusEnum = {
|
export const StatusEnum = {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user