[Aggregator |trunk]
- add graph section text for Canada - remove lorem ipsum git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-aggregator-portal/trunk@60305 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
parent
ed05f2ad2f
commit
cb56e684f6
|
@ -66,25 +66,23 @@
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="uk-section graph-background">
|
||||
<div class="uk-section graph-background" *ngIf="aggregator.graphSectionText && aggregator.graphSectionTitle">
|
||||
<div class="uk-container">
|
||||
<div class="uk-flex uk-flex-top uk-child-width-1-1 uk-child-width-1-2@m" uk-grid>
|
||||
<div class="uk-flex-last@m">
|
||||
<div [class.lines-10]="!readMore" class="uk-margin-bottom multi-line-ellipsis">
|
||||
<div class="uk-h3">Lorem ipsum dolor sit amet</div>
|
||||
|
||||
<p>The <a class="graph-color" href="https://graph.openaire.eu" target="blank">OpenAIRE Research Graph</a>
|
||||
... lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et
|
||||
dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum
|
||||
<div class="uk-h3">{{aggregator.graphSectionTitle}}</div>
|
||||
<p [innerHtml]="aggregator.graphSectionText">
|
||||
</p>
|
||||
|
||||
</div>
|
||||
<!-- <div *ngIf="!readMore" class="uk-text-center clickable" (click)="readMore = true">-->
|
||||
<!-- <span>Read more<span class="space" uk-icon="chevron-down"></span></span>-->
|
||||
<!-- </div>-->
|
||||
<!-- <div *ngIf="readMore" class="uk-text-center clickable" (click)="readMore = false">-->
|
||||
<!-- <span>Read less<span class="space" uk-icon="chevron-up"></span></span>-->
|
||||
<!-- </div>-->
|
||||
<div *ngIf="aggregator.graphSectionText">
|
||||
<div *ngIf="!readMore" class="uk-text-center clickable" (click)="readMore = true">
|
||||
<span>Read more<span class="space" uk-icon="chevron-down"></span></span>
|
||||
</div>
|
||||
<div *ngIf="readMore" class="uk-text-center clickable" (click)="readMore = false">
|
||||
<span>Read less<span class="space" uk-icon="chevron-up"></span></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="uk-flex uk-flex-bottom">
|
||||
<div class="uk-width-1-3 uk-width-1-2@m">
|
||||
|
|
|
@ -25,6 +25,7 @@ import {SearchCustomFilter} from "../openaireLibrary/searchPages/searchUtils/sea
|
|||
import {properties} from "../../environments/environment";
|
||||
import {portalProperties} from "../../environments/environment-aggregator";
|
||||
import {StringUtils} from "../openaireLibrary/utils/string-utils.class";
|
||||
import {ConnectHelper} from "../openaireLibrary/connect/connectHelper";
|
||||
|
||||
@Component({
|
||||
selector: 'home',
|
||||
|
@ -88,7 +89,7 @@ export class HomeComponent {
|
|||
private config: ConfigurationService, private _meta: Meta, private _title: Title, private seoService: SEOService,
|
||||
private helper: HelperService
|
||||
) {
|
||||
this.aggregatorId = this.route.snapshot.paramMap.get('id');
|
||||
this.aggregatorId = ConnectHelper.getCommunityFromDomain(properties.domain);
|
||||
this.aggregator = PortalAggregators.getFilterInfoByMenuId(this.aggregatorId);
|
||||
this.customFilter = PortalAggregators.getSearchCustomFilterByAggregator(this.aggregator);
|
||||
let description = "OpenAIRE Explore: Over 100M of research deduplicated, 170K research software, 11M research data. One of the largest open scholarly records collection worldwide.";
|
||||
|
|
|
@ -12,8 +12,11 @@ export class AggregatorInfo {
|
|||
mainColor:string;
|
||||
darkColor:string;
|
||||
background:string;
|
||||
graphSectionTitle: string;
|
||||
graphSectionText: string;
|
||||
|
||||
constructor(menuId: string, title: string, logoUrl: string, fieldName: string, queryFieldName: string, valueId: string, valueName: string, mainColor:string=null, darkColor:string=null, background:string=null) {
|
||||
constructor(menuId: string, title: string, logoUrl: string, fieldName: string, queryFieldName: string, valueId: string,
|
||||
valueName: string, mainColor:string=null, darkColor:string=null, background:string=null,graphSectionTitle: string = null, graphSectionText:string = null ) {
|
||||
this.menuId = menuId;
|
||||
this.title = title;
|
||||
this.logoUrl = logoUrl;
|
||||
|
@ -24,12 +27,29 @@ export class AggregatorInfo {
|
|||
this.mainColor = mainColor;
|
||||
this.darkColor = darkColor;
|
||||
this.background = background;
|
||||
this.graphSectionTitle = graphSectionTitle;
|
||||
this.graphSectionText = graphSectionText;
|
||||
}
|
||||
}
|
||||
|
||||
export class PortalAggregators {
|
||||
static list: AggregatorInfo[] = [
|
||||
new AggregatorInfo("canada", "Canadian Aggregator", "assets/canada-logo.png", "Country", "country", "CA", "Canada","#E80000","#ad0000", "/assets/canada-background.svg" ),
|
||||
new AggregatorInfo("canada", "Canadian Aggregator", "assets/canada-logo.png", "Country", "country", "CA", "Canada","#E80000","#ad0000", "/assets/canada-background.svg",
|
||||
"Portal to Canadian Research Outputs", `<span>
|
||||
Welcome to the beta Portal to Canadian Research Outputs, which has been developed as part of a
|
||||
collaboration between CARL and OpenAIRE as part of the OpenAIRE Advance Project. The portal enables users
|
||||
to search and browse Canadian content that is included in the OpenAIRE aggregation. The number of
|
||||
research products is expected to grow in 2021 as more Canadian repositories become compliant with
|
||||
OpenAIRE guidelines and Canadian affiliation information is enhanced. For more information, visit the
|
||||
<a
|
||||
href="https://www.carl-abrc.ca/advancing-research/institutional-repositories/open-repositories-working-group/openaire-collaboration/" target="_blank">CARL website</a>.
|
||||
</span>
|
||||
<br>
|
||||
<span>
|
||||
Bienvenue sur la version bêta du portail des résultats de la recherche canadienne, qui a été développé dans le cadre d'une collaboration entre l'ABRC et OpenAIRE dans le contexte du projet OpenAIRE Advance. Le portail permet aux utilisateurs de repérer et de parcourir le contenu canadien inclus sur la plateforme OpenAIRE. La quantité des résultats de la recherche canadienne disponible sur la plateforme augmentera tout au long de l'année 2021 au fur et à mesure que les dépôts canadiens se conformeront aux directives d'OpenAIRE et que les détails relatifs aux affiliations canadiennes seront améliorés. Pour plus d'informations,
|
||||
<a
|
||||
href="https://www.carl-abrc.ca/fr/faire-avancer-la-recherche/depots-institutionnels/groupe-de-travail-depots-ouverts/collaboration-avec-openaire/" target="_blank">veuillez visiter le site Web de l’ABRC</a>.
|
||||
</span>`),
|
||||
new AggregatorInfo("italy", "Italian Aggregator", "assets/common-assets/logo-small-aggregator.png", "Country", "country", "IT", "Italy"),
|
||||
new AggregatorInfo("greece", "Greek Aggregator", "assets/common-assets/logo-small-aggregator.png", "Country", "country", "GR", "Greece"),
|
||||
|
||||
|
|
Loading…
Reference in New Issue