[develop | DONE | CHANGED]: parsingFunctions.class.ts & showSubjects.component.ts: Removed checks for production environment - now show everything under keywords.
This commit is contained in:
parent
0896d5a3ce
commit
7a18b65b40
|
@ -698,11 +698,11 @@ export class ParsingFunctions {
|
||||||
if (!classifiedSubjects.has(subject.classname)) {
|
if (!classifiedSubjects.has(subject.classname)) {
|
||||||
classifiedSubjects.set(subject.classname, new Array<string>());
|
classifiedSubjects.set(subject.classname, new Array<string>());
|
||||||
}
|
}
|
||||||
if(properties.environment == "production") {
|
// if(properties.environment == "production") {
|
||||||
classifiedSubjects.get(subject.classname).push(content);
|
// classifiedSubjects.get(subject.classname).push(content);
|
||||||
} else {
|
// } else {
|
||||||
classifiedSubjects.get(subject.classname).push(subject.classid + ": " + content);
|
classifiedSubjects.get(subject.classname).push(subject.classid + ": " + content);
|
||||||
}
|
// }
|
||||||
// }
|
// }
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
@ -723,7 +723,7 @@ export class ParsingFunctions {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if(properties.environment != "production" && classifiedSubjects != null) {
|
if(classifiedSubjects != null) {
|
||||||
if (subjects == undefined) {
|
if (subjects == undefined) {
|
||||||
subjects = new Array<string>();
|
subjects = new Array<string>();
|
||||||
}
|
}
|
||||||
|
|
|
@ -13,20 +13,19 @@ import {properties} from "../../../../environments/environment";
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'showSubjects',
|
selector: 'showSubjects',
|
||||||
template: `
|
template: `
|
||||||
<ng-container *ngIf="properties.environment == 'production' && !viewAllSubjects && ((classifiedSubjects && classifiedSubjects.size > 0) || (eoscSubjects && eoscSubjects.length > 0))">
|
<!-- <ng-container *ngIf="properties.environment == 'production' && !viewAllSubjects && ((classifiedSubjects && classifiedSubjects.size > 0) || (eoscSubjects && eoscSubjects.length > 0))">-->
|
||||||
<div *ngIf="!viewAllClassifiedSubjects" class="uk-text-meta">
|
<!-- <div *ngIf="!viewAllClassifiedSubjects" class="uk-text-meta">-->
|
||||||
Subjects by Vocabulary
|
<!-- Subjects by Vocabulary-->
|
||||||
</div>
|
<!-- </div>-->
|
||||||
<ng-container *ngTemplateOutlet="subjects_by_vocabulary_template; context: {customClasses: (isMobile && viewAllClassifiedSubjects) ? '' : 'multi-line-ellipsis lines-2', id: 'content'}"></ng-container>
|
<!-- <ng-container *ngTemplateOutlet="subjects_by_vocabulary_template; context: {customClasses: (isMobile && viewAllClassifiedSubjects) ? '' : 'multi-line-ellipsis lines-2', id: 'content'}"></ng-container>-->
|
||||||
<ng-container *ngIf="eoscSubjects && eoscSubjects.length > 0"><ng-container *ngTemplateOutlet="eosc_subjects_template"></ng-container></ng-container>
|
<!-- <ng-container *ngIf="eoscSubjects && eoscSubjects.length > 0"><ng-container *ngTemplateOutlet="eosc_subjects_template"></ng-container></ng-container>-->
|
||||||
<div *ngIf="isClassifiedLarge && !viewAllClassifiedSubjects" class="uk-text-right">
|
<!-- <div *ngIf="isClassifiedLarge && !viewAllClassifiedSubjects" class="uk-text-right">-->
|
||||||
<a (click)="viewAllSubjectsByVocabularyClicked()" class="view-more-less-link">View all</a>
|
<!-- <a (click)="viewAllSubjectsByVocabularyClicked()" class="view-more-less-link">View all</a>-->
|
||||||
</div>
|
<!-- </div>-->
|
||||||
</ng-container>
|
<!-- </ng-container>-->
|
||||||
|
|
||||||
<ng-container *ngIf="!viewAllClassifiedSubjects && ((subjects && subjects.length > 0) || (otherSubjects && otherSubjects.size > 0))">
|
<ng-container *ngIf="!viewAllClassifiedSubjects && ((subjects && subjects.length > 0) || (otherSubjects && otherSubjects.size > 0))">
|
||||||
<div *ngIf="!viewAllSubjects" class="uk-text-meta uk-margin-small-bottom"
|
<div *ngIf="!viewAllSubjects" class="uk-text-meta uk-margin-small-bottom">
|
||||||
[class.uk-margin-medium-top]="properties.environment == 'production' && ((classifiedSubjects && classifiedSubjects.size > 0) || (eoscSubjects && eoscSubjects.length > 0))">
|
|
||||||
Keywords
|
Keywords
|
||||||
</div>
|
</div>
|
||||||
<ng-container *ngTemplateOutlet="subjects_template; context: {customClasses: (isMobile && viewAllSubjects) ? '' : 'multi-line-ellipsis lines-2', id: 'content'}"></ng-container>
|
<ng-container *ngTemplateOutlet="subjects_template; context: {customClasses: (isMobile && viewAllSubjects) ? '' : 'multi-line-ellipsis lines-2', id: 'content'}"></ng-container>
|
||||||
|
@ -35,7 +34,7 @@ import {properties} from "../../../../environments/environment";
|
||||||
</div>
|
</div>
|
||||||
</ng-container>
|
</ng-container>
|
||||||
|
|
||||||
<ng-container *ngIf="properties.environment != 'production' && !viewAllSubjects && ((eoscSubjects && eoscSubjects.length > 0))">
|
<ng-container *ngIf="!viewAllSubjects && ((eoscSubjects && eoscSubjects.length > 0))">
|
||||||
<div class="uk-text-meta uk-margin-small-bottom"
|
<div class="uk-text-meta uk-margin-small-bottom"
|
||||||
[class.uk-margin-medium-top]="(subjects && subjects.length > 0) || (otherSubjects && otherSubjects.size > 0)">
|
[class.uk-margin-medium-top]="(subjects && subjects.length > 0) || (otherSubjects && otherSubjects.size > 0)">
|
||||||
EOSC Subjects
|
EOSC Subjects
|
||||||
|
@ -89,21 +88,21 @@ import {properties} from "../../../../environments/environment";
|
||||||
<ng-template #eosc_subjects_template let-customClasses="customClasses" let-id="id">
|
<ng-template #eosc_subjects_template let-customClasses="customClasses" let-id="id">
|
||||||
<div class="uk-flex-wrap uk-margin-medium-right"
|
<div class="uk-flex-wrap uk-margin-medium-right"
|
||||||
[ngClass]="customClasses">
|
[ngClass]="customClasses">
|
||||||
<p *ngIf="properties.environment == 'production'" class="uk-flex uk-flex-middle uk-margin-bottom">
|
<!-- <p *ngIf="properties.environment == 'production'" class="uk-flex uk-flex-middle uk-margin-bottom">-->
|
||||||
<span #classifiedContent [id]="id+'_eosc'">
|
<!-- <span #classifiedContent [id]="id+'_eosc'">-->
|
||||||
<span class="uk-margin-small-top uk-display-inline-block">
|
<!-- <span class="uk-margin-small-top uk-display-inline-block">-->
|
||||||
<span uk-icon="tag"></span>
|
<!-- <span uk-icon="tag"></span>-->
|
||||||
<span class="uk-text-bold uk-margin-small-right"> EOSC: </span>
|
<!-- <span class="uk-text-bold uk-margin-small-right"> EOSC: </span>-->
|
||||||
</span>
|
<!-- </span>-->
|
||||||
<span *ngFor="let subject of eoscSubjects; let j=index" class="uk-margin-small-top uk-width-auto uk-display-inline-block">
|
<!-- <span *ngFor="let subject of eoscSubjects; let j=index" class="uk-margin-small-top uk-width-auto uk-display-inline-block">-->
|
||||||
<span class="uk-border-rounded uk-label uk-label-small uk-label-primary uk-text-truncate uk-margin-small-right">
|
<!-- <span class="uk-border-rounded uk-label uk-label-small uk-label-primary uk-text-truncate uk-margin-small-right">-->
|
||||||
{{subject.value}}
|
<!-- {{subject.value}}-->
|
||||||
</span>
|
<!-- </span>-->
|
||||||
</span>
|
<!-- </span>-->
|
||||||
</span>
|
<!-- </span>-->
|
||||||
</p>
|
<!-- </p>-->
|
||||||
|
|
||||||
<p *ngIf="properties.environment != 'production' && eoscSubjects && eoscSubjects.length > 0">
|
<p *ngIf="eoscSubjects && eoscSubjects.length > 0">
|
||||||
<span #classifiedContent [id]="id+'_eosc'">{{getValue(eoscSubjects).join(', ')}}</span>
|
<span #classifiedContent [id]="id+'_eosc'">{{getValue(eoscSubjects).join(', ')}}</span>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue