2021-01-20 14:25:52 +01:00
< div class = "card mb-3 shadow-sm" [ class . card-selected ] = " selected " [ class . document-card ] = " selectable " >
2020-10-27 01:10:18 +01:00
< div class = "row no-gutters" >
2021-01-20 14:25:52 +01:00
< div class = "col-md-2 d-none d-lg-block doc-img-background rounded-left" [ class . doc-img-background-selected ] = " selected " ( click ) = " this . toggleSelected . emit ( $ event ) " >
2021-01-15 01:10:01 -08:00
< img [ src ] = " getThumbUrl ( ) " class = "card-img doc-img border-right rounded-left" >
2020-12-22 02:43:18 +01:00
< div style = "top: 0; left: 0" class = "position-absolute border-right border-bottom bg-light p-1" [ class . document-card-check ] = " ! selected " >
< div class = "custom-control custom-checkbox" >
2021-01-15 01:10:01 -08:00
< input type = "checkbox" class = "custom-control-input" id = "smallCardCheck{{document.id}}" [ checked ] = " selected " ( click ) = " this . toggleSelected . emit ( $ event ) " >
2020-12-22 02:43:18 +01:00
< label class = "custom-control-label" for = "smallCardCheck{{document.id}}" > < / label >
< / 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" >
2021-01-15 01:10:01 -08:00
< a * ngIf = "clickCorrespondent.observers.length ; else nolink" [ routerLink ] = " " title = "Filter by correspondent" i18n-title ( click ) = " clickCorrespondent . emit ( document . correspondent ) ; $ event . stopPropagation ( ) " class = "font-weight-bold" > {{(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}}
2021-01-15 01:10:01 -08:00
< app-tag [ tag ] = " t " linkTitle = "Filter by tag" i18n-linkTitle * ngFor = "let t of document.tags$ | async" class = "ml-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
< h5 class = "card-title" * ngIf = "document.archive_serial_number" > #{{document.archive_serial_number}}< / h5 >
< / div >
2020-10-27 01:10:18 +01:00
< p class = "card-text" >
2020-11-23 23:39:42 +01:00
< app-result-highlight * ngIf = "getDetailsAsHighlight()" class = "result-content" [ highlights ] = " getDetailsAsHighlight ( ) " > < / app-result-highlight >
2020-10-27 17:05:14 +01:00
< span * ngIf = "getDetailsAsString()" class = "result-content" > {{getDetailsAsString()}}< / 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" >
2020-12-17 23:41:46 +01:00
< a routerLink = "/search" [ queryParams ] = " { ' more_like ' : document . id } " class = "btn btn-sm btn-outline-secondary" * ngIf = "moreLikeThis" >
2020-12-17 21:36:21 +01:00
< svg xmlns = "http://www.w3.org/2000/svg" width = "16" height = "16" fill = "currentColor" class = "bi bi-three-dots" viewBox = "0 0 16 16" >
< path fill-rule = "evenodd" d = "M3 9.5a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3zm5 0a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3zm5 0a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3z" / >
2021-01-09 19:52:31 -08:00
< / svg > < span class = "d-block d-md-inline" i18n > More like this< / span >
2020-12-17 21:36:21 +01:00
< / a >
2020-10-27 01:10:18 +01:00
< a routerLink = "/documents/{{document.id}}" class = "btn btn-sm btn-outline-secondary" >
< svg width = "1em" height = "1em" viewBox = "0 0 16 16" class = "bi bi-pencil" fill = "currentColor" xmlns = "http://www.w3.org/2000/svg" >
< path fill-rule = "evenodd" d = "M12.146.146a.5.5 0 0 1 .708 0l3 3a.5.5 0 0 1 0 .708l-10 10a.5.5 0 0 1-.168.11l-5 2a.5.5 0 0 1-.65-.65l2-5a.5.5 0 0 1 .11-.168l10-10zM11.207 2.5L13.5 4.793 14.793 3.5 12.5 1.207 11.207 2.5zm1.586 3L10.5 3.207 4 9.707V10h.5a.5.5 0 0 1 .5.5v.5h.5a.5.5 0 0 1 .5.5v.5h.293l6.5-6.5zm-9.761 5.175l-.106.106-1.528 3.821 3.821-1.528.106-.106A.5.5 0 0 1 5 12.5V12h-.5a.5.5 0 0 1-.5-.5V11h-.5a.5.5 0 0 1-.468-.325z" / >
2021-01-09 19:52:31 -08:00
< / svg > < span class = "d-block d-md-inline" i18n > Edit< / span >
2020-10-27 01:10:18 +01:00
< / a >
2021-01-08 22:09:15 -08:00
< a class = "btn btn-sm btn-outline-secondary" [ href ] = " getPreviewUrl ( ) " >
2021-01-30 21:56:17 +01:00
< svg xmlns = "http://www.w3.org/2000/svg" width = "16" height = "16" fill = "currentColor" class = "bi bi-eye" viewBox = "0 0 16 16" >
< path d = "M16 8s-3-5.5-8-5.5S0 8 0 8s3 5.5 8 5.5S16 8 16 8zM1.173 8a13.133 13.133 0 0 1 1.66-2.043C4.12 4.668 5.88 3.5 8 3.5c2.12 0 3.879 1.168 5.168 2.457A13.133 13.133 0 0 1 14.828 8c-.058.087-.122.183-.195.288-.335.48-.83 1.12-1.465 1.755C11.879 11.332 10.119 12.5 8 12.5c-2.12 0-3.879-1.168-5.168-2.457A13.134 13.134 0 0 1 1.172 8z" / >
< path d = "M8 5.5a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5zM4.5 8a3.5 3.5 0 1 1 7 0 3.5 3.5 0 0 1-7 0z" / >
2021-01-09 19:52:31 -08:00
< / svg > < span class = "d-block d-md-inline" i18n > View< / span >
2020-11-28 14:50:14 +01:00
< / a >
2021-01-08 22:09:15 -08:00
< a class = "btn btn-sm btn-outline-secondary" [ href ] = " getDownloadUrl ( ) " >
2020-10-27 01:10:18 +01:00
< svg width = "1em" height = "1em" viewBox = "0 0 16 16" class = "bi bi-download" fill = "currentColor" xmlns = "http://www.w3.org/2000/svg" >
< path fill-rule = "evenodd" d = "M.5 9.9a.5.5 0 0 1 .5.5v2.5a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-2.5a.5.5 0 0 1 1 0v2.5a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2v-2.5a.5.5 0 0 1 .5-.5z" / >
< path fill-rule = "evenodd" d = "M7.646 11.854a.5.5 0 0 0 .708 0l3-3a.5.5 0 0 0-.708-.708L8.5 10.293V1.5a.5.5 0 0 0-1 0v8.793L5.354 8.146a.5.5 0 1 0-.708.708l3 3z" / >
2021-01-09 19:52:31 -08:00
< / svg > < span class = "d-block d-md-inline" i18n > Download< / span >
2020-10-27 01:10:18 +01:00
< / a >
2020-12-28 14:20:00 -08:00
2020-10-27 01:10:18 +01:00
< / div >
2020-12-18 14:09:12 +01:00
2021-01-09 19:52:31 -08:00
< div * ngIf = "searchScore" class = "d-flex align-items-center ml-md-auto mt-2 mt-md-0" >
< small class = "text-muted" i18n > Score:< / small >
2020-12-18 14:09:12 +01:00
2021-01-09 19:52:31 -08:00
< ngb-progressbar [ type ] = " searchScoreClass " [ value ] = " searchScore " class = "search-score-bar mx-2" [ max ] = " 1 " > < / ngb-progressbar >
< / div >
2020-12-28 14:20:00 -08:00
2021-01-17 00:15:45 +01:00
< small class = "text-muted" [ class . ml-auto ] = " ! searchScore " i18n > Created: {{document.created | customDate}}< / small >
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 >