orcid 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -0
- data/app/models/orcid/profile_connection.rb +1 -0
- data/app/views/orcid/profile_connections/_orcid_connector.html.erb +18 -10
- data/config/locales/orcid.en.yml +9 -1
- data/lib/orcid/version.rb +1 -1
- data/orcid.gemspec +0 -1
- data/spec/models/orcid/profile_connection_spec.rb +1 -0
- metadata +2 -16
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 72fe44a31b834e45dc65efebc06f416ec6452908
|
4
|
+
data.tar.gz: 93a589d4b5992b70e1ca685f1b50b37b9695efe6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c8ce12e869d4935a7e7c563a2b760630a42b8139d3f1fbe8c0d73a66b05d00b4b8be6a7ad1ee97b6baf8744be2606bd39cadf00b7d33c63155c0be9ef77935be
|
7
|
+
data.tar.gz: 04a0d325084d3023aefc595abefe659ce126e57a81aae12d62949c308eec60a00c02bedbee72ccc9e7077795c1084f21ea9a0360adaf0767007ea5892efb6fdb
|
data/README.md
CHANGED
@@ -60,6 +60,8 @@ if defined?(Orcid)
|
|
60
60
|
end
|
61
61
|
```
|
62
62
|
|
63
|
+
**To customize the labels, review the `./config/locales/orcid.en.yml` file.**
|
64
|
+
|
63
65
|
## Registering for an ORCID application profile
|
64
66
|
|
65
67
|
Your application which will interface with ORCID must be registered with ORCID. Note that you will want to register your production
|
@@ -1,14 +1,22 @@
|
|
1
1
|
<% profile_connection = Orcid::ProfileConnection.new %>
|
2
|
-
|
3
|
-
|
4
|
-
<
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
<%=
|
2
|
+
<% default_search_text = '' unless defined?(default_search_text) %>
|
3
|
+
<div class='orcid-connector'>
|
4
|
+
<h3><i class="icon-user"></i> <%= link_to t('orcid.verbose_name'), 'http://orcid.org/' %></h3>
|
5
|
+
<p>
|
6
|
+
<%= link_to t('orcid/profile_connection.look_up_your_existing_orcid', scope: 'helpers.label'), orcid.new_profile_connection_path(profile_connection:{text: default_search_text}) %>
|
7
|
+
</p>
|
8
|
+
<p>
|
9
|
+
<%= link_to t('orcid/profile_connection.create_an_orcid', scope: 'helpers.label'), orcid.new_profile_request_path %>
|
10
|
+
</p>
|
11
|
+
<p>
|
12
|
+
<%= form_for(profile_connection, as: :profile_connection, url: orcid.profile_connections_path, method: :post) do |f| %>
|
13
|
+
<%# Note the `scope: 'helpers.label'` option is the default for the label, but I want to call those specifically out %>
|
14
|
+
<%= f.label :orcid_profile_id, value: t('orcid/profile_connection.connect_button_text', scope: 'helpers.label') %>
|
15
|
+
<%= f.text_field :orcid_profile_id, class:"orcid-input" %>
|
10
16
|
<button type="submit" class="search-submit btn btn-primary" id="keyword-search-submit" tabindex="2">
|
11
|
-
<span class="orcid-connect"
|
17
|
+
<span class="orcid-connect"><%= t('orcid/profile_connection.connect_button_text', scope: 'helpers.label') %></span>
|
12
18
|
</button>
|
13
|
-
<% end %>
|
19
|
+
<% end %>
|
20
|
+
</p>
|
21
|
+
</div>
|
14
22
|
|
data/config/locales/orcid.en.yml
CHANGED
@@ -29,4 +29,12 @@ en:
|
|
29
29
|
connections:
|
30
30
|
messages:
|
31
31
|
profile_connection_not_found: "Unable to find an existing Orcid Profile connection."
|
32
|
-
verified_profile_connection_exists: "You have already connected and verified your Orcid Profile (%{orcid_profile_id})."
|
32
|
+
verified_profile_connection_exists: "You have already connected and verified your Orcid Profile (%{orcid_profile_id})."
|
33
|
+
verbose_name: Open Researcher and Contributor ID (ORCID)'
|
34
|
+
helpers:
|
35
|
+
label:
|
36
|
+
orcid/profile_connection:
|
37
|
+
orcid_profile_id: "Enter your existing ORCID (####-####-####-####)"
|
38
|
+
create_an_orcid: Create an ORCID
|
39
|
+
look_up_your_existing_orcid: Look up your existing ORCID
|
40
|
+
connect_button_text: Connect
|
data/lib/orcid/version.rb
CHANGED
data/orcid.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: orcid
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jeremy Friesen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-05-
|
11
|
+
date: 2014-05-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -122,20 +122,6 @@ dependencies:
|
|
122
122
|
- - '>='
|
123
123
|
- !ruby/object:Gem::Version
|
124
124
|
version: '0'
|
125
|
-
- !ruby/object:Gem::Dependency
|
126
|
-
name: byebug
|
127
|
-
requirement: !ruby/object:Gem::Requirement
|
128
|
-
requirements:
|
129
|
-
- - '>='
|
130
|
-
- !ruby/object:Gem::Version
|
131
|
-
version: '0'
|
132
|
-
type: :runtime
|
133
|
-
prerelease: false
|
134
|
-
version_requirements: !ruby/object:Gem::Requirement
|
135
|
-
requirements:
|
136
|
-
- - '>='
|
137
|
-
- !ruby/object:Gem::Version
|
138
|
-
version: '0'
|
139
125
|
- !ruby/object:Gem::Dependency
|
140
126
|
name: sqlite3
|
141
127
|
requirement: !ruby/object:Gem::Requirement
|