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">
4

    
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
        </p>
55
    </div>
56
    <!--invite  *ngIf="communityId != null && communityId != '' && community" [communityId]=communityId [communityName]=community.shortTitle> </invite-->
57
    <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="">
58
      <div *ngIf="publicationTotal != null && IsEntityEnabled('publication')" class="uk-first-column">
59
        <div class="uk-card uk-card-default uk-card-small uk-card-body">
60
          <div>
61
            <a [queryParams]=params routerLinkActive="router-link-active" routerLink="/search/find/publications" ><h3 class="uk-card-title">{{publicationTotal|number}}</h3>
62
            <p>publications</p></a>
63
          </div>
64
        </div>
65
      </div>
66
      <div *ngIf="researchDataTotal != null && IsEntityEnabled('dataset')">
67
        <div class="uk-card uk-card-default uk-card-small uk-card-body">
68
          <div>
69
            <a [queryParams]=params routerLinkActive="router-link-active" routerLink="/search/find/datasets"><h3 class="uk-card-title">{{researchDataTotal|number}}</h3>
70
            <p>research data</p></a>
71
          </div>
72
        </div>
73
      </div>
74
      <div *ngIf="softwareTotal != null && IsEntityEnabled('software')">
75
        <div class="uk-card uk-card-default uk-card-small uk-card-body">
76
          <div>
77
            <a [queryParams]=params routerLinkActive="router-link-active" routerLink="/search/find/software"><h3 class="uk-card-title">{{softwareTotal|number}}</h3>
78
            <p>software</p></a>
79
          </div>
80
        </div>
81
      </div>
82
      <div *ngIf="orpTotal != null && IsEntityEnabled('orp')">
83
        <div class="uk-card uk-card-default uk-card-small uk-card-body">
84
          <div>
85
            <a [queryParams]=params routerLinkActive="router-link-active" routerLink="/search/find/other"><h3 class="uk-card-title">{{orpTotal|number}}</h3>
86
            <p>other research products</p></a>
87
          </div>
88
        </div>
89
      </div>
90
      <div *ngIf="projectTotal != null && IsEntityEnabled('project')">
91
        <div class="uk-card uk-card-default uk-card-small uk-card-body">
92
          <div>
93
            <a routerLinkActive="router-link-active" routerLink="/search/find/projects"><h3 class="uk-card-title">{{projectTotal|number}}</h3>
94
            <p>projects</p></a>
95
          </div>
96
        </div>
97
      </div>
98
        <!-- <div>
99
            <div class="uk-card uk-card-default uk-card-small uk-card-body">
100
              <div *ngIf="organizationTotal != null">
101
                <a [queryParams]=params routerLinkActive="router-link-active" routerLink="/search/find/organizations"><h3 class="uk-card-title">{{organizationTotals}}</h3>
102
                <p>organizations</p></a>
103
              </div>
104
            </div>
105
        </div> -->
106
      <div *ngIf="contentProviderTotal != null && IsEntityEnabled('datasource')">
107
          <div class="uk-card uk-card-default uk-card-small uk-card-body">
108
            <div>
109
              <a routerLinkActive="router-link-active" routerLink="/search/find/dataproviders"><h3 class="uk-card-title">{{contentProviderTotal|number}}</h3>
110
              <p>content providers</p></a>
111
            </div>
112
          </div>
113
      </div>
114
    </div>
115

    
116

    
117
     <!-- <div *ngIf="communityId != null && communityId != ''" class="uk-grid-small uk-margin-medium uk-grid" uk-grid="">
118
      <div  *ngIf="IsEntityEnabled('publication')"  class="uk-width-expand@m">
119
        <h2 class="uk-h3 uk-heading-line uk-text-primary">
120
          <span>Recent publications</span>
121
        </h2>
122
          <results-comp [(results)]=publicationResults [(total)]=publicationTotal resultType="publication" [community]=community [params]=params></results-comp>
123
      </div>
124
      <div *ngIf="IsEntityEnabled('dataset')" class="uk-width-expand@m">
125
        <h2 class="uk-h3 uk-heading-line uk-text-primary">
126
          <span>Recent research data</span>
127
        </h2>
128
          <results-comp [(results)]=researchDataResults [(total)]=researchDataTotal resultType="dataset" [community]=community [params]=params></results-comp>
129
      </div>
130
      <div *ngIf="IsEntityEnabled('software')" class="uk-width-expand@m">
131
        <h2 class="uk-h3 uk-heading-line uk-text-primary">
132
          <span>Recent software</span>
133
        </h2>
134
          <results-comp [(results)]=softwareResults [(total)]=softwareTotal resultType="software" [community]=community [params]=params></results-comp>
135
      </div>
136
      <div *ngIf="IsEntityEnabled('orp')" class="uk-width-expand@m">
137
        <h2 class="uk-h3 uk-heading-line uk-text-primary">
138
          <span>Recent other research products</span>
139
        </h2>
140
          <results-comp [(results)]=orpResults [(total)]=orpTotal resultType="other" [community]=community [params]=params></results-comp>
141
      </div>
142
    </div> -->
143

    
144

    
145
    <div>
146
      <div class="uk-margin-large-top">
147
          <h2 class="uk-h3 uk-text-primary">
148
              Recent research results
149
          </h2>
150
      </div>
151

    
152
      <ul class="uk-tab uk-margin-top" data-uk-tab="{connect: '#resultTabs'">
153
          <li *ngIf="IsEntityEnabled('publication')" class="uk-active"><a href="#">publications</a></li>
154
          <li *ngIf="IsEntityEnabled('dataset')" (click)="searchResearchData()"><a href="#">research data</a></li>
155
          <li *ngIf="IsEntityEnabled('software')" (click)="searchSoftware()"><a href="#">software</a></li>
156
          <li *ngIf="IsEntityEnabled('orp')" (click)="searchOrps()"><a href="#">other research products</a></li>
157
      </ul>
158

    
159
      <ul id="resultTabs" class="uk-switcher" style="min-height:450px;">
160
          <li *ngIf="IsEntityEnabled('publication')"><results-comp [(results)]=publicationResults [(total)]=publicationTotal resultType="publication" [community]=community [params]=params></results-comp></li>
161
          <li *ngIf="IsEntityEnabled('dataset')"><results-comp [(results)]=researchDataResults [(total)]=researchDataTotal resultType="dataset" [community]=community [params]=params></results-comp></li>
162
          <li *ngIf="IsEntityEnabled('software')"><results-comp [(results)]=softwareResults [(total)]=softwareTotal resultType="software" [community]=community [params]=params></results-comp></li>
163
          <li *ngIf="IsEntityEnabled('orp')"><results-comp [(results)]=orpResults [(total)]=orpTotal resultType="other" [community]=community [params]=params></results-comp></li>
164
      </ul>
165
    </div>
166

    
167
    <statistics-for-dashboard [currentMode]="'showInDashboard'"></statistics-for-dashboard>
168

    
169
  </article>
170
</div>
171

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