Project

General

Profile

« Previous | Next » 

Revision 60305

[Aggregator |trunk]

- add graph section text for Canada - remove lorem ipsum

View differences:

modules/uoa-aggregator-portal/trunk/src/app/home/home.component.html
66 66
    </div>
67 67
  </div>
68 68
</div>
69
<div class="uk-section graph-background">
69
<div class="uk-section graph-background" *ngIf="aggregator.graphSectionText && aggregator.graphSectionTitle">
70 70
  <div class="uk-container">
71 71
    <div class="uk-flex uk-flex-top uk-child-width-1-1 uk-child-width-1-2@m" uk-grid>
72 72
      <div class="uk-flex-last@m">
73 73
        <div [class.lines-10]="!readMore" class="uk-margin-bottom multi-line-ellipsis">
74
          <div class="uk-h3">Lorem ipsum dolor sit amet</div>
75

  
76
          <p>The <a class="graph-color" href="https://graph.openaire.eu" target="blank">OpenAIRE Research Graph</a>
77
            ... lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et
78
            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
74
          <div class="uk-h3">{{aggregator.graphSectionTitle}}</div>
75
          <p [innerHtml]="aggregator.graphSectionText">
79 76
          </p>
80

  
81 77
        </div>
82
<!--        <div *ngIf="!readMore" class="uk-text-center clickable" (click)="readMore = true">-->
83
<!--          <span>Read more<span class="space" uk-icon="chevron-down"></span></span>-->
84
<!--        </div>-->
85
<!--        <div *ngIf="readMore" class="uk-text-center clickable" (click)="readMore = false">-->
86
<!--          <span>Read less<span class="space" uk-icon="chevron-up"></span></span>-->
87
<!--        </div>-->
78
        <div *ngIf="aggregator.graphSectionText">
79
          <div *ngIf="!readMore" class="uk-text-center clickable" (click)="readMore = true">
80
            <span>Read more<span class="space" uk-icon="chevron-down"></span></span>
81
          </div>
82
          <div *ngIf="readMore" class="uk-text-center clickable" (click)="readMore = false">
83
            <span>Read less<span class="space" uk-icon="chevron-up"></span></span>
84
          </div>
85
        </div>
88 86
      </div>
89 87
      <div class="uk-flex uk-flex-bottom">
90 88
        <div class="uk-width-1-3 uk-width-1-2@m">
modules/uoa-aggregator-portal/trunk/src/app/home/home.component.ts
25 25
import {properties} from "../../environments/environment";
26 26
import {portalProperties} from "../../environments/environment-aggregator";
27 27
import {StringUtils} from "../openaireLibrary/utils/string-utils.class";
28
import {ConnectHelper} from "../openaireLibrary/connect/connectHelper";
28 29

  
29 30
@Component({
30 31
  selector: 'home',
......
88 89
    private config: ConfigurationService, private _meta: Meta, private _title: Title, private seoService: SEOService,
89 90
    private helper: HelperService
90 91
  ) {
91
    this.aggregatorId = this.route.snapshot.paramMap.get('id');
92
    this.aggregatorId = ConnectHelper.getCommunityFromDomain(properties.domain);
92 93
    this.aggregator =  PortalAggregators.getFilterInfoByMenuId(this.aggregatorId);
93 94
    this.customFilter = PortalAggregators.getSearchCustomFilterByAggregator(this.aggregator);
94 95
    let description = "OpenAIRE Explore: Over 100M of research deduplicated, 170K research software, 11M research data. One of the largest open scholarly records collection worldwide.";
modules/uoa-aggregator-portal/trunk/src/app/utils/aggregators.ts
12 12
  mainColor:string;
13 13
  darkColor:string;
14 14
  background:string;
15
  graphSectionTitle: string;
16
  graphSectionText: string;
15 17

  
16
  constructor(menuId: string, title: string, logoUrl: string, fieldName: string, queryFieldName: string, valueId: string, valueName: string, mainColor:string=null, darkColor:string=null, background:string=null) {
18
  constructor(menuId: string, title: string, logoUrl: string, fieldName: string, queryFieldName: string, valueId: string,
19
              valueName: string, mainColor:string=null, darkColor:string=null, background:string=null,graphSectionTitle: string = null, graphSectionText:string = null ) {
17 20
    this.menuId = menuId;
18 21
    this.title = title;
19 22
    this.logoUrl = logoUrl;
......
24 27
    this.mainColor = mainColor;
25 28
    this.darkColor = darkColor;
26 29
    this.background = background;
30
    this.graphSectionTitle = graphSectionTitle;
31
    this.graphSectionText = graphSectionText;
27 32
  }
28 33
}
29 34

  
30 35
export class PortalAggregators {
31 36
  static list: AggregatorInfo[] = [
32
    new AggregatorInfo("canada", "Canadian Aggregator", "assets/canada-logo.png", "Country", "country", "CA", "Canada","#E80000","#ad0000", "/assets/canada-background.svg" ),
37
    new AggregatorInfo("canada", "Canadian Aggregator", "assets/canada-logo.png", "Country", "country", "CA", "Canada","#E80000","#ad0000", "/assets/canada-background.svg",
38
      "Portal to Canadian Research Outputs", `<span>
39
            Welcome to the beta Portal to Canadian Research Outputs, which has been developed as part of a
40
            collaboration between CARL and OpenAIRE as part of the OpenAIRE Advance Project. The portal enables users
41
            to search and browse Canadian content that is included in the OpenAIRE aggregation. The number of
42
            research products is expected to grow in 2021 as more Canadian repositories become compliant with
43
            OpenAIRE guidelines and Canadian affiliation information is enhanced. For more information, visit the
44
            <a
45
              href="https://www.carl-abrc.ca/advancing-research/institutional-repositories/open-repositories-working-group/openaire-collaboration/" target="_blank">CARL website</a>.
46
          </span>
47
            <br>
48
          <span>
49
            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,
50
              <a
51
                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>.
52
          </span>`),
33 53
    new AggregatorInfo("italy", "Italian Aggregator", "assets/common-assets/logo-small-aggregator.png", "Country", "country", "IT", "Italy"),
34 54
    new AggregatorInfo("greece", "Greek Aggregator", "assets/common-assets/logo-small-aggregator.png", "Country", "country", "GR", "Greece"),
35 55

  

Also available in: Unified diff