Project

General

Profile

1
<ul class="uk-list uk-list-divider  uk-margin">
2
   <li *ngFor="let result of results">
3
       <!-- <div class = "uk-h4 {{result.title.accessMode}} {{result.title.sc39}}" [title] = result.title.accessMode >
4
           <a [queryParams]="routerHelper.createQueryParam(urlParam,result.id)" routerLinkActive="router-link-active" routerLink="/search/{{type}}">
5
             <span *ngIf="result['title'].name || result.acronym">
6
               <span *ngIf="result.acronym">{{result.acronym}}</span>
7
               <span *ngIf="result.acronym && result['title'].name">-</span>
8
               <span *ngIf="result['title'].name" [innerHTML]="result['title'].name"></span>
9
               <span *ngIf="result.code">({{result.code}})</span>
10
             </span>
11
             <span *ngIf="!result['title'].name && !result.acronym">
12
               [no title available]
13
               <span *ngIf="result.code">({{result.code}})</span>
14
            </span>
15
           </a>
16
       </div> -->
17
       <h5  [title] = result.title.accessMode >
18
           <a [queryParams]="routerHelper.createQueryParam(urlParam,result.id)" routerLinkActive="router-link-active" routerLink="/search/{{type}}">
19
             <p *ngIf="result['title'].name || result.acronym"><span *ngIf="result.acronym">{{result.acronym}}</span><span *ngIf="result.acronym && result['title'].name">-</span><span *ngIf="result['title'].name" [innerHTML]="result['title'].name"></span><span *ngIf="result.code"> ({{result.code}})</span></p>
20
             <p *ngIf="!result['title'].name && !result.acronym">[no title available]<span *ngIf="result.code"> ({{result.code}})</span></p>
21
           </a>
22
       </h5>
23

    
24
       <div>
25
         <span *ngIf="result['authors'] != undefined">
26
           <span *ngFor="let author of result['authors'].slice(0,15)">
27
             {{author}};
28
           </span>
29
           <span *ngIf="result['authors'].length > 15">...</span>
30
         </span>
31
         <span *ngIf="result.year != undefined && result.year != ''">
32
           ({{result.year}})
33
         </span>
34
       </div>
35

    
36
       <span *ngIf="result.types && result.types.length > 0" [class]="'uk-label custom-label label-blue label-'+result.entityType" title="Type">{{result.types.join(", ")}}</span>
37
       <span *ngIf="result.programmingLanguages && result.programmingLanguages.length > 0" class="uk-label custom-label  label-progrLanguage " title="Programming Language">{{result.programmingLanguages.join(", ")}}</span>
38
       <span *ngIf="result.languages && result.languages.length > 0" class="uk-label custom-label  label-language " title="Language">{{result.languages.join(", ")}}</span>
39
       <span *ngIf="result.countriesForResults && result.countriesForResults.length > 0" class="uk-label custom-label  label-country " title="Country">{{result.countriesForResults.join(", ")}}</span>
40
       <span *ngIf="result.title && result.title.accessMode" [class]="'uk-label custom-label  label-'+ result.title.accessMode " title="Access Mode">{{result.title.accessMode}}</span>
41
       <span *ngIf="result['funderShortname']" class="uk-label custom-label label-funder " title="Funder">{{result['funderShortname']}}</span>
42
       <span *ngIf="result.openAccessMandate != undefined && result.openAccessMandate " class="uk-label custom-label label-openaccessmandate " title="Open Access mandate">Open Access mandate</span>
43
       <div *ngIf="result.publisher != undefined && result.publisher != ''"><span class="uk-text-bold">Publisher:</span> {{result.publisher}}</div>
44
       <span *ngIf="result['type'] != undefined && result['type'] != ''" class="uk-label custom-label label-blue label-dataprovider" title="Type"> {{result['type']}}</span>
45
       <span *ngIf="result['compatibility'] != undefined && result['compatibility'] != ''" class="uk-label custom-label  label-compatibility" title="Compatibility">{{result.compatibility}}</span>
46
       <span *ngIf="result.country != undefined && result.country != ''" class="uk-label custom-label  label-country" title="Country"> {{result.country}}</span>
47

    
48
       <div *ngIf="result['projects'] != undefined">
49
         <span> Project: </span>
50
         <span *ngFor="let project of result['projects'].slice(0,15) let i=index">
51
                 <a *ngIf="project.id" [queryParams]="{projectId: project.id}" routerLinkActive="router-link-active" routerLink="/search/project">
52
                     {{project['funderShortname']?project['funderShortname']:project['funderName']}}
53
                     | {{ project['acronym']?project['acronym']:(project['title'].length>25?project['title'].substring(0,25)+'...':project['title'])}} ({{project.code}})</a><span
54

    
55
                     *ngIf="!project.id">{{project['funderShortname']?project['funderShortname']:project['funderName']}}<span
56
                         *ngIf="project['acronym'] || project['title']"> | {{ project['acronym']?project['acronym']:(project['title'].length>25?project['title'].substring(0,25)+'...':project['title'])}}</span><span
57
                         *ngIf="project.code">({{project.code}})</span></span><span
58

    
59
             *ngIf="i < result['projects'].length-1">,</span>
60
         </span>
61
         <span *ngIf="result['projects'].length > 15">...</span>
62
        </div>
63

    
64
        <mark *ngIf="result.embargoEndDate != undefined && result.embargoEndDate != ''">Embargo End Date: {{result.embargoEndDate}}</mark>
65

    
66
        <div *ngIf="result.startYear && result.endYear"> Start year: {{result.startYear}} - End year: {{result.endYear}}</div>
67
        <div *ngIf="showOrganizations && result['organizations'] != undefined && result['organizations'].length > 0">
68
             <span> Organization: </span>
69
             <span *ngFor="let organization of result['organizations'].slice(0,10) let i=index">
70
                 <a *ngIf="organization.id" [queryParams]="{organizationId: organization.id}" routerLinkActive="router-link-active" routerLink="/search/organization">
71
                         {{organization.name}}</a><span
72

    
73
                     *ngIf="!organization.id">
74
                         {{organization.name}}</span><span
75

    
76
                     *ngIf="(i < result['organizations'].length-1) && (i < 9)">,</span>
77
             </span>
78
             <span *ngIf="result['organizations'].length > 10">...</span>
79
         </div>
80

    
81
        <div *ngIf="result['countries'] && result['countries'].length > 0">
82
            Country: <span *ngFor="let country of  result['countries'].slice(0,10) let i = index">{{country}}{{(i < ( result['countries'].slice(0,10).length-1))?", ":""}}{{(i ==  result['countries'].slice(0,10).length-1 &&  result['countries'].length > 10)?"...":""}}</span>
83
        </div>
84
        <div *ngIf="result['websiteURL'] != undefined && result['websiteURL'] != ''">
85
               <span>Website URL: </span>
86
               <span>
87
                   <a href="{{result['websiteURL']}}" target="_blank" class="custom-external custom-icon">
88
                       {{result['websiteURL']}}
89
                   </a>
90
               </span>
91
        </div>
92
        <div *ngIf="result['OAIPMHURL'] != undefined && result['OAIPMHURL'] != ''">
93
               <span>OAI-PMH URL: </span>
94
               <span>
95
                   <a href="{{result['OAIPMHURL']}}" target="_blank" class="custom-external custom-icon">
96
                       {{result['OAIPMHURL']}}
97
                   </a>
98
               </span>
99
         </div>
100
   </li>
101
</ul>
(34-34/36)