- @if (activeDisplayFields.includes(DisplayField.ASN)) { - | ASN | - } - @if (activeDisplayFields.includes(DisplayField.CORRESPONDENT) && permissionService.currentUserCan(PermissionAction.View, PermissionType.Correspondent)) { -Correspondent | - } - @if (activeDisplayFields.includes(DisplayField.TITLE)) { -Title | - } - @if (activeDisplayFields.includes(DisplayField.TAGS) && !activeDisplayFields.includes(DisplayField.TITLE)) { -Tags | - } - @if (activeDisplayFields.includes(DisplayField.OWNER) && permissionService.currentUserCan(PermissionAction.View, PermissionType.User)) { -Owner | - } - @if (activeDisplayFields.includes(DisplayField.NOTES) && notesEnabled) { -Notes | - } - @if (activeDisplayFields.includes(DisplayField.DOCUMENT_TYPE) && permissionService.currentUserCan(PermissionAction.View, PermissionType.DocumentType)) { -Document type | - } - @if (activeDisplayFields.includes(DisplayField.STORAGE_PATH) && permissionService.currentUserCan(PermissionAction.View, PermissionType.StoragePath)) { -Storage path | - } - @if (activeDisplayFields.includes(DisplayField.CREATED)) { -Created | - } - @if (activeDisplayFields.includes(DisplayField.ADDED)) { -Added | - } - @if (activeDisplayFields.includes(DisplayField.SHARED)) { -- Shared - | - } - @for (field of activeDisplayCustomFields; track field) { -- {{getDisplayCustomFieldTitle(field)}} - | - } - - - @for (d of list.documents; track trackByDocumentId($index, d)) { -||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
-
-
-
-
- |
- @if (activeDisplayFields.includes(DisplayField.ASN)) {
-
- {{d.archive_serial_number}}
+
+
|
+ }
+ @if (activeDisplayFields.includes(DisplayField.TITLE) || activeDisplayFields.includes(DisplayField.TAGS)) {
+
+ @if (activeDisplayFields.includes(DisplayField.TITLE)) {
+ {{d.title | documentTitle}}
+ }
+ @if (activeDisplayFields.includes(DisplayField.TAGS)) {
+ @for (t of d.tags$ | async; track t) {
+ |
+ }
+ @if (activeDisplayFields.includes(DisplayField.OWNER) && permissionService.currentUserCan(PermissionAction.View, PermissionType.User)) {
+ + {{d.owner | username}} + | + } + @if (activeDisplayFields.includes(DisplayField.NOTES) && notesEnabled) { +
+ @if (d.notes.length) {
+
+
+ |
+ }
+ @if (activeDisplayFields.includes(DisplayField.DOCUMENT_TYPE) && permissionService.currentUserCan(PermissionAction.View, PermissionType.DocumentType)) {
+ + @if (d.document_type) { + {{(d.document_type$ | async)?.name}} + } + | + } + @if (activeDisplayFields.includes(DisplayField.STORAGE_PATH) && permissionService.currentUserCan(PermissionAction.View, PermissionType.StoragePath)) { ++ @if (d.storage_path) { + {{(d.storage_path$ | async)?.name}} + } + | + } + @if (activeDisplayFields.includes(DisplayField.CREATED)) { ++ {{d.created_date | customDate}} + | + } + @if (activeDisplayFields.includes(DisplayField.ADDED)) { ++ {{d.added | customDate}} + | + } + @if (activeDisplayFields.includes(DisplayField.SHARED)) { +
+ @if (d.is_shared_by_requester) { |
+ }
+ @for (field of activeDisplayCustomFields; track field) {
+
+ |
+ }
+