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