forked from 4Science/dspace-angular
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merged in gdpr-metrics-DSC-1522 (pull request DSpace#1326)
Gdpr metrics DSC-1522 Approved-by: Andrea Barbasso Approved-by: Giuseppe Digilio
- Loading branch information
Showing
26 changed files
with
440 additions
and
82 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
46 changes: 30 additions & 16 deletions
46
src/app/shared/metric/metric-altmetric/metric-altmetric.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,33 @@ | ||
<div class="d-flex flex-nowrap flex-row gapx-3 align-items-center pr-3" | ||
*ngIf="!failed && !(isHidden$ | async) && (remark | dsListMetricProps: 'data-badge-enabled':isListElement == true)"> | ||
<div #metricChild> | ||
<div | ||
class="altmetric-embed" | ||
[attr.data-hide-no-mentions]="remark | dsListMetricProps : 'data-hide-no-mentions' : isListElement" | ||
[attr.data-hide-less-than]="remark | dsListMetricProps : 'data-hide-less-than' : isListElement" | ||
[attr.data-badge-details]="remark | dsListMetricProps : 'data-badge-details' : isListElement" | ||
[attr.data-badge-type]="remark | dsListMetricProps : 'badgeType' : isListElement" | ||
[attr.data-badge-popover]="remark | dsListMetricProps : 'popover' : isListElement" | ||
[attr.data-doi]="remark | dsListMetricProps : 'doiAttr' : isListElement" | ||
[attr.data-pmid]="remark | dsListMetricProps : 'pmidAttr' : isListElement" | ||
[attr.data-link-target]="remark | dsListMetricProps : 'data-link-target' : isListElement" | ||
></div> | ||
<div class="row d-flex align-items-center" | ||
*ngIf="(!failed && | ||
canLoadScript && | ||
!(isHidden$ | async) && | ||
(remark | dsListMetricProps: 'data-badge-enabled':isListElement == true))" | ||
> | ||
<div class="col-5 text-left"> | ||
<div #metricChild> | ||
<div | ||
class="altmetric-embed" | ||
[attr.data-hide-no-mentions]="visibleWithoutData ? false : (remark | dsListMetricProps : 'data-hide-no-mentions' : isListElement)" | ||
[attr.data-hide-less-than]="remark | dsListMetricProps : 'data-hide-less-than' : isListElement" | ||
[attr.data-badge-details]="remark | dsListMetricProps : 'data-badge-details' : isListElement" | ||
[attr.data-badge-type]="remark | dsListMetricProps : 'badgeType' : isListElement" | ||
[attr.data-badge-popover]="remark | dsListMetricProps : 'popover' : isListElement" | ||
[attr.data-doi]="remark | dsListMetricProps : 'doiAttr' : isListElement" | ||
[attr.data-pmid]="remark | dsListMetricProps : 'pmidAttr' : isListElement" | ||
[attr.data-link-target]="remark | dsListMetricProps : 'data-link-target' : isListElement" | ||
></div> | ||
</div> | ||
</div> | ||
<div class="font-weight-bold" *ngIf="!hideLabel"> | ||
{{ "item.page.metric.label." + metric.metricType | translate }} | ||
<div class="col-7" *ngIf="!hideLabel"> | ||
<div class="font-weight-bold text-capitalize"> | ||
{{ metric.metricType | translate }} | ||
</div> | ||
</div> | ||
</div> | ||
<div class="row d-flex align-items-center justify-content-center m-2" *ngIf="!canLoadScript && !isListElement"> | ||
<div> | ||
{{ "third-party-metrics-cookies.message" | translate: {metricType: metric.metricType | titlecase} }} | ||
<div role="button" class="btn-link" (click)="requestSettingsConsent.emit(true)">{{"third-party-metrics-cookies.consent-settings" | translate}}</div> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 27 additions & 13 deletions
40
src/app/shared/metric/metric-dimensions/metric-dimensions.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,33 @@ | ||
<div class="d-flex flex-nowrap flex-row gapx-3 align-items-center pr-3" | ||
*ngIf="!(isHidden$ | async) && !failed && (remark | dsListMetricProps: 'data-badge-enabled':isListElement == true)"> | ||
<div | ||
#metricChild | ||
class="__dimensions_badge_embed__" | ||
[attr.data-hide-zero-citations]="remark | dsListMetricProps: 'data-hide-zero-citations':isListElement" | ||
[attr.data-pmid]=" | ||
<div class="row d-flex align-items-center" | ||
*ngIf="!(isHidden$ | async) && | ||
canLoadScript && | ||
!failed && | ||
(remark | dsListMetricProps: 'data-badge-enabled':isListElement == true)" | ||
> | ||
<div class="col-5 text-left"> | ||
<div | ||
#metricChild | ||
class="__dimensions_badge_embed__" | ||
[attr.data-hide-zero-citations]="visibleWithoutData ? false : (remark | dsListMetricProps: 'data-hide-zero-citations':isListElement)" | ||
[attr.data-pmid]=" | ||
(remark | dsListMetricProps: 'data-doi':isListElement) | ||
? null | ||
: (remark | dsListMetricProps: 'data-pmid':isListElement) | ||
" | ||
[attr.data-doi]="remark | dsListMetricProps: 'data-doi':isListElement" | ||
[attr.data-style]="remark | dsListMetricProps: 'data-style':isListElement" | ||
[attr.data-legend]="remark | dsListMetricProps: 'data-legend':isListElement" | ||
></div> | ||
<div class="font-weight-bold" *ngIf="!hideLabel"> | ||
{{ "item.page.metric.label." + metric.metricType | translate }} | ||
[attr.data-doi]="remark | dsListMetricProps: 'data-doi':isListElement" | ||
[attr.data-style]="remark | dsListMetricProps: 'data-style':isListElement" | ||
[attr.data-legend]="remark | dsListMetricProps: 'data-legend':isListElement" | ||
></div> | ||
</div> | ||
<div class="col-7" *ngIf="!hideLabel"> | ||
<div class="font-weight-bold text-capitalize"> | ||
{{ metric.metricType | translate }} | ||
</div> | ||
</div> | ||
</div> | ||
<div class="row d-flex align-items-center justify-content-center m-2" *ngIf="!canLoadScript && !isListElement"> | ||
<div> | ||
{{ "third-party-metrics-cookies.message" | translate: {metricType: metric.metricType | titlecase} }} | ||
<div role="button" class="btn-link" (click)="requestSettingsConsent.emit(true)">{{"third-party-metrics-cookies.consent-settings" | translate}}</div> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.