Project

General

Profile

1
 <ul [class]="'uk-list uk-list-divider  uk-margin '+custom_class">
2
  <errorMessages [status]="[status]" [type]="'results'"></errorMessages>
3

    
4
    <li *ngFor="let result of results" class="uk-animation-fade">
5
        <!-- <h4 class = "{{result.title.accessMode}} {{result.title.sc39}}" [title] = result.title.accessMode > -->
6
        <div  [title] = result.title.accessMode  class="uk-h5">
7
            <a [queryParams]="routerHelper.createQueryParam(urlParam,result.id)" routerLinkActive="router-link-active" routerLink="/search/{{type}}">
8
              <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>
9
              <p *ngIf="!result['title'].name && !result.acronym">[no title available]<span *ngIf="result.code"> ({{result.code}})</span></p>
10
            </a>
11
        </div>
12
        <span *ngIf="result.types && result.types.length > 0"
13
              [class]="'uk-label custom-label label-blue label-'+result.entityType"
14
              title="Type">{{result.types.join(", ")}}</span>{{' '}}
15
        <span *ngIf="result.programmingLanguages && result.programmingLanguages.length > 0" class="uk-label custom-label  label-progrLanguage " title="Programming Language">{{result.programmingLanguages.join(", ")}}</span>{{' '}}
16
        <span *ngIf="result.languages && result.languages.length > 0" class="uk-label custom-label  label-language " title="Language">{{result.languages.join(", ")}}</span>{{' '}}
17
        <span *ngIf="result.countriesForResults && result.countriesForResults.length > 0" class="uk-label custom-label  label-country " title="Country">{{result.countriesForResults.join(", ")}}</span>{{' '}}
18
        <span *ngIf="result.title && result.title.accessMode" [class]="'uk-label custom-label  label-'+ result.title.accessMode " title="Access Mode">{{result.title.accessMode}}</span>{{' '}}
19
        <span *ngIf="result['funderShortname']" class="uk-label custom-label label-funder " title="Funder">{{result['funderShortname']}}</span>{{' '}}
20
        <span *ngIf="result.openAccessMandatePublications != undefined && result.openAccessMandatePublications && (result.openAccessMandateDatasets == undefined || !result.openAccessMandateDatasets)"
21
               class="uk-label custom-label label-openaccessmandate " title="Open Access mandate for Publications">Open Access mandate for Publications</span>{{' '}}
22
        <span *ngIf="result.openAccessMandateDatasets != undefined && result.openAccessMandateDatasets && (result.openAccessMandatePublications == undefined || !result.openAccessMandatePublications)"
23
               class="uk-label custom-label label-openaccessmandate " title="Open Access mandate for Research Data">Open Access mandate for Research Data</span>{{' '}}
24
        <span *ngIf="result.openAccessMandatePublications != undefined && result.openAccessMandatePublications && result.openAccessMandateDatasets != undefined && result.openAccessMandateDatasets"
25
               class="uk-label custom-label label-openaccessmandate " title="Open Access mandate for Publications and Research Data">Open Access mandate for Publications and Research Data</span>{{' '}}
26

    
27
        <span *ngIf="result.title  && result.title.sc39" class="uk-label custom-label label-sc39 " title="Special Clause 39">Special Clause 39</span>{{' '}}
28
        <div class="uk-margin-small">
29
<!--            <span *ngIf="result['authors'] != undefined" class="resultsAuthors uk-margin-small-top" style="font-style: italic;">-->
30
<!--                <span *ngFor="let author of result['authors'].slice(0,15)">-->
31
<!--                    {{author}};-->
32
<!--                </span>-->
33
<!--                <span *ngIf="result['authors'].length > 15">...</span>-->
34
<!--            </span>-->
35
            <showAuthors [authors]="result['authors']" [authorsLimit]=15 [showAll]=false></showAuthors>
36
            <span *ngIf="result.year != undefined && result.year != ''">
37
                ({{result.year}})
38
            </span>
39
        </div>
40

    
41
        <div *ngIf="result.publisher != undefined && result.publisher != ''"><span class="uk-text-bold">Publisher:</span> {{result.publisher}}</div>
42
        <span *ngIf="result['type'] != undefined && result['type'] != ''" class="uk-label custom-label label-blue label-dataprovider" title="Type"> {{result['type']}}</span>{{' '}}
43
        <span *ngIf="result['compatibility'] != undefined && result['compatibility'] != ''" class="uk-label custom-label  label-compatibility" title="Compatibility">{{result.compatibility}}</span>{{' '}}
44
        <span *ngIf="result.country != undefined && result.country != ''" class="uk-label custom-label  label-country" title="Country"> {{result.country}}</span>{{' '}}
45
        <div *ngIf="result['projects'] != undefined">
46
            <span> Project: </span>
47
            <span *ngFor="let project of result['projects'].slice(0,15) let i=index">
48
                    <a *ngIf="project.id" [queryParams]="{projectId: project.id}" routerLinkActive="router-link-active" routerLink="/search/project">
49
                        {{project['funderShortname']?project['funderShortname']:project['funderName']}}
50
                        | {{ project['acronym']?project['acronym']:(project['title'].length>25?project['title'].substring(0,25)+'...':project['title'])}} ({{project.code}})</a><span
51

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

    
56
                *ngIf="i < result['projects'].length-1">,</span>
57
            </span>
58
            <span *ngIf="result['projects'].length > 15">...</span>
59
        </div>
60

    
61
        <div *ngIf="result.description">
62
            <div class="text-justify descriptionText">
63
                {{result.description}}
64
            </div>
65
        </div>
66

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

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

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

    
83
        <div *ngIf="result['countries'] && result['countries'].length > 0">
84
            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>
85
        </div>
86
        <div *ngIf="result['websiteURL'] != undefined && result['websiteURL'] != ''">
87
            <span>Website URL: </span>
88
            <span>
89
                <a href="{{result['websiteURL']}}" target="_blank" class="custom-external custom-icon">
90
                    {{result['websiteURL']}}
91
                </a>
92
            </span>
93
        </div>
94
        <div *ngIf="result['OAIPMHURL'] != undefined && result['OAIPMHURL'] != ''">
95
            <span>OAI-PMH URL: </span>
96
            <span>
97
                <a href="{{result['OAIPMHURL']}}" target="_blank" class="custom-external custom-icon">
98
                    {{result['OAIPMHURL']}}
99
                </a>
100
            </span>
101
        </div>
102

    
103
        <div *ngIf="showSubjects && result['subjects'] && result['subjects'].length > 0">
104
            Subject: <span *ngFor="let subject of  result['subjects'].slice(0,10) let i = index">{{subject}}{{(i < ( result['subjects'].slice(0,10).length-1))?", ":""}}{{(i ==  result['subjects'].slice(0,10).length-1 &&  result['subjects'].length > 10)?"...":""}}</span>
105
        </div>
106

    
107

    
108
    </li>
109
</ul>
(35-35/45)