2021-08-23 11:30:42 +01:00
|
|
|
import { Pipe, PipeTransform } from '@angular/core';
|
|
|
|
|
import { Publication } from 'src/app/models/publication';
|
|
|
|
|
|
|
|
|
|
@Pipe({
|
|
|
|
|
name: 'publication'
|
|
|
|
|
})
|
|
|
|
|
export class PublicationPipe implements PipeTransform {
|
|
|
|
|
|
|
|
|
|
transform(value: unknown, ...args: unknown[]): unknown {
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
|
2023-08-24 22:15:56 +01:00
|
|
|
itemList(element): Publication {
|
2021-08-23 11:30:42 +01:00
|
|
|
return {
|
|
|
|
|
"DateIndex": element.DateIndex,
|
|
|
|
|
"DocumentId":element.DocumentId,
|
|
|
|
|
"ProcessId":element.ProcessId,
|
|
|
|
|
"Title":element.Title,
|
|
|
|
|
"Message": element.Message,
|
|
|
|
|
"DatePublication": element.DatePublication,
|
|
|
|
|
/* image:itemImage, */
|
2023-11-29 12:17:52 +01:00
|
|
|
"Files": element.Files,
|
2023-08-24 22:15:56 +01:00
|
|
|
"OriginalFileName": element.OriginalFileName,
|
|
|
|
|
"FileExtension": element.FileExtension,
|
|
|
|
|
"OrganicEntityId": element.OrganicEntityId,
|
2021-08-23 11:30:42 +01:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|