Claims: Context Search form:
alphabetical order for communities preselect community id for connect git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@52704 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
parent
9089563538
commit
fa10080fb0
|
@ -126,6 +126,7 @@ public showComponent:boolean = true ; // for claimed started from landing pages
|
|||
@Input() public results;
|
||||
@Input() public inlineEntity;
|
||||
@Input() public properties:EnvProperties;
|
||||
@Input() communityId:string= null;
|
||||
|
||||
public selectedCommunityId:string = "0";
|
||||
public selectedCategoryId:string ="0";
|
||||
|
@ -203,7 +204,15 @@ getCommunities () {
|
|||
this._contextService.getCommunities(this.properties.contextsAPI).subscribe(
|
||||
data => {
|
||||
this.communities = data;
|
||||
if(this.communities.length > 0){
|
||||
this.communities.sort((n1,n2)=> n1.label > n2.label);
|
||||
}
|
||||
this.loading = false;
|
||||
if(this.communityId != null){
|
||||
//preselect community
|
||||
this.selectedCommunityId = this.communityId;
|
||||
this.communityChanged()
|
||||
}
|
||||
},
|
||||
err => {
|
||||
console.log(err);
|
||||
|
|
|
@ -71,7 +71,7 @@
|
|||
</li>
|
||||
<li>
|
||||
|
||||
<claim-contexts-search-form [(selectedList)]="contexts" [projects]="projects" [results]="results" [inlineEntity]="inlineResult" [(properties)]=properties> </claim-contexts-search-form>
|
||||
<claim-contexts-search-form [communityId]=communityId [(selectedList)]="contexts" [projects]="projects" [results]="results" [inlineEntity]="inlineResult" [(properties)]=properties> </claim-contexts-search-form>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
|
|
|
@ -22,6 +22,7 @@ declare var UIkit:any;
|
|||
export class LinkingGenericComponent {
|
||||
|
||||
@Input() bulkMode: boolean = false;
|
||||
@Input() communityId:string= null;
|
||||
sourceType:string;
|
||||
targetType:string;
|
||||
step:number = 1;
|
||||
|
|
Loading…
Reference in New Issue