Linking:
update field claimedInDashboard to get the communityId in case of connect dashboard git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@57390 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
parent
ea333e3666
commit
47031fbba1
|
@ -74,7 +74,7 @@ export class ClaimInsertComponent {
|
||||||
@Input() errors: ClaimsErrorMessage[];
|
@Input() errors: ClaimsErrorMessage[];
|
||||||
@Output() insertFinished = new EventEmitter();
|
@Output() insertFinished = new EventEmitter();
|
||||||
@Input() defaultColors:boolean;
|
@Input() defaultColors:boolean;
|
||||||
|
@Input() communityId:string= null;
|
||||||
public claiming = false;
|
public claiming = false;
|
||||||
|
|
||||||
public claims: number = 0;
|
public claims: number = 0;
|
||||||
|
@ -114,7 +114,7 @@ export class ClaimInsertComponent {
|
||||||
this.loading.open();
|
this.loading.open();
|
||||||
let claims: ClaimRecord2Insert[] = [];
|
let claims: ClaimRecord2Insert[] = [];
|
||||||
let directclaims: DirectIndexRecord[] = [];
|
let directclaims: DirectIndexRecord[] = [];
|
||||||
let dashboard = this.properties.environment+"_"+this.properties.dashboard;
|
let dashboard = this.properties.environment+"_"+this.properties.dashboard + (this.communityId?("_"+this.communityId):'');
|
||||||
for (let j = 0; j < this.sources.length; j++) { // if an external result -> direct insert in the index
|
for (let j = 0; j < this.sources.length; j++) { // if an external result -> direct insert in the index
|
||||||
const result: ClaimEntity = this.sources[j];
|
const result: ClaimEntity = this.sources[j];
|
||||||
if (result.result && ["crossref", "datacite", "orcid"].indexOf(result.result.source) != -1) {
|
if (result.result && ["crossref", "datacite", "orcid"].indexOf(result.result.source) != -1) {
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
[results]="results" [sources]="sources"
|
[results]="results" [sources]="sources"
|
||||||
[localStoragePrefix]="localStoragePrefix" [inlineEntity]="inlineEntity"
|
[localStoragePrefix]="localStoragePrefix" [inlineEntity]="inlineEntity"
|
||||||
[showOptions]="showOptions" [properties]=properties [pageContents]="pageContents"
|
[showOptions]="showOptions" [properties]=properties [pageContents]="pageContents"
|
||||||
[defaultColors]="(communityId?false:true)"
|
[defaultColors]="(communityId?false:true)" [communityId]="communityId"
|
||||||
>
|
>
|
||||||
</metadata-preview>
|
</metadata-preview>
|
||||||
<div id="tm-main" class="uk-section uk-padding-remove-top tm-middle" *ngIf="showOptions.show != 'claim'">
|
<div id="tm-main" class="uk-section uk-padding-remove-top tm-middle" *ngIf="showOptions.show != 'claim'">
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
<claim-insert [results]="results" [sources]="sources" [inlineEntity]="inlineEntity"
|
<claim-insert [results]="results" [sources]="sources" [inlineEntity]="inlineEntity"
|
||||||
[properties]=properties [localStoragePrefix]=localStoragePrefix
|
[properties]=properties [localStoragePrefix]=localStoragePrefix
|
||||||
class=" " [errors]="errors" (insertFinished)="runValidation(false); updateLocalStorage();"
|
class=" " [errors]="errors" (insertFinished)="runValidation(false); updateLocalStorage();"
|
||||||
[defaultColors]="defaultColors">
|
[defaultColors]="defaultColors" [communityId]="communityId">
|
||||||
</claim-insert>
|
</claim-insert>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -27,6 +27,7 @@ export class MetadataPreviewComponent {
|
||||||
@Input() defaultColors:boolean=true;
|
@Input() defaultColors:boolean=true;
|
||||||
@ViewChild(AlertModal) alertApplyAll;
|
@ViewChild(AlertModal) alertApplyAll;
|
||||||
@Input() localStoragePrefix: string = "";
|
@Input() localStoragePrefix: string = "";
|
||||||
|
@Input() communityId:string= null;
|
||||||
errors:ClaimsErrorMessage[] = [];
|
errors:ClaimsErrorMessage[] = [];
|
||||||
warnings:Message[] = [];
|
warnings:Message[] = [];
|
||||||
public commonAccessRights = "OPEN"; // for access rights- changes when user apply a change to every entity
|
public commonAccessRights = "OPEN"; // for access rights- changes when user apply a change to every entity
|
||||||
|
|
Loading…
Reference in New Issue