Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Link out to PubMed Central when a source has a PMC id #1069

Merged
merged 1 commit into from
Jun 18, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -38,17 +38,27 @@
nzBordered
nzSize="small"
[nzColumn]="1">
<nz-descriptions-item nzTitle="Published"
>{{ source.publicationDate }}</nz-descriptions-item
>
<nz-descriptions-item nzTitle="Published">{{
source.publicationDate
}}</nz-descriptions-item>
<nz-descriptions-item nzTitle="{{ source.displayType }} ID">
<cvc-link-tag
*ngIf="source.sourceUrl"
[href]="source.sourceUrl"
[tooltip]="'View on ' + source.displayType">
{{ source.displayType + ":" + source.citationId }}
{{ source.displayType + ':' + source.citationId }}
</cvc-link-tag>
<cvc-retraction-status-tag *ngIf='source.retractionNature && source.retractionDate && source.retractionReasons' [retractionNature]='source.retractionNature' [retractionDate]="source.retractionDate" [retractionReasons]="source.retractionReasons"></cvc-retraction-status-tag>
<cvc-retraction-status-tag
*ngIf="
source.retractionNature &&
source.retractionDate &&
source.retractionReasons
"
[retractionNature]="source.retractionNature"
[retractionDate]="source.retractionDate"
[retractionReasons]="
source.retractionReasons
"></cvc-retraction-status-tag>
</nz-descriptions-item>
<nz-descriptions-item
*ngIf="source.displayType == 'ASCO'"
Expand All @@ -60,12 +70,23 @@
</nz-descriptions-item>
<nz-descriptions-item nzTitle="PMC ID">
<ng-container *ngIf="source.pmcId; else notAvailable">
{{ source.pmcId }}
<cvc-link-tag
href="https://www.ncbi.nlm.nih.gov/pmc/articles/{{
source.pmcId
}}"
tooltip="View on PubMed Central">
{{ source.pmcId }}
</cvc-link-tag>
</ng-container>
</nz-descriptions-item>
<nz-descriptions-item nzTitle="Access">
<span nz-tooltip [nzTooltipTitle]="source.pmcId ? 'Open' : 'Closed'">
<span nz-icon [nzType]="source.pmcId ? 'unlock' :'lock'" nzTheme="outline"></span>
<span
nz-tooltip
[nzTooltipTitle]="source.pmcId ? 'Open' : 'Closed'">
<span
nz-icon
[nzType]="source.pmcId ? 'unlock' : 'lock'"
nzTheme="outline"></span>
</span>
</nz-descriptions-item>

Expand All @@ -80,7 +101,9 @@
<ng-template ngPluralCase="=1">
<nz-descriptions-item nzTitle="Clinicial Trial">
<cvc-clinical-trial-tag
[clinicalTrial]="source.clinicalTrials[0]"></cvc-clinical-trial-tag>
[clinicalTrial]="
source.clinicalTrials[0]
"></cvc-clinical-trial-tag>
</nz-descriptions-item>
</ng-template>
<ng-template ngPluralCase="other">
Expand Down Expand Up @@ -120,7 +143,9 @@
<cvc-source-suggestions-table
[sourceId]="sourceId"
cvcHeight="400"
[cvcTitleTemplate]="sourceSuggestionCardTitle"></cvc-source-suggestions-table>
[cvcTitleTemplate]="
sourceSuggestionCardTitle
"></cvc-source-suggestions-table>
<ng-template #sourceSuggestionCardTitle>
Source Suggestions for {{ source.citation }}
</ng-template>
Expand Down
Loading