diff --git a/claims/directLinking/directLinking.component.ts b/claims/directLinking/directLinking.component.ts index 667229ad..35a9f3dd 100644 --- a/claims/directLinking/directLinking.component.ts +++ b/claims/directLinking/directLinking.component.ts @@ -55,12 +55,6 @@ export class DirectLinkingComponent { if (this.type != null && this.showOptions.linkTo != null) { this.type = (this.validEntityTypes.indexOf(this.type) != -1) ? this.type : 'publication'; this.showOptions.linkTo = (this.validEntityTypes.indexOf(this.showOptions.linkTo) != -1 || this.showOptions.linkTo == "result") ? this.showOptions.linkTo : 'project'; - // this.show = (this.linkTo != "entity") ? "claim" : "entity"; - // this.linkType = this.linkTo; - // let isInlineResult: boolean = false; // is a link entity - entity - // if ((this.type == "publication" || this.type == "dataset" || this.type == "software") && ((this.linkTo == "publication" || this.linkTo == "dataset" || this.linkTo == "software" || this.linkTo == "orp") || this.linkTo == "entity")) { - // isInlineResult = true; - // } this.localStoragePrefix = (this.communityId ? (this.communityId + "_") : '') + this.type.substr(0, 3) + "_" + this.showOptions.linkTo.substr(0, 3) + "_"; if (localStorage.getItem(this.localStoragePrefix + "results")) { diff --git a/claims/linking/linkingGeneric.component.html b/claims/linking/linkingGeneric.component.html index 3210daba..6f5fe6b8 100644 --- a/claims/linking/linkingGeneric.component.html +++ b/claims/linking/linkingGeneric.component.html @@ -1,14 +1,12 @@ - - - + [showStepLine]="!inlineEntity"> -
  • Link to ( @@ -165,6 +164,7 @@
    STEP 2 - LINK SOURCES TO ENTITIES @@ -177,7 +177,9 @@
    diff --git a/claims/linking/linkingGeneric.component.ts b/claims/linking/linkingGeneric.component.ts index 636c9f96..b86fe413 100644 --- a/claims/linking/linkingGeneric.component.ts +++ b/claims/linking/linkingGeneric.component.ts @@ -181,7 +181,7 @@ export class LinkingGenericComponent { return 'active'; }else if(this.results.length > 0){ return 'done'; - }else if(this.sources.length == 0){ + }else if(this.sources.length == 0 && !this.inlineEntity){ return 'disabled'; }else{ return 'default';