Revision 53724
Added by Argiro Kokogiannaki almost 6 years ago
claimResults.component.ts | ||
---|---|---|
49 | 49 |
|
50 | 50 |
} |
51 | 51 |
add(item){ |
52 |
if(this.selectedResults.length > 150){ |
|
53 |
UIkit.notification({ |
|
54 |
message : 'Your basket exceeds the number of allowed results (150)', |
|
55 |
status : 'warning', |
|
56 |
timeout : 1500, |
|
57 |
pos : 'top-center' |
|
58 |
}); |
|
59 |
return; |
|
60 |
} |
|
52 | 61 |
var found:boolean = this.isSelected( item.id); |
53 | 62 |
if (!found) { |
54 | 63 |
this.selectedResults.push(item); |
55 | 64 |
|
56 | 65 |
UIkit.notification({ |
57 |
message : 'A new research result added in the basket.',
|
|
66 |
message : 'A new research result added in your basket.',
|
|
58 | 67 |
status : 'primary', |
59 |
timeout : 1000,
|
|
68 |
timeout : 1500,
|
|
60 | 69 |
pos : 'top-center' |
61 | 70 |
}); |
62 | 71 |
if(this.results != null){ |
... | ... | |
64 | 73 |
} |
65 | 74 |
}else{ |
66 | 75 |
UIkit.notification({ |
67 |
message : 'The research result is already on your basket.',
|
|
76 |
message : 'The research result is already in your basket.',
|
|
68 | 77 |
status : 'warning', |
69 |
timeout : 1000,
|
|
78 |
timeout : 1500,
|
|
70 | 79 |
pos : 'top-center' |
71 | 80 |
}); |
72 | 81 |
} |
Also available in: Unified diff
jsonld:
move files in sharedComponents/schema2jsonld/model - not used only in
add Organization, use JsonldDocument as the default class and extend Dataset and Organization
add jsonld in search-find, org/datasource/project landing
Claims: add limit in the number of results allowed to add in the basket