Project

General

Profile

1
 <ul [class]="'uk-list uk-list-divider  uk-margin '+custom_class">
2
  <!--div *ngIf="status == errorCodes.NONE" class="uk-alert uk-alert-primary uk-animation-fade" role="alert">No Results found</div>
3
  <div *ngIf="status == errorCodes.ERROR" class="uk-alert uk-alert-warning uk-animation-fade" role="alert">An Error Occured</div>
4
  <div *ngIf="status == errorCodes.OUT_OF_BOUND" class="uk-alert uk-alert-warning uk-animation-fade" role="alert">Requested page out of bounds</div>
5
  <div *ngIf="status == errorCodes.NOT_AVAILABLE" class="uk-alert uk-alert-danger uk-animation-fade" role="alert">Service not available</div>
6
  <div *ngIf="status == errorCodes.LOADING && showLoading"   class="uk-animation-fade uk-margin-large-top  uk-width-1-1" role="alert"><img src="./assets/loading.gif" class="uk-align-center" alt="Loading"></div-->
7
  <errorMessages [status]="[status]" [type]="'results'"></errorMessages>
8

    
9
    <li *ngFor="let result of results" class="uk-animation-fade">
10
        <!-- <h4 class = "{{result.title.accessMode}} {{result.title.sc39}}" [title] = result.title.accessMode > -->
11
        <h4  [title] = result.title.accessMode >
12
            <a [queryParams]="routerHelper.createQueryParam(urlParam,result.id)" routerLinkActive="router-link-active" routerLink="/search/{{type}}">
13
              <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>
14
              <p *ngIf="!result['title'].name && !result.acronym">[no title available]<span *ngIf="result.code">({{result.code}})</span></p>
15
            </a>
16
        </h4>
17
        <span *ngIf="result.types && result.types.length > 0" [class]="'uk-label custom-label label-blue label-'+result.entityType" title="Type">{{result.types.join(", ")}}</span>
18
        <span *ngIf="result.languages && result.languages.length > 0" class="uk-label custom-label  label-language " title="Language">{{result.languages.join(", ")}}</span>
19
        <span *ngIf="result.title && result.title.accessMode" [class]="'uk-label custom-label  label-'+ result.title.accessMode " title="Access Mode">{{result.title.accessMode}}</span>
20
        <!-- <span *ngIf="result['funders'] && result['funders'].length > 0" class="uk-label custom-label label-funder " title="Funder"><span *ngFor="let funder of result['funders'] let i=index">
21

    
22
            <span *ngIf="funder.funderShortname">
23
              {{funder.funderShortname}}</span><span
24

    
25
              *ngIf="i < result['funders'].length-1">, </span>
26
        </span></span> -->
27
        <span *ngIf="result['funderShortname']" class="uk-label custom-label label-funder " title="Funder">{{result['funderShortname']}}></span>
28
        <span *ngIf="result.openAccessMandate != undefined && result.openAccessMandate " class="uk-label custom-label label-openaccessmandate " title="Open Access mandate">Open Access mandate</span>
29

    
30
        <span *ngIf="result.title  && result.title.sc39" class="uk-label custom-label label-sc39 " title="Special Clause 39">Special Clause 39</span>
31
        <div class="uk-margin-small-top">
32
            <span *ngIf="result['authors'] != undefined" class="resultsAuthors uk-margin-small-top" style="font-style: italic;">
33
                <span *ngFor="let author of result['authors'].slice(0,15)">
34
                    <!--a href="{{author['url']}}"-->
35
                    <!--a [queryParams]="routerHelper.createQueryParams(['author','au'],[quote(author['name']),'and'])" routerLinkActive="router-link-active" [routerLink]="linkToAdvancedSearchPage">
36
                        {{author['name']}};
37
                    </a-->
38
                    {{author}};
39
                </span>
40
                <span *ngIf="result['authors'].length > 15">...</span>
41
            </span>
42
            <span *ngIf="result.year != undefined && result.year != ''">
43
                ({{result.year}})
44
            </span>
45
        </div>
46

    
47
        <div *ngIf="result.publisher != undefined && result.publisher != ''"><span class="uk-text-bold">Publisher:</span> {{result.publisher}}</div>
48
        <!-- <div *ngIf="result['compatibility'] != undefined && result['compatibility'] != ''">
49
            Compatibility: {{result.compatibility}}
50
        </div> -->
51
        <approved-by-community [contentProviderId]="result.id"></approved-by-community>
52
        <span *ngIf="result['type'] != undefined && result['type'] != ''" class="uk-label custom-label label-blue label-dataprovider" title="Type"> {{result['type']}}</span>
53
        <!-- <div *ngIf="result['type'] != undefined && result['type'] != ''">Type: {{result['type']}}</div> -->
54
        <span *ngIf="result['compatibility'] != undefined && result['compatibility'] != ''" class="uk-label custom-label  label-compatibility" title="Compatibility">{{result.compatibility}}</span>
55

    
56
        <!-- <div *ngIf="result.country != undefined && result.country != ''">Country: {{result.country}}</div> -->
57
        <span *ngIf="result.country != undefined && result.country != ''" class="uk-label custom-label  label-country" title="Country"> {{result.country}}</span>
58
        <div *ngIf="result['projects'] != undefined">
59
            <span> Project: </span>
60
            <span *ngFor="let project of result['projects'].slice(0,15) let i=index">
61
                <!--a *ngIf="project.url != undefined" href="{{project.url}}"-->
62
                    <a *ngIf="project.id" [queryParams]="{projectId: project.id}" routerLinkActive="router-link-active" routerLink="/search/project">
63
                        {{project['funderShortname']?project['funderShortname']:project['funderName']}}
64
                        | {{ project['acronym']?project['acronym']:(project['title'].length>25?project['title'].substring(0,25)+'...':project['title'])}} ({{project.code}})</a><span
65

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

    
70
                *ngIf="i < result['projects'].length-1">,</span>
71
            </span>
72
            <span *ngIf="result['projects'].length > 15">...</span>
73
        </div>
74

    
75
        <div *ngIf="result.description != undefined && result.description != ''">
76
            <div class="text-justify descriptionText">
77
                {{result.description}}
78
            </div>
79
        </div>
80

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

    
83

    
84
        <!-- <div *ngIf="result['funders'] != undefined">
85
          <span> Funder: </span>
86
          <span *ngFor="let funder of result['funders'] let i=index">
87

    
88
              <span *ngIf="funder.funderShortname">
89
                {{funder.funderShortname}}</span><span
90

    
91
                *ngIf="i < result['funders'].length-1">,</span>
92
          </span>
93
          <span *ngIf="result.startYear && result.endYear"> (start {{result.startYear}} - end {{result.endYear}})</span>
94
        </div> -->
95
        <div *ngIf="result.startYear && result.endYear"> Start year: {{result.startYear}} - End year: {{result.endYear}}</div>
96
        <div *ngIf="showOrganizations && result['organizations'] != undefined && result['organizations'].length > 0">
97
            <span> Organization: </span>
98
            <span *ngFor="let organization of result['organizations'].slice(0,10) let i=index">
99
                <!--a *ngIf="organization.url != undefined" href="{{organization.url}}"-->
100
                <a *ngIf="organization.id" [queryParams]="{organizationId: organization.id}" routerLinkActive="router-link-active" routerLink="/search/organization">
101
                        {{organization.name}}</a><span
102

    
103
                    *ngIf="!organization.id">
104
                        {{organization.name}}</span><span
105

    
106
                    *ngIf="(i < result['organizations'].length-1) && (i < 9)">,</span>
107
            </span>
108
            <span *ngIf="result['organizations'].length > 10">...</span>
109
        </div>
110

    
111
        <div *ngIf="result['countries'] && result['countries'].length > 0">
112
            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>
113
        </div>
114
        <div *ngIf="result['websiteURL'] != undefined && result['websiteURL'] != ''">
115
            <span>Website URL: </span>
116
            <span>
117
                <a href="{{result['websiteURL']}}" target="_blank" class="custom-external custom-icon">
118
                    {{result['websiteURL']}}
119
                </a>
120
            </span>
121
        </div>
122
        <div *ngIf="result['OAIPMHURL'] != undefined && result['OAIPMHURL'] != ''">
123
            <span>OAI-PMH URL: </span>
124
            <span>
125
                <a href="{{result['OAIPMHURL']}}" target="_blank" class="custom-external custom-icon">
126
                    {{result['OAIPMHURL']}}
127
                </a>
128
            </span>
129
        </div>
130

    
131
        <div *ngIf="showSubjects && result['subjects'] && result['subjects'].length > 0">
132
            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>
133
        </div>
134

    
135

    
136
    </li>
137
</ul>
(30-30/36)