Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
4 changes: 0 additions & 4 deletions api/base/schemas/social-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,6 @@
"academiaInstitution": {
"description": "The academiaInstitution for the given user",
"type": "string"
},
"orcid": {
"description": "The orcid for the given user",
"type": "string"
}
},
"additionalProperties": false
Expand Down
7 changes: 0 additions & 7 deletions api_tests/users/views/test_user_detail.py
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,6 @@ def user_one(self):
twitter='userOneTwitter',
linkedIn='userOneLinkedIn',
impactStory='userOneImpactStory',
orcid='userOneOrcid',
researcherId='userOneResearcherId'
)
)
Expand Down Expand Up @@ -508,7 +507,6 @@ def data_new_user_one(self, user_one):
'twitter': ['http://twitter.com/newtwitter'],
'linkedIn': ['https://www.linkedin.com/newLinkedIn'],
'impactStory': 'https://impactstory.org/newImpactStory',
'orcid': 'http://orcid.org/newOrcid',
'researcherId': 'http://researcherid.com/rid/newResearcherId',
}},
}}
Expand Down Expand Up @@ -916,7 +914,6 @@ def test_partial_patch_user_logged_in(self, app, user_one, url_user_one):
assert user_one.social['twitter'] in social['twitter']
assert user_one.social['linkedIn'] in social['linkedIn']
assert user_one.social['impactStory'] in social['impactStory']
assert user_one.social['orcid'] in social['orcid']
assert user_one.social['researcherId'] in social['researcherId']
assert user_one.fullname == 'new_fullname'
assert user_one.suffix == 'The Millionth'
Expand All @@ -933,7 +930,6 @@ def test_patch_all_social_fields(self, app, user_one, url_user_one, mock_spam_he
'academiaProfileID': 'okokokok',
'ssrn': 'aaaa',
'impactStory': 'why not',
'orcid': 'ork-id',
'researchGate': 'Why are there so many of these',
'researcherId': 'ok-lastone',
'academiaInstitution': 'Center for Open Science'
Expand Down Expand Up @@ -1005,7 +1001,6 @@ def test_partial_patch_user_logged_in_no_social_fields(
assert user_one.social['twitter'] in social['twitter']
assert user_one.social['linkedIn'] in social['linkedIn']
assert user_one.social['impactStory'] in social['impactStory']
assert user_one.social['orcid'] in social['orcid']
assert user_one.social['researcherId'] in social['researcherId']
assert user_one.fullname == 'new_fullname'
assert user_one.suffix == 'The Millionth'
Expand Down Expand Up @@ -1056,7 +1051,6 @@ def test_put_user_logged_in(self, app, user_one, data_new_user_one, url_user_one
assert 'newtwitter' in social['twitter'][0]
assert 'newLinkedIn' in social['linkedIn'][0]
assert 'newImpactStory' in social['impactStory']
assert 'newOrcid' in social['orcid']
assert 'newResearcherId' in social['researcherId']
user_one.reload()
assert user_one.fullname == data_new_user_one['data']['attributes']['full_name']
Expand All @@ -1069,7 +1063,6 @@ def test_put_user_logged_in(self, app, user_one, data_new_user_one, url_user_one
assert 'newtwitter' in social['twitter'][0]
assert 'newLinkedIn' in social['linkedIn'][0]
assert 'newImpactStory' in social['impactStory']
assert 'newOrcid' in social['orcid']
assert 'newResearcherId' in social['researcherId']

def test_update_user_sanitizes_html_properly(
Expand Down
1 change: 0 additions & 1 deletion api_tests/users/views/test_user_exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ def user(self):
twitter='userOneTwitter',
linkedIn='userOneLinkedIn',
impactStory='userOneImpactStory',
orcid='userOneOrcid',
researcherId='userOneResearcherId'
)
)
Expand Down
1 change: 0 additions & 1 deletion osf/external/chronos/chronos.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,6 @@ def serialize_user(cls, user):
'GIVEN_NAME': user.given_name,
'FULLNAME': user.fullname,
'MIDDLE_NAME': user.middle_names,
'ORCID_ID': user.social.get('orcid', None),
'PARTNER_USER_ID': user._id,
'SURNAME': user.family_name,
}
Expand Down
1 change: 0 additions & 1 deletion osf/models/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,6 @@ class OSFUser(DirtyFieldsMixin, GuidMixin, BaseModel, AbstractBaseUser, Permissi
# 'twitter': <list of twitter usernames>,
# 'github': <list of github usernames>,
# 'linkedIn': <list of linkedin profiles>,
# 'orcid': <orcid for user>,
# 'researcherID': <researcherID>,
# 'impactStory': <impactStory identifier>,
# 'scholar': <google scholar identifier>,
Expand Down
7 changes: 0 additions & 7 deletions website/static/js/profile.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ function urlRegex() {
}

var socialRules = {
orcid: /orcid\.org\/([-\d]+)/i,
researcherId: /researcherid\.com\/rid\/([-\w]+)/i,
scholar: /scholar\.google\.com\/citations\?user=(\w+)/i,
twitter: /twitter\.com\/(\w+)/i,
Expand Down Expand Up @@ -601,10 +600,6 @@ var SocialViewModel = function(urls, modes, preventUnsaved) {
return true;
});

self.orcid = extendLink(
ko.observable().extend({trimmed: true, cleanup: cleanByRule(socialRules.orcid)}),
self, 'orcid', 'http://orcid.org/'
);
self.researcherId = extendLink(
ko.observable().extend({trimmed: true, cleanup: cleanByRule(socialRules.researcherId)}),
self, 'researcherId', 'http://researcherId.com/rid/'
Expand Down Expand Up @@ -653,7 +648,6 @@ var SocialViewModel = function(urls, modes, preventUnsaved) {

self.trackedProperties = [
self.profileWebsites,
self.orcid,
self.researcherId,
self.twitter,
self.scholar,
Expand All @@ -675,7 +669,6 @@ var SocialViewModel = function(urls, modes, preventUnsaved) {

self.values = ko.computed(function() {
return [
{label: 'ORCID', text: self.orcid(), value: self.orcid.url()},
{label: 'ResearcherID', text: self.researcherId(), value: self.researcherId.url()},
{label: 'Twitter', text: self.twitter(), value: self.twitter.url()},
{label: 'GitHub', text: self.github(), value: self.github.url()},
Expand Down
9 changes: 0 additions & 9 deletions website/templates/include/profile/social.mako
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,6 @@
</a>
</div>

<div class="form-group">
<label>ORCID</label>
<div class="input-group">
<span class="input-group-addon">http://orcid.org/</span>
<input class="form-control" data-bind="value: orcid" placeholder="xxxx-xxxx-xxxx-xxxx" aria-label="ORCID input" />
</div>
</div>

<div class="form-group">
<label>ResearcherID</label>
<div class="input-group">
Expand Down Expand Up @@ -190,7 +182,6 @@
<script>
iconName = function(name) {
var nameToHtml = {
"ORCID": "<i class='ai ai-orcid-square ai-2x' />",
"ResearcherID": "<img src='http://tguillerme.github.io/images/logo-RID.png' class='icon-image'>",
"Twitter": "<i class='fa fa-twitter-square fa-2x' />",
"GitHub": "<i class='fa fa-github-square fa-2x' />",
Expand Down
5 changes: 0 additions & 5 deletions website/templates/project/modal_add_contributor.mako
Original file line number Diff line number Diff line change
Expand Up @@ -128,11 +128,6 @@
<i class="fa fa-info-circle social-icons fa-lg"></i>
</a>
</span>
<span data-bind="visible: contributor.social.orcid">
<a data-bind="attr: {href: contributor.social.orcid}" data-toggle="tooltip" title="ORCiD" target="_blank">
<i class="fa social-icons fa-lg">iD</i>
</a>
</span>
<span data-bind="visible: contributor.social.researcherId">
<a data-bind="attr: {href: contributor.social.researcherId}" data-toggle="tooltip" title="ResearcherID" target="_blank">
<i class="fa social-icons fa-lg">R</i>
Expand Down
5 changes: 0 additions & 5 deletions website/templates/search.mako
Original file line number Diff line number Diff line change
Expand Up @@ -180,11 +180,6 @@
<i class="fa fa-info-circle social-icons" data-toggle="tooltip" title="ImpactStory"></i>
</a>
</li>
<li data-bind="visible: social.orcid">
<a data-bind="attr: {href: social.orcid}">
<i class="fa social-icons" data-toggle="tooltip" title="ORCiD">iD</i>
</a>
</li>
<li data-bind="visible: social.researcherId">
<a data-bind="attr: {href: social.researcherId}">
<i class="fa social-icons" data-toggle="tooltip" title="ResearcherID">R</i>
Expand Down
Loading