[develop | DONE | CHANGED]: availableOn.component.ts: Restored checks, not to display full-text link in production environment - reverted commit fa216cbc07
.
This commit is contained in:
parent
243e736362
commit
f63e7d72cc
|
@ -14,7 +14,7 @@ import {RouterHelper} from "../../utils/routerHelper.class";
|
||||||
<div class="uk-flex uk-flex-middle"
|
<div class="uk-flex uk-flex-middle"
|
||||||
[ngClass]="isMobile ? ('uk-flex-column ' + (!(usedBy == 'landing') ? 'uk-margin-left uk-margin-xsmall-bottom' : '')) : 'uk-grid uk-grid-small uk-child-width-auto'"
|
[ngClass]="isMobile ? ('uk-flex-column ' + (!(usedBy == 'landing') ? 'uk-margin-left uk-margin-xsmall-bottom' : '')) : 'uk-grid uk-grid-small uk-child-width-auto'"
|
||||||
[attr.uk-grid]="!isMobile ? '' : null">
|
[attr.uk-grid]="!isMobile ? '' : null">
|
||||||
<div *ngIf="availableOn[0].fulltext" class="uk-flex uk-flex-middle"
|
<div *ngIf="properties.environment != 'production' && availableOn[0].fulltext" class="uk-flex uk-flex-middle"
|
||||||
[ngClass]="isMobile ? 'uk-width-1-1' : 'uk-text-bolder'">
|
[ngClass]="isMobile ? 'uk-width-1-1' : 'uk-text-bolder'">
|
||||||
<a [href]="availableOn[0].fulltext" target="_blank"
|
<a [href]="availableOn[0].fulltext" target="_blank"
|
||||||
class="uk-flex uk-flex-middle uk-button-link"
|
class="uk-flex uk-flex-middle uk-button-link"
|
||||||
|
@ -24,7 +24,7 @@ import {RouterHelper} from "../../utils/routerHelper.class";
|
||||||
<span class="uk-margin-xsmall-left">Full-Text</span>
|
<span class="uk-margin-xsmall-left">Full-Text</span>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
<div *ngIf="isMobile && (usedBy == 'landing') && availableOn[0].fulltext" class="uk-width-1-1"><hr></div>
|
<div *ngIf="properties.environment != 'production' && isMobile && (usedBy == 'landing') && availableOn[0].fulltext" class="uk-width-1-1"><hr></div>
|
||||||
<div *ngIf="availableOn[0].downloadUrl" [ngClass]="isMobile ? 'uk-width-1-1' : ''">
|
<div *ngIf="availableOn[0].downloadUrl" [ngClass]="isMobile ? 'uk-width-1-1' : ''">
|
||||||
<div class="uk-flex uk-flex-middle" [ngClass]="isMobile ? ((usedBy == 'landing') ? 'uk-padding-small uk-padding-remove-horizontal' : '') : ''">
|
<div class="uk-flex uk-flex-middle" [ngClass]="isMobile ? ((usedBy == 'landing') ? 'uk-padding-small uk-padding-remove-horizontal' : '') : ''">
|
||||||
<span [class]="'uk-margin-xsmall-right ' + (availableOn[0].accessRightIcon == 'open_access' ? 'open-access' : 'closed-access')"
|
<span [class]="'uk-margin-xsmall-right ' + (availableOn[0].accessRightIcon == 'open_access' ? 'open-access' : 'closed-access')"
|
||||||
|
@ -95,7 +95,7 @@ import {RouterHelper} from "../../utils/routerHelper.class";
|
||||||
</a>
|
</a>
|
||||||
<ng-template #elseBlock> {{instance.license}}</ng-template>
|
<ng-template #elseBlock> {{instance.license}}</ng-template>
|
||||||
</div>
|
</div>
|
||||||
<div *ngIf="instance.fulltext" class="uk-text-meta uk-text-truncate" uk-tooltip [title]="instance.fulltext">
|
<div *ngIf="properties.environment != 'production' && instance.fulltext" class="uk-text-meta uk-text-truncate" uk-tooltip [title]="instance.fulltext">
|
||||||
Full-Text:
|
Full-Text:
|
||||||
<a *ngIf="isUrl(instance.fulltext); else elseBlock"
|
<a *ngIf="isUrl(instance.fulltext); else elseBlock"
|
||||||
[href]="instance.fulltext" target="_blank" class="custom-external uk-link-text">
|
[href]="instance.fulltext" target="_blank" class="custom-external uk-link-text">
|
||||||
|
|
Loading…
Reference in New Issue