Revision 59152
Added by Argiro Kokogiannaki almost 4 years ago
entitiesAutoComplete.component.ts | ||
---|---|---|
56 | 56 |
@Input() title = "Autocomplete"; |
57 | 57 |
@Output() addItem = new EventEmitter(); // when selected list changes update parent component |
58 | 58 |
@Output() selectedValueChanged = new EventEmitter(); // when changed a method for filtering will be called |
59 |
@Output() updateValueLabel = new EventEmitter(); //when the value is id sends an event to update the value (for meta tags) |
|
59 | 60 |
@Input() public list = []; // the entries resulted after filtering function |
60 | 61 |
@Input() public selected = []; // the entries selected from user |
61 | 62 |
@Input() public keywordlimit = 3; // the minimum length of keyword |
... | ... | |
181 | 182 |
this.selectedValueChanged.emit({ |
182 | 183 |
value: this.selectedValue |
183 | 184 |
}); |
185 |
this.updateValueLabel.emit({ |
|
186 |
value:"" |
|
187 |
}); |
|
184 | 188 |
|
185 | 189 |
|
186 | 190 |
} |
... | ... | |
213 | 217 |
this.selectedValueChanged.emit({ |
214 | 218 |
value: this.selectedValue |
215 | 219 |
}); |
220 |
this.updateValueLabel.emit({ |
|
221 |
value:this.showItem(item) |
|
222 |
}); |
|
216 | 223 |
this.focus=false; |
217 | 224 |
|
218 | 225 |
} |
... | ... | |
267 | 274 |
this.sub = this._search.fetchByType(this.selectedValue,this.entityType, this.properties).subscribe( |
268 | 275 |
data => { |
269 | 276 |
this.selected.push( data[0]); |
277 |
this.updateValueLabel.emit({ |
|
278 |
value:this.showItem(this.selected[0]) |
|
279 |
}); |
|
270 | 280 |
this.showInput = false; |
271 | 281 |
}, |
272 | 282 |
err => { |
Also available in: Unified diff
[Library|Trunk]
JSONLD:
-Home page:
-Add description in Website with search action
-In every search page add description based on the filters
-In (project, content provider, organization) landing add description if available otherwise use the title
-In project add id in funder entity
Autocomplete: create event emitter to update entity or refine result label (used in jsonld)