Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/batch of fixes jul week2 #2013

Merged
merged 5 commits into from
Jul 11, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
fix-robots-for-ready-for-index-users
  • Loading branch information
leomendoza123 committed Jul 11, 2023
commit c123b9c2b5332dd01fdcd7c94b6f25f305f14a85
15 changes: 10 additions & 5 deletions src/app/record/pages/my-orcid/my-orcid.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,16 @@ export class MyOrcidComponent implements OnInit, OnDestroy {
this.userInfo = userRecord?.userInfo
this.checkLoadingState(userRecord)
this.recordWithIssues = userRecord?.userInfo?.RECORD_WITH_ISSUES
this.readyForIndexing =
userRecord?.userInfo?.READY_FOR_INDEXING === 'true'

console.log('userRecord?.userInfo? ', userRecord?.userInfo)
if (userRecord?.userInfo) {
console.log(userRecord?.userInfo?.READY_FOR_INDEXING)
this.readyForIndexing =
userRecord?.userInfo?.READY_FOR_INDEXING === 'true'
if (this.publicOrcid && !this.readyForIndexing) {
this._robotsMeta.disallowRobots()
}
}

this.userNotFound = userRecord?.userInfo?.USER_NOT_FOUND
this.userRecord = userRecord
Expand All @@ -133,9 +141,6 @@ export class MyOrcidComponent implements OnInit, OnDestroy {
this.observeSessionUpdates()
}

if (this.publicOrcid && !this.readyForIndexing) {
this._robotsMeta.disallowRobots()
}
this._openGraph.addOpenGraphData(userRecord, { force: true })
}),
switchMap(() => this._togglz.getTogglz().pipe(first())),
Expand Down