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 != undefined && result['title'].name != ''"
14
                    [innerHTML]="result['title'].name">
15
                </p>
16
                <p *ngIf="result['title'].name == undefined || result['title'].name == ''">
17
                    [no title available]
18
                </p>
19
            </a>
20
        </h4>
21
        <span *ngIf="result.types && result.types.length > 0" [class]="'uk-label custom-label label-blue label-'+result.entityType" title="Type">{{result.types.join(", ")}}</span>
22
        <span *ngIf="result.languages && result.languages.length > 0" class="uk-label custom-label  label-language " title="Language">{{result.languages.join(", ")}}</span>
23
        <span *ngIf="result.title && result.title.accessMode" [class]="'uk-label custom-label  label-'+ result.title.accessMode " title="Access Mode">{{result.title.accessMode}}</span>
24
        <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">
25

    
26
            <span *ngIf="funder.funderShortname">
27
              {{funder.funderShortname}}</span><span
28

    
29
              *ngIf="i < result['funders'].length-1">, </span>
30
        </span></span>
31
        <span *ngIf="result.openAccessMandate != undefined && result.openAccessMandate " class="uk-label custom-label label-openaccessmandate " title="Open Access mandate">Open Access mandate</span>
32

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

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

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

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

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

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

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

    
85

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

    
90
              <span *ngIf="funder.funderShortname">
91
                {{funder.funderShortname}}</span><span
92

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

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

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

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

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

    
137

    
138
    </li>
139
</ul>
(30-30/36)