Project

General

Profile

« Previous | Next » 

Revision 58591

[Library|Trunk]

Impact factors:
update according to the mocks
show them also in beta

View differences:

modules/uoa-services-library/trunk/ng-openaire-library/src/app/searchPages/searchUtils/searchResult.component.ts
34 34
    // console.log(data[1]);
35 35
    let dois = encodeURIComponent(this.results.map((result) => result.DOI).join(","));
36 36
    // console.log(dois);
37
    if(dois.length > 0 && this.showImpactFactors && this.properties.environment == "development") {
37
    if(dois.length > 0 && this.showImpactFactors && this.properties.environment != "production") {
38 38
      let url = 'http://bip.imis.athena-innovation.gr:4000/paper/scores/batch/' + dois;
39 39
      this.http.get(url).subscribe((data_received) => {
40 40
        for (let i = 0; i < this.previewResults.length; i++) {
modules/uoa-services-library/trunk/ng-openaire-library/src/app/utils/result-preview/result-preview.component.html
271 271
    {{result.description}}
272 272
  </p>
273 273
</div>
274
<div *ngIf="result.pop_inf && result.DOI">
275
  <span  title = "Popularity" id = "popularity-{{result.pop_inf[0]}}" class="fa fa-fire"></span> &nbsp;<!-- ATHENA CODE -->
276
  <span title = "Influence" id = "influence-{{result.pop_inf[1]}}" class="fa fa-university"></span> &nbsp;<!-- ATHENA CODE -->
277
  <span><a title ="Link to Bip!Finder" class="fas fa-external-link-alt" target="_blank" href = "https://bip.imis.athena-innovation.gr/site/details?id={{result.DOI}}"></a></span>
274
<div>
275
  <!-- Impact Factors-->
276
  <span *ngIf="result.pop_inf && result.DOI" class="uk-flex uk-flex-middle">
277
    <!--Popularity -->
278
    <a  title = "Popularity"  class="popularity-{{result.pop_inf[0]}}  uk-margin-right uk-flex uk-flex-middle">
279
      <svg xmlns="http://www.w3.org/2000/svg" width="10.749" height="14.33" viewBox="0 0 10.749 14.33"><defs><!--<style>.a{fill:#d51717;}</style>--></defs><path class="a" d="M10.382.67a14.44,14.44,0,0,1,.5,3.225A2.331,2.331,0,0,1,8.589,6.4,2.445,2.445,0,0,1,6.15,3.895l.02-.242A9.25,9.25,0,0,0,4,9.625a5.375,5.375,0,0,0,10.749,0A11.5,11.5,0,0,0,10.382.67ZM9.18,12.985a2.134,2.134,0,0,1-2.163-2.11A2.1,2.1,0,0,1,8.9,8.779a5.181,5.181,0,0,0,3.1-1.733,9.374,9.374,0,0,1,.4,2.714A3.226,3.226,0,0,1,9.18,12.985Z" transform="translate(-4 -0.67)"/></svg>
280
      <span class="uk-margin-small-left"
281
      >
282
        {{" "+(result.pop_inf[0]=='A'?'High':'')+(result.pop_inf[0]=='B'?'Average':'')+(result.pop_inf[0]=='C'?'Low':'')+
283
      " popularity" }}</span>
284

  
285
    </a>
286
    <div
287
      class="default-dropdown uk-margin-remove-top uk-padding-medium"
288
      uk-dropdown="pos: bottom-left; mode:click" style="min-width: 70px !important;">
289
        <span class=" uk-flex uk-flex-middle">
290
          <span  class="popularity-{{result.pop_inf[0]}}">
291
             <svg xmlns="http://www.w3.org/2000/svg" width="20.234" height="26.974"
292
                  viewBox="0 0 20.234 26.974"><defs> </defs><path class="a" d="M16.014.67a27.181,27.181,0,0,1,.936,6.07c0,2.605-1.707,4.717-4.312,4.717A4.6,4.6,0,0,1,8.047,6.74l.038-.455A17.411,17.411,0,0,0,4,17.527a10.117,10.117,0,0,0,20.234,0A21.643,21.643,0,0,0,16.014.67ZM13.75,23.85A4.016,4.016,0,0,1,9.678,19.88c0-2.049,1.328-3.49,3.554-3.946a9.753,9.753,0,0,0,5.843-3.263,17.645,17.645,0,0,1,.746,5.109,6.072,6.072,0,0,1-6.07,6.07Z" transform="translate(-4 -0.67)"/></svg>
293
            </span>
294
          <span class=" uk-margin-small-left uk-text-large"
295
          >{{" "+(result.pop_inf[0]=='A'?'High':'')+(result.pop_inf[0]=='B'?'Average':'')+(result.pop_inf[0]=='C'?'Low':'')+
296
          " popularity" }}</span>
297
          <span
298
            class="uk-margin-small-top uk-margin-small-left">{{" "+(result.pop_inf[0]=='A'?'In top  0.01%':'')+(result.pop_inf[0]=='B'?'In top 1%':'')+(result.pop_inf[0]=='C'?'In bottom 99%':'')}}</span>
299
        </span>
300

  
301
        <div class="uk-text-muted uk-margin uk-text-small">Popularity: Citation-based measure reflecting the current impact.</div>
302
        <div>
303
          <a title ="Link to Bip!Finder" class=" uk-float-right" target="_blank" href =
304
            "https://bip.imis.athena-innovation.gr/site/details?id={{result.DOI}}">View more details</a>
305
        </div>
306
    </div>
307
    <!--Influence -->
308
    <a title = "Influence"   class="influence-{{result.pop_inf[1]}} uk-flex uk-flex-middle">
309
      <svg xmlns="http://www.w3.org/2000/svg" width="12.667" height="14" viewBox="0 0 12.667 14"><defs><!--<style>.a{fill:#e1920a;}</style>--></defs><path class="a" d="M3.333,7v4.667h2V7Zm4,0v4.667h2V7ZM2,15H14.667V13H2Zm9.333-8v4.667h2V7Zm-3-6L2,4.333V5.667H14.667V4.333Z" transform="translate(-2 -1)"/></svg>
310
      <span class="uk-margin-small-left"
311
      >{{" "+(result.pop_inf[1]=='A'?'Strong':'')+(result.pop_inf[1]=='B'?'Average':'')+(result.pop_inf[1]=='C'?'Weak':'')+
312
      " influence" }}</span>
313
    </a>
314
    <div
315
      class="default-dropdown uk-margin-remove-top uk-padding-medium"
316
      uk-dropdown="pos: bottom-left; mode:click" style="min-width: 70px !important;">
317
        <span class=" uk-flex uk-flex-middle">
318
          <span  class="influence-{{result.pop_inf[1]}}">
319
             <svg xmlns="http://www.w3.org/2000/svg" width="24.299" height="26.857" viewBox="0 0 24.299 26.857"><defs><style>.a{fill:#464646;}</style></defs><path class="a" d="M4.558,12.51v8.952H8.394V12.51Zm7.673,0v8.952h3.837V12.51ZM2,27.857H26.3V24.02H2ZM19.9,12.51v8.952h3.837V12.51ZM14.149,1,2,7.394V9.952H26.3V7.394Z" transform="translate(-2 -1)"/></svg>
320
            </span>
321
          <span class=" uk-margin-small-left uk-text-large"
322
          >{{" "+(result.pop_inf[1]=='A'?'Strong':'')+(result.pop_inf[1]=='B'?'Average':'')+(result.pop_inf[1]=='C'?'Weak':'')+
323
          " influence" }}</span>
324
          <span
325
            class="uk-margin-small-top uk-margin-small-left">{{" "+(result.pop_inf[1]=='A'?'In top  0.01%':'')+(result.pop_inf[1]=='B'?'In top 1%':'')+(result.pop_inf[1]=='C'?'In bottom 99%':'')}}</span>
326
        </span>
327

  
328
        <div class="uk-text-muted uk-margin uk-text-small">Influence: Citation-based measure reflecting the total impact.</div>
329
        <div>
330
          <a title ="Link to Bip!Finder" class=" uk-float-right" target="_blank" href =
331
            "https://bip.imis.athena-innovation.gr/site/details?id={{result.DOI}}">View more details</a>
332
        </div>
333
    </div>
334
  </span>
278 335
</div>
modules/uoa-services-library/trunk/ng-openaire-library/src/assets/library.css
2061 2061
.uk-text-normal{
2062 2062
    font-weight: 400;
2063 2063
}
2064

  
2065

  
2066

  
2067
/*
2068
Impact Factor -  ATHENA CODE */
2069
.popularity-A svg .a, .influence-A svg .a{
2070
    fill:#d51717;
2071
}
2072
.popularity-B  svg .a, .influence-B svg  .a {
2073
    fill: #e1920a;
2074
}
2075
.popularity-C svg  .a, .influence-C svg .a {
2076
    fill: #444;
2077
}

Also available in: Unified diff