2021-03-06 14:50:38 -08:00
< div class = "card mb-3 shadow-sm" [ class . card-selected ] = " selected " [ class . document-card ] = " selectable " [ class . popover-hidden ] = " popoverHidden " ( mouseleave ) = " mouseLeaveCard ( ) " >
2022-02-19 21:38:07 -08:00
< div class = "row g-0" >
< div class = "col-md-2 doc-img-background rounded-start" [ class . doc-img-background-selected ] = " selected " ( click ) = " this . toggleSelected . emit ( $ event ) " >
2022-02-20 01:21:30 +01:00
< img [ src ] = " getThumbUrl ( ) " class = "card-img doc-img border-end rounded-start" [ class . inverted ] = " getIsThumbInverted ( ) " >
2020-12-22 02:43:18 +01:00
2022-02-19 22:57:04 -08:00
< div class = "border-end border-bottom bg-light document-card-check" >
< div class = "form-check" >
< input type = "checkbox" class = "form-check-input" id = "smallCardCheck{{document.id}}" [ checked ] = " selected " ( click ) = " this . toggleSelected . emit ( $ event ) " >
< label class = "form-check-label" for = "smallCardCheck{{document.id}}" > < / label >
2020-12-22 02:43:18 +01:00
< / div >
< / div >
2020-10-27 01:10:18 +01:00
< / div >
< div class = "col" >
2020-12-28 16:52:51 -08:00
< div class = "card-body bg-light" >
2020-10-27 01:10:18 +01:00
2020-11-02 12:44:06 +01:00
< div class = "d-flex justify-content-between align-items-center" >
2020-12-11 15:20:47 -08:00
< h5 class = "card-title" >
2020-12-04 01:25:52 +01:00
< ng-container * ngIf = "document.correspondent" >
2022-03-27 00:08:08 -07:00
< a * ngIf = "clickCorrespondent.observers.length ; else nolink" title = "Filter by correspondent" i18n-title ( click ) = " clickCorrespondent . emit ( document . correspondent ) ; $ event . stopPropagation ( ) " class = "fw-bold btn-link" > {{(document.correspondent$ | async)?.name}}< / a >
2020-12-04 01:25:52 +01:00
< ng-template # nolink > {{(document.correspondent$ | async)?.name}}< / ng-template > :
2020-11-28 21:28:07 +01:00
< / ng-container >
2020-12-11 17:57:56 +01:00
{{document.title | documentTitle}}
2022-02-20 01:21:30 +01:00
< app-tag [ tag ] = " t " linkTitle = "Filter by tag" i18n-linkTitle * ngFor = "let t of document.tags$ | async" class = "ms-1" ( click ) = " clickTag . emit ( t . id ) ; $ event . stopPropagation ( ) " [ clickable ] = " clickTag . observers . length " > < / app-tag >
2020-11-28 21:28:07 +01:00
< / h5 >
2020-11-02 12:44:06 +01:00
< / div >
2020-10-27 01:10:18 +01:00
< p class = "card-text" >
2021-03-17 22:25:22 +01:00
< span * ngIf = "document.__search_hit__" [ innerHtml ] = " document . __search_hit__ . highlights " > < / span >
< span * ngIf = "!document.__search_hit__" class = "result-content" > {{contentTrimmed}}< / span >
2020-10-27 01:10:18 +01:00
< / p >
2021-01-09 19:52:31 -08:00
< div class = "d-flex flex-column flex-md-row align-items-md-center" >
2020-10-27 01:10:18 +01:00
< div class = "btn-group" >
2021-03-17 22:25:22 +01:00
< a class = "btn btn-sm btn-outline-secondary" ( click ) = " clickMoreLike . emit ( ) " >
2022-05-12 20:14:59 -07:00
< svg class = "sidebaricon" fill = "currentColor" class = "sidebaricon" >
< use xlink:href = "assets/bootstrap-icons.svg#diagram-3" / >
< / svg > < span class = "d-none d-md-inline" i18n > More like this< / span >
2020-12-17 21:36:21 +01:00
< / a >
2022-05-15 23:25:46 -07:00
< a ( click ) = " openDocumentsService . openDocument ( document ) " class = "btn btn-sm btn-outline-secondary" >
2022-05-12 20:14:59 -07:00
< svg class = "sidebaricon" fill = "currentColor" class = "sidebaricon" >
< use xlink:href = "assets/bootstrap-icons.svg#pencil" / >
< / svg > < span class = "d-none d-md-inline" i18n > Edit< / span >
2020-10-27 01:10:18 +01:00
< / a >
2022-04-19 21:47:49 +02:00
< a class = "btn btn-sm btn-outline-secondary" target = "_blank" [ href ] = " previewUrl "
2021-03-06 14:50:38 -08:00
[ngbPopover]="previewContent" [popoverTitle]="document.title | documentTitle"
autoClose="true" popoverClass="shadow" (mouseenter)="mouseEnterPreview()" (mouseleave)="mouseLeavePreview()" #popover="ngbPopover">
2022-05-12 20:14:59 -07:00
< svg class = "sidebaricon" fill = "currentColor" class = "sidebaricon" >
< use xlink:href = "assets/bootstrap-icons.svg#eye" / >
< / svg > < span class = "d-none d-md-inline" i18n > View< / span >
2020-11-28 14:50:14 +01:00
< / a >
2021-02-24 13:02:26 -08:00
< ng-template # previewContent >
2022-03-22 22:01:46 -07:00
< object [ data ] = " previewUrl | safeUrl " class = "preview" width = "100%" > < / object >
2021-02-24 13:02:26 -08:00
< / ng-template >
2021-01-08 22:09:15 -08:00
< a class = "btn btn-sm btn-outline-secondary" [ href ] = " getDownloadUrl ( ) " >
2022-05-12 20:14:59 -07:00
< svg class = "sidebaricon" fill = "currentColor" class = "sidebaricon" >
< use xlink:href = "assets/bootstrap-icons.svg#download" / >
< / svg > < span class = "d-none d-md-inline" i18n > Download< / span >
2020-10-27 01:10:18 +01:00
< / a >
< / div >
2020-12-18 14:09:12 +01:00
2022-02-20 01:21:30 +01:00
< div class = "list-group list-group-horizontal border-0 card-info ms-md-auto mt-2 mt-md-0" >
< button * ngIf = "document.document_type" type = "button" class = "list-group-item btn btn-sm bg-light text-dark p-1 border-0 me-2" title = "Filter by document type"
2021-03-12 06:54:22 -08:00
(click)="clickDocumentType.emit(document.document_type);$event.stopPropagation()">
2022-02-20 01:21:30 +01:00
< svg class = "metadata-icon me-2 text-muted bi bi-file-earmark" viewBox = "0 0 16 16" fill = "currentColor" >
2021-03-12 06:54:22 -08:00
< path d = "M14 4.5V14a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V2a2 2 0 0 1 2-2h5.5L14 4.5zm-3 0A1.5 1.5 0 0 1 9.5 3V1H4a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V4.5h-2z" / >
< / svg >
< small > {{(document.document_type$ | async)?.name}}< / small >
< / button >
2022-05-19 23:42:25 +02:00
< button * ngIf = "document.storage_path" type = "button" class = "list-group-item btn btn-sm bg-light text-dark p-1 border-0 me-2" title = "Filter by storage path"
(click)="clickStoragePath.emit(document.storage_path);$event.stopPropagation()">
< svg class = "metadata-icon me-2 text-muted bi bi-folder" viewBox = "0 0 16 16" fill = "currentColor" >
< path d = "M0 2a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1v2a1 1 0 0 1-1 1v7.5a2.5 2.5 0 0 1-2.5 2.5h-9A2.5 2.5 0 0 1 1 12.5V5a1 1 0 0 1-1-1V2zm2 3v7.5A1.5 1.5 0 0 0 3.5 14h9a1.5 1.5 0 0 0 1.5-1.5V5H2zm13-3H1v2h14V2zM5 7.5a.5.5 0 0 1 .5-.5h5a.5.5 0 0 1 0 1h-5a.5.5 0 0 1-.5-.5z" / >
< / svg >
< small > {{(document.storage_path$ | async)?.name}}< / small >
< / button >
2022-02-20 01:21:30 +01:00
< div * ngIf = "document.archive_serial_number" class = "list-group-item me-2 bg-light text-dark p-1 border-0" >
< svg class = "metadata-icon me-2 text-muted bi bi-upc-scan" viewBox = "0 0 16 16" fill = "currentColor" >
2021-03-12 06:54:22 -08:00
< path d = "M1.5 1a.5.5 0 0 0-.5.5v3a.5.5 0 0 1-1 0v-3A1.5 1.5 0 0 1 1.5 0h3a.5.5 0 0 1 0 1h-3zM11 .5a.5.5 0 0 1 .5-.5h3A1.5 1.5 0 0 1 16 1.5v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 0-.5-.5h-3a.5.5 0 0 1-.5-.5zM.5 11a.5.5 0 0 1 .5.5v3a.5.5 0 0 0 .5.5h3a.5.5 0 0 1 0 1h-3A1.5 1.5 0 0 1 0 14.5v-3a.5.5 0 0 1 .5-.5zm15 0a.5.5 0 0 1 .5.5v3a1.5 1.5 0 0 1-1.5 1.5h-3a.5.5 0 0 1 0-1h3a.5.5 0 0 0 .5-.5v-3a.5.5 0 0 1 .5-.5zM3 4.5a.5.5 0 0 1 1 0v7a.5.5 0 0 1-1 0v-7zm2 0a.5.5 0 0 1 1 0v7a.5.5 0 0 1-1 0v-7zm2 0a.5.5 0 0 1 1 0v7a.5.5 0 0 1-1 0v-7zm2 0a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v7a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5v-7zm3 0a.5.5 0 0 1 1 0v7a.5.5 0 0 1-1 0v-7z" / >
< / svg >
< small > #{{document.archive_serial_number}}< / small >
2021-03-12 19:35:25 -08:00
< / div >
2021-03-12 20:12:05 -08:00
< div class = "list-group-item bg-light text-dark p-1 border-0" ngbTooltip = "Added: {{document.added | customDate:'shortDate'}} Created: {{document.created | customDate:'shortDate'}}" >
2022-02-20 01:21:30 +01:00
< svg class = "metadata-icon me-2 text-muted bi bi-calendar-event" viewBox = "0 0 16 16" fill = "currentColor" >
2021-03-12 06:54:22 -08:00
< path d = "M11 6.5a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5v-1z" / >
< path d = "M3.5 0a.5.5 0 0 1 .5.5V1h8V.5a.5.5 0 0 1 1 0V1h1a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2h1V.5a.5.5 0 0 1 .5-.5zM1 4v10a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V4H1z" / >
< / svg >
< small > {{document.created | customDate:'mediumDate'}}< / small >
2021-03-12 19:35:25 -08:00
< / div >
2021-04-06 14:25:59 -07:00
2022-02-20 01:21:30 +01:00
< div * ngIf = "document.__search_hit__?.score" class = "list-group-item bg-light text-dark border-0 d-flex p-0 ps-4 search-score" >
2021-04-03 21:50:05 +02:00
< small class = "text-muted" i18n > Score:< / small >
< ngb-progressbar [ type ] = " searchScoreClass " [ value ] = " document . __search_hit__ . score " class = "search-score-bar mx-2 mt-1" [ max ] = " 1 " > < / ngb-progressbar >
< / div >
2021-01-09 19:52:31 -08:00
< / div >
2020-10-27 01:10:18 +01:00
< / div >
2020-12-28 14:20:00 -08:00
2020-10-27 01:10:18 +01:00
< / div >
< / div >
< / div >
2020-12-11 15:20:47 -08:00
< / div >