Revision 58606
Added by Argiro Kokogiannaki almost 4 years ago
searchResult.component.ts | ||
---|---|---|
39 | 39 |
this.http.get(url).subscribe((data_received) => { |
40 | 40 |
for (let i = 0; i < this.previewResults.length; i++) { |
41 | 41 |
this.previewResults[i].pop_inf = new Array<string>(); |
42 |
// console.log(data[1][i].DOI,'inf: ',data_received[i].pop_class,'and pop: ',data_received[i].inf_class); |
|
43 |
// researchResults[1].pop_inf[i].push(data[i].inf_class,data[i].pop_class); |
|
44 |
console.log(this.previewResults[i].DOI) |
|
45 | 42 |
if (this.previewResults[i].DOI != '' && this.previewResults[i].DOI != null) { |
46 | 43 |
this.previewResults[i].pop_inf.push(data_received[i].pop_class, data_received[i].inf_class); |
44 |
if(this.previewResults[i].pop_inf[0]=="A"){ |
|
45 |
// this.previewResults[i].pop_inf.push("High"); |
|
46 |
this.previewResults[i].pop_inf.push("Exceptional"); |
|
47 |
}else if(this.previewResults[i].pop_inf[0]=="B"){ |
|
48 |
// this.previewResults[i].pop_inf.push("Average"); |
|
49 |
this.previewResults[i].pop_inf.push("Substantial"); |
|
50 |
}else{ |
|
51 |
// this.previewResults[i].pop_inf.push("low"); |
|
52 |
this.previewResults[i].pop_inf.push("Average"); |
|
53 |
} |
|
54 |
if(this.previewResults[i].pop_inf[1]=="A"){ |
|
55 |
// this.previewResults[i].pop_inf.push("Strong"); |
|
56 |
this.previewResults[i].pop_inf.push("Exceptional"); |
|
57 |
}else if(this.previewResults[i].pop_inf[1]=="B"){ |
|
58 |
// this.previewResults[i].pop_inf.push("Average"); |
|
59 |
this.previewResults[i].pop_inf.push("Substantial"); |
|
60 |
}else{ |
|
61 |
// this.previewResults[i].pop_inf.push("Weak"); |
|
62 |
this.previewResults[i].pop_inf.push("Average"); |
|
63 |
} |
|
47 | 64 |
} |
48 | 65 |
} |
49 |
console.log(this.previewResults) |
|
50 | 66 |
|
51 | 67 |
}, error1 => { |
52 | 68 |
console.error("Failed to get Impact factors for elixir-gr") |
Also available in: Unified diff
[Library|Trunk]
Linking:
rename entity type to Result type
Deposit:
First page:
remove border
remove small text in first section paragraphs
remove padding from search form
Search:
go to first page when keyword changes
keep filters when keyword changes
Impact Factors:
update text (Exceptional,Substantial,Average)
Search bar:
pass parameters for advanced search
init keyword from params
if page not among search pages ignore keyword
when change to other entity clear parameters