Project

General

Profile

1
<div class=" uk-section  uk-margin-small-top tm-middle uk-container" id="tm-main">
2

    
3
<div class="uk-container  uk-margin-bottom uk-grid">
4
<div class="uk-width-expand uk-padding-remove">
5
  <article *ngIf="communityInfo" class="uk-article ">
6
    <div *ngIf="communityId == null || communityId == ''" class="uk-child-width-1-6@l uk-child-width-1-6@m uk-child-width-1-3@s uk-text-center uk-alert uk-alert-primary">
7
       No community chosen
8
    </div>
9
    <div class="uk-clearfix uk-margin-bottom">
10
      <manage *ngIf="communityId != null && communityId != ''" [communityId]="communityId" class=" uk-float-right"></manage>
11
      <subscribe *ngIf="communityId != null && communityId != ''" [communityId]="communityId" class=" uk-float-right"></subscribe>
12
    </div>
13
    <div *ngIf="communityId != null && communityId != '' && community != null">
14
        <blockquote>
15
            <div *ngIf="community.title != null">
16
              <p> {{community.title}}</p>
17
            </div>
18
            <div *ngIf="community.title == null && community.shortTitle != null">
19
              <p> {{community.shortTitle}}</p>
20
            </div>
21
            <div *ngIf="community.description != null">
22
              <p> {{community.description}}</p>
23
            </div>
24
        </blockquote>
25
        <div *ngIf="community.subjects != null">
26
          <span *ngFor="let subject of community.subjects.slice(0,10) let i=index">
27
              <span *ngIf="subject != ''" class="uk-label uk-margin-small-bottom">{{subject}}</span>
28
              <!-- <span *ngIf=" i<9 && i<(community.subjects.length-1)">&nbsp;</span> -->
29
          </span>
30
          <span *ngIf="showAll">
31
              <span *ngFor="let subject of community.subjects.slice(10) let i=index">
32
                  <span *ngIf="subject != ''" class="uk-label uk-margin-small-bottom">{{subject}}</span>
33
                  <!-- <span *ngIf="i<(community.subjects.length-1)">&nbsp;</span> -->
34
              </span>
35
          </span>
36
          <span *ngIf="!showAll && community.subjects.length > 10">
37
              <a (click)="showAll = !showAll;">
38
                show more
39
              </a>
40
          </span>
41
          <span *ngIf="showAll">
42
              <a (click)="showAll = !showAll;">
43
                show less
44
              </a>
45
          </span>
46
        </div>
47
        <p>
48
          <span *ngIf="community.managers != null && community.managers[0] != '' && community.managers[0] != null"> Curated by:
49
              <span *ngFor='let manager of community.managers; let i = index'>{{manager.substr(0, manager.indexOf('@'))}}<span *ngIf="manager.includes('@') == 0">{{manager}}</span><span *ngIf="i<(community.managers.length-1)">,</span>
50
              </span>
51
          </span>
52
          <span *ngIf="community.date != null" class="uk-margin-left"> Created: {{community.date | date:'dd-MM-yyyy'}}</span>
53
          <subscribe *ngIf="communityId != null" [communityId]="communityId" showNumbers=true class="uk-margin-left"></subscribe>
54
          <span *ngIf="masterZenodoCommunity || zenodoCommunityIdS.length > 0 && IsRouteEnabled('/participate/share-zenodo')" class="uk-margin-left">
55
            <a [queryParams]=params routerLinkActive="router-link-active" routerLink="/participate/share-zenodo" >
56
              Zenodo communities:<span> {{zenodoCommunityIdS.length + ((masterZenodoCommunity)?1:0)}}</span>
57
            </a>
58
          </span>
59
        </p>
60
    </div>
61
    <div *ngIf="communityId != null && communityId != ''" class="uk-child-width-1-6@l uk-child-width-1-6@m uk-child-width-1-3@s uk-text-center uk-grid uk-grid-medium ">
62
      <div *ngIf="publicationTotal != null && IsEntityEnabled('publication') && IsRouteEnabled('/search/find/publications')" class=" uk-padding-remove-left uk-first-column">
63
        <div class="uk-card uk-card-default uk-card-small uk-card-body">
64
          <div>
65
            <a [queryParams]=params routerLinkActive="router-link-active" routerLink="/search/find/publications" ><h3 class="uk-card-title">{{publicationTotal|number}}</h3>
66
            <p>publications</p></a>
67
          </div>
68
        </div>
69
      </div>
70
      <div *ngIf="researchDataTotal != null && IsEntityEnabled('dataset') && IsRouteEnabled('/search/find/datasets')">
71
        <div class="uk-card uk-card-default uk-card-small uk-card-body">
72
          <div>
73
            <a [queryParams]=params routerLinkActive="router-link-active" routerLink="/search/find/datasets"><h3 class="uk-card-title">{{researchDataTotal|number}}</h3>
74
            <p>research data</p></a>
75
          </div>
76
        </div>
77
      </div>
78
      <div *ngIf="softwareTotal != null && IsEntityEnabled('software') && IsRouteEnabled('/search/find/software')">
79
        <div class="uk-card uk-card-default uk-card-small uk-card-body">
80
          <div>
81
            <a [queryParams]=params routerLinkActive="router-link-active" routerLink="/search/find/software"><h3 class="uk-card-title">{{softwareTotal|number}}</h3>
82
            <p>software</p></a>
83
          </div>
84
        </div>
85
      </div>
86
      <div *ngIf="orpTotal != null && IsEntityEnabled('orp') && IsRouteEnabled('/search/find/other')">
87
        <div class="uk-card uk-card-default uk-card-small uk-card-body">
88
          <div>
89
            <a [queryParams]=params routerLinkActive="router-link-active" routerLink="/search/find/other"><h3 class="uk-card-title">{{orpTotal|number}}</h3>
90
            <p>other research products</p></a>
91
          </div>
92
        </div>
93
      </div>
94
      <div *ngIf="projectTotal != null && IsEntityEnabled('project') && IsRouteEnabled('/search/find/projects')">
95
        <div class="uk-card uk-card-default uk-card-small uk-card-body">
96
          <div>
97
            <a routerLinkActive="router-link-active" routerLink="/search/find/projects"><h3 class="uk-card-title">{{projectTotal|number}}</h3>
98
            <p>projects</p></a>
99
          </div>
100
        </div>
101
      </div>
102

    
103
      <div *ngIf="contentProviderTotal != null && IsEntityEnabled('datasource') && IsRouteEnabled('/search/find/dataproviders')">
104
          <div class="uk-card uk-card-default uk-card-small uk-card-body">
105
            <div>
106
              <a routerLinkActive="router-link-active" routerLink="/search/find/dataproviders"><h3 class="uk-card-title">{{contentProviderTotal|number}}</h3>
107
              <p>content providers</p></a>
108
            </div>
109
          </div>
110
      </div>
111
    </div>
112

    
113
    <div>
114
      <div class="uk-margin-large-top">
115
          <h2 class="uk-h3 uk-text-primary">
116
              Recent research results
117
          </h2>
118
      </div>
119

    
120
      <ul class="uk-tab uk-margin-top" data-uk-tab="{connect: '#resultTabs'">
121
          <li *ngIf="IsEntityEnabled('publication')" class="uk-active"><a href="#">publications</a></li>
122
          <li *ngIf="IsEntityEnabled('dataset')" (click)="searchResearchData()"><a href="#">research data</a></li>
123
          <li *ngIf="IsEntityEnabled('software')" (click)="searchSoftware()"><a href="#">software</a></li>
124
          <li *ngIf="IsEntityEnabled('orp')" (click)="searchOrps()"><a href="#">other research products</a></li>
125
      </ul>
126

    
127
      <ul id="resultTabs" class="uk-switcher" style="min-height:450px;">
128
          <li *ngIf="IsEntityEnabled('publication')"><results-comp [(results)]=publicationResults [(total)]=publicationTotal resultType="publication" [community]=community [params]=params></results-comp></li>
129
          <li *ngIf="IsEntityEnabled('dataset')"><results-comp [(results)]=researchDataResults [(total)]=researchDataTotal resultType="dataset" [community]=community [params]=params></results-comp></li>
130
          <li *ngIf="IsEntityEnabled('software')"><results-comp [(results)]=softwareResults [(total)]=softwareTotal resultType="software" [community]=community [params]=params></results-comp></li>
131
          <li *ngIf="IsEntityEnabled('orp')"><results-comp [(results)]=orpResults [(total)]=orpTotal resultType="other" [community]=community [params]=params></results-comp></li>
132
      </ul>
133
    </div>
134

    
135
    <statistics-for-dashboard [currentMode]="'showInDashboard'"></statistics-for-dashboard>
136

    
137
  </article>
138
</div>
139
<div *ngIf="showInvite()" class="uk-width-1-5@m uk-width-1-1@s  uk-padding-small uk-margin-large-top">
140
  <invite [longView]=false></invite>
141
</div>
142
</div>
143

    
144
</div>
(2-2/4)