orcid_client 0.2.3 → 0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (129) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +120 -43
  3. data/lib/orcid_client/api.rb +1 -1
  4. data/lib/orcid_client/author.rb +2 -49
  5. data/lib/orcid_client/date.rb +3 -3
  6. data/lib/orcid_client/external_identifier.rb +1 -1
  7. data/lib/orcid_client/notification.rb +3 -5
  8. data/lib/orcid_client/version.rb +1 -1
  9. data/lib/orcid_client/work.rb +23 -28
  10. data/lib/orcid_client.rb +2 -0
  11. data/orcid_client.gemspec +5 -4
  12. data/resources/{common_2.0_rc3/common-2.0_rc3.xsd → common_2.0/common-2.0.xsd} +68 -49
  13. data/resources/{common_2.0_rc3/samples/common-2.0_rc3.xml → common_2.0/samples/common-2.0.xml} +1 -1
  14. data/resources/notification_2.0/README.md +123 -0
  15. data/resources/notification_2.0/notification-custom-2.0.xsd +38 -0
  16. data/resources/notification_2.0/notification-permission-2.0.xsd +134 -0
  17. data/resources/{notification_2.0_rc3/samples/notification-custom-2.0_rc3.xml → notification_2.0/samples/notification-custom-2.0.xml} +3 -3
  18. data/resources/{notification_2.0_rc3/samples/notification-permission-2.0_rc3.xml → notification_2.0/samples/notification-permission-2.0.xml} +2 -2
  19. data/resources/record_2.0/README.md +304 -0
  20. data/resources/{record_2.0_rc3/activities-2.0_rc3.xsd → record_2.0/activities-2.0.xsd} +79 -46
  21. data/resources/{record_2.0_rc3/address-2.0_rc3.xsd → record_2.0/address-2.0.xsd} +1 -1
  22. data/resources/{record_2.0_rc3/bulk-2.0_rc3.xsd → record_2.0/bulk-2.0.xsd} +12 -12
  23. data/resources/{record_2.0_rc3/education-2.0_rc3.xsd → record_2.0/education-2.0.xsd} +5 -5
  24. data/resources/{record_2.0_rc3/email-2.0_rc3.xsd → record_2.0/email-2.0.xsd} +3 -1
  25. data/resources/{record_2.0_rc3/employment-2.0_rc3.xsd → record_2.0/employment-2.0.xsd} +5 -5
  26. data/resources/{record_2.0_rc3/error-2.0_rc3.xsd → record_2.0/error-2.0.xsd} +0 -0
  27. data/resources/{record_2.0_rc3/funding-2.0_rc3.xsd → record_2.0/funding-2.0.xsd} +5 -49
  28. data/resources/{record_2.0_rc3/history-2.0_rc3.xsd → record_2.0/history-2.0.xsd} +1 -1
  29. data/resources/{record_2.0_rc3/keyword-2.0_rc3.xsd → record_2.0/keyword-2.0.xsd} +2 -2
  30. data/resources/{record_2.0_rc3/other-name-2.0_rc3.xsd → record_2.0/other-name-2.0.xsd} +2 -2
  31. data/resources/{record_2.0_rc3/peer-review-2.0_rc3.xsd → record_2.0/peer-review-2.0.xsd} +4 -4
  32. data/resources/record_2.0/peer-review-guide-v2.0.md +131 -0
  33. data/resources/{record_2.0_rc3/person-2.0_rc3.xsd → record_2.0/person-2.0.xsd} +8 -21
  34. data/resources/{record_2.0_rc3/person-external-identifier-2.0_rc3.xsd → record_2.0/person-external-identifier-2.0.xsd} +1 -1
  35. data/resources/{record_2.0_rc3/personal-details-2.0_rc3.xsd → record_2.0/personal-details-2.0.xsd} +5 -7
  36. data/resources/{record_2.0_rc3/preferences-2.0_rc3.xsd → record_2.0/preferences-2.0.xsd} +1 -1
  37. data/resources/{record_2.0_rc3/record-2.0_rc3.xsd → record_2.0/record-2.0.xsd} +16 -23
  38. data/resources/{record_2.0_rc3/researcher-url-2.0_rc3.xsd → record_2.0/researcher-url-2.0.xsd} +2 -2
  39. data/resources/{record_2.0_rc3/samples/activities-2.0_rc3.xml → record_2.0/samples/read_samples/activities-2.0.xml} +24 -12
  40. data/resources/{record_2.0_rc3/samples/address-2.0_rc3.xml → record_2.0/samples/read_samples/address-2.0.xml} +1 -1
  41. data/resources/{record_2.0_rc3/samples/addresses-2.0_rc3.xml → record_2.0/samples/read_samples/addresses-2.0.xml} +1 -1
  42. data/resources/{record_2.0_rc3/samples/biography-2.0_rc3.xml → record_2.0/samples/read_samples/biography-2.0.xml} +2 -2
  43. data/resources/record_2.0/samples/read_samples/bulk-work-error.xml +45 -0
  44. data/resources/{record_2.0_rc3/samples/credit-name-2.0_rc3.xml → record_2.0/samples/read_samples/credit-name-2.0.xml} +2 -2
  45. data/resources/{record_2.0_rc3/samples/education-full-2.0_rc3.xml → record_2.0/samples/read_samples/education-2.0.xml} +1 -1
  46. data/resources/{record_2.0_rc3/samples/education-2.0_rc3.xml → record_2.0/samples/read_samples/education-full-2.0.xml} +12 -2
  47. data/resources/record_2.0/samples/read_samples/educations-2.0.xml +52 -0
  48. data/resources/{record_2.0_rc3/samples/email-2.0_rc3.xml → record_2.0/samples/read_samples/email-2.0.xml} +2 -2
  49. data/resources/{record_2.0_rc3/samples/emails-2.0_rc3.xml → record_2.0/samples/read_samples/emails-2.0.xml} +3 -3
  50. data/resources/{record_2.0_rc3/samples/employment-full-2.0_rc3.xml → record_2.0/samples/read_samples/employment-2.0.xml} +1 -1
  51. data/resources/{record_2.0_rc3/samples/employment-2.0_rc3.xml → record_2.0/samples/read_samples/employment-full-2.0.xml} +14 -4
  52. data/resources/record_2.0/samples/read_samples/employments-2.0.xml +52 -0
  53. data/resources/{record_2.0_rc3/samples/error-2.0_rc3.xml → record_2.0/samples/read_samples/error-2.0.xml} +1 -1
  54. data/resources/{record_2.0_rc3/samples/external-identifier-2.0_rc3.xml → record_2.0/samples/read_samples/external-identifier-2.0.xml} +3 -2
  55. data/resources/{record_2.0_rc3/samples/external-identifiers-2.0_rc3.xml → record_2.0/samples/read_samples/external-identifiers-2.0.xml} +5 -3
  56. data/resources/{record_2.0_rc3/samples/funding-full-2.0_rc3.xml → record_2.0/samples/read_samples/funding-2.0.xml} +2 -2
  57. data/resources/{record_2.0_rc3/samples/funding-2.0_rc3.xml → record_2.0/samples/read_samples/funding-full-2.0.xml} +13 -3
  58. data/resources/record_2.0/samples/read_samples/fundings-2.0.xml +138 -0
  59. data/resources/{record_2.0_rc3/samples/history-2.0_rc3.xml → record_2.0/samples/read_samples/history-2.0.xml} +1 -1
  60. data/resources/{record_2.0_rc3/samples/keyword-2.0_rc3.xml → record_2.0/samples/read_samples/keyword-2.0.xml} +1 -1
  61. data/resources/{record_2.0_rc3/samples/keywords-2.0_rc3.xml → record_2.0/samples/read_samples/keywords-2.0.xml} +1 -1
  62. data/resources/{record_2.0_rc3/samples/name-2.0_rc3.xml → record_2.0/samples/read_samples/name-2.0.xml} +1 -1
  63. data/resources/{record_2.0_rc3/samples/other-name-2.0_rc3.xml → record_2.0/samples/read_samples/other-name-2.0.xml} +1 -1
  64. data/resources/{record_2.0_rc3/samples/other-names-2.0_rc3.xml → record_2.0/samples/read_samples/other-names-2.0.xml} +1 -1
  65. data/resources/{record_2.0_rc3/samples/peer-review-full-2.0_rc3.xml → record_2.0/samples/read_samples/peer-review-2.0.xml} +1 -1
  66. data/resources/{record_2.0_rc3/samples/peer-review-2.0_rc3.xml → record_2.0/samples/read_samples/peer-review-full-2.0.xml} +18 -8
  67. data/resources/record_2.0/samples/read_samples/peer-reviews-2.0.xml +73 -0
  68. data/resources/{record_2.0_rc3/samples/person-2.0_rc3.xml → record_2.0/samples/read_samples/person-2.0.xml} +1 -1
  69. data/resources/{record_2.0_rc3/samples/personal-details-2.0_rc3.xml → record_2.0/samples/read_samples/personal-details-2.0.xml} +1 -1
  70. data/resources/{record_2.0_rc3/samples/preferences-2.0_rc3.xml → record_2.0/samples/read_samples/preferences-2.0.xml} +1 -1
  71. data/resources/{record_2.0_rc3/samples/record-2.0_rc3.xml → record_2.0/samples/read_samples/record-2.0.xml} +73 -85
  72. data/resources/{record_2.0_rc3/samples/researcher-url-2.0_rc3.xml → record_2.0/samples/read_samples/researcher-url-2.0.xml} +1 -1
  73. data/resources/{record_2.0_rc3/samples/researcher-urls-2.0_rc3.xml → record_2.0/samples/read_samples/researcher-urls-2.0.xml} +1 -1
  74. data/resources/record_2.0/samples/read_samples/search-2.0.xml +14 -0
  75. data/resources/{record_2.0_rc3/samples/work-full-2.0_rc3.xml → record_2.0/samples/read_samples/work-2.0.xml} +5 -5
  76. data/resources/{record_2.0_rc3/samples/work-2.0_rc3.xml → record_2.0/samples/read_samples/work-full-2.0.xml} +14 -4
  77. data/resources/record_2.0/samples/read_samples/works-2.0.xml +146 -0
  78. data/resources/record_2.0/samples/write_sample/address-2.0.xml +6 -0
  79. data/resources/{record_2.0_rc3/samples/bulk-work-2.0_rc3.json → record_2.0/samples/write_sample/bulk-work-2.0.json} +55 -55
  80. data/resources/{record_2.0_rc3/samples/bulk-work-2.0_rc3.xml → record_2.0/samples/write_sample/bulk-work-2.0.xml} +18 -11
  81. data/resources/record_2.0/samples/write_sample/education-2.0.xml +30 -0
  82. data/resources/record_2.0/samples/write_sample/employment-2.0.xml +30 -0
  83. data/resources/record_2.0/samples/write_sample/external-identifier-2.0.xml +11 -0
  84. data/resources/record_2.0/samples/write_sample/funding-2.0.xml +44 -0
  85. data/resources/record_2.0/samples/write_sample/keyword-2.0.xml +7 -0
  86. data/resources/record_2.0/samples/write_sample/other-name-2.0.xml +6 -0
  87. data/resources/record_2.0/samples/write_sample/peer-review-full-2.0.xml +48 -0
  88. data/resources/record_2.0/samples/write_sample/peer-review-simple-2.0.xml +32 -0
  89. data/resources/record_2.0/samples/write_sample/researcher-url-2.0.xml +7 -0
  90. data/resources/record_2.0/samples/write_sample/work-full-2.0.xml +54 -0
  91. data/resources/record_2.0/samples/write_sample/work-simple-2.0.xml +18 -0
  92. data/resources/{record_2.0_rc3/search-2.0_rc3.xsd → record_2.0/search-2.0.xsd} +6 -26
  93. data/resources/{record_2.0_rc3/work-2.0_rc3.xsd → record_2.0/work-2.0.xsd} +8 -129
  94. data/spec/api_spec.rb +3 -3
  95. data/spec/external_identifier_spec.rb +2 -2
  96. data/spec/fixtures/external_identifier.xml +1 -1
  97. data/spec/fixtures/vcr_cassettes/OrcidClient/external_identifier/delete/should_delete_external_identifier.yml +17 -5
  98. data/spec/fixtures/vcr_cassettes/OrcidClient/external_identifier/post/should_create_external_identifier.yml +19 -7
  99. data/spec/fixtures/vcr_cassettes/OrcidClient/notifications/delete/should_delete_notification.yml +19 -6
  100. data/spec/fixtures/vcr_cassettes/OrcidClient/notifications/get/should_get_notification.yml +20 -6
  101. data/spec/fixtures/vcr_cassettes/OrcidClient/notifications/post/should_create_notification.yml +90 -25
  102. data/spec/fixtures/vcr_cassettes/OrcidClient/works/delete/should_delete_work.yml +17 -5
  103. data/spec/fixtures/vcr_cassettes/OrcidClient/works/get/should_get_works.yml +554 -543
  104. data/spec/fixtures/vcr_cassettes/OrcidClient/works/post/should_create_work.yml +90 -25
  105. data/spec/fixtures/vcr_cassettes/OrcidClient/works/put/should_update_work.yml +99 -28
  106. data/spec/fixtures/vcr_cassettes/OrcidClient_Notification/data.yml +72 -17
  107. data/spec/fixtures/vcr_cassettes/OrcidClient_Notification/schema/validates_data.yml +70 -17
  108. data/spec/fixtures/vcr_cassettes/OrcidClient_Notification/schema/validates_item_type_work.yml +72 -14
  109. data/spec/fixtures/vcr_cassettes/OrcidClient_Work/contributors/literal.yml +72 -20
  110. data/spec/fixtures/vcr_cassettes/OrcidClient_Work/contributors/multiple_titles.yml +72 -20
  111. data/spec/fixtures/vcr_cassettes/OrcidClient_Work/contributors/valid.yml +72 -23
  112. data/spec/fixtures/vcr_cassettes/OrcidClient_Work/contributors/with_ORCID_IDs.yml +75 -133
  113. data/spec/fixtures/vcr_cassettes/OrcidClient_Work/data.yml +72 -23
  114. data/spec/fixtures/vcr_cassettes/OrcidClient_Work/publication_date.yml +72 -23
  115. data/spec/fixtures/vcr_cassettes/OrcidClient_Work/schema/validates_ORCID_IDs_for_contributors.yml +75 -133
  116. data/spec/fixtures/vcr_cassettes/OrcidClient_Work/schema/validates_data.yml +72 -23
  117. data/spec/fixtures/vcr_cassettes/OrcidClient_Work/schema/validates_work_type_data-set.yml +72 -20
  118. data/spec/fixtures/work.xml +4 -2
  119. data/spec/notification_spec.rb +4 -4
  120. data/spec/work_spec.rb +6 -6
  121. metadata +122 -80
  122. data/lib/orcid_client/metadata.rb +0 -128
  123. data/resources/notification_2.0_rc3/notification-custom-2.0_rc3.xsd +0 -32
  124. data/resources/notification_2.0_rc3/notification-permission-2.0_rc3.xsd +0 -128
  125. data/resources/record_2.0_rc3/deprecated-2.0_rc3.xsd +0 -80
  126. data/resources/record_2.0_rc3/internal-2.0_rc3.xsd +0 -199
  127. data/resources/record_2.0_rc3/samples/deprecated-2.0_rc3.xml +0 -13
  128. data/resources/record_2.0_rc3/samples/search-2.0_rc3.xml +0 -368
  129. data/spec/fixtures/vcr_cassettes/OrcidClient_Work/citation.yml +0 -50
@@ -1,16 +1,16 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
- <activities:activities-summary
2
+ <activities:activities-summary path="http://orcid.org/v2.0_rc4/8888-8888-8888-8880/activities"
3
3
  xmlns:activities="http://www.orcid.org/ns/activities"
4
4
  xmlns:employment="http://www.orcid.org/ns/employment" xmlns:common="http://www.orcid.org/ns/common"
5
5
  xmlns:education="http://www.orcid.org/ns/education" xmlns:funding="http://www.orcid.org/ns/funding"
6
6
  xmlns:work="http://www.orcid.org/ns/work" xmlns:peer-review="http://www.orcid.org/ns/peer-review"
7
7
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
8
- xsi:schemaLocation="http://www.orcid.org/ns/activities ../activities-2.0_rc3.xsd ">
8
+ xsi:schemaLocation="http://www.orcid.org/ns/activities ../activities-2.0.xsd ">
9
9
  <common:last-modified-date>2001-12-31T12:00:00</common:last-modified-date>
10
- <activities:educations>
10
+ <activities:educations path="http://orcid.org/v2.0_rc4/8888-8888-8888-8880/educations">
11
11
  <common:last-modified-date>2001-12-31T12:00:00</common:last-modified-date>
12
12
  <education:education-summary put-code="0"
13
- visibility="private" display-index="0">
13
+ visibility="private" display-index="0">
14
14
  <common:created-date>2001-12-31T12:00:00</common:created-date>
15
15
  <common:last-modified-date>2001-12-31T12:00:00</common:last-modified-date>
16
16
  <common:source>
@@ -47,7 +47,7 @@
47
47
  </education:organization>
48
48
  </education:education-summary>
49
49
  </activities:educations>
50
- <activities:employments>
50
+ <activities:employments path="http://orcid.org/v2.0_rc4/8888-8888-8888-8880/employments">
51
51
  <common:last-modified-date>2001-12-31T12:00:00</common:last-modified-date>
52
52
  <employment:employment-summary
53
53
  put-code="0" visibility="private" display-index="0">
@@ -87,7 +87,7 @@
87
87
  </employment:organization>
88
88
  </employment:employment-summary>
89
89
  </activities:employments>
90
- <activities:fundings>
90
+ <activities:fundings path="http://orcid.org/v2.0_rc4/8888-8888-8888-8880/fundings">
91
91
  <common:last-modified-date>2001-12-31T12:00:00</common:last-modified-date>
92
92
  <activities:group>
93
93
  <common:last-modified-date>2001-12-31T12:00:00</common:last-modified-date>
@@ -99,7 +99,7 @@
99
99
  <common:external-id-relationship>self</common:external-id-relationship>
100
100
  </common:external-id>
101
101
  </common:external-ids>
102
- <funding:summary put-code="0" visibility="private" display-index="0">
102
+ <funding:funding-summary put-code="0" visibility="private" display-index="0">
103
103
  <common:created-date>2001-12-31T12:00:00</common:created-date>
104
104
  <common:last-modified-date>2001-12-31T12:00:00</common:last-modified-date>
105
105
  <common:source>
@@ -133,10 +133,22 @@
133
133
  <common:month>12</common:month>
134
134
  <common:day>20</common:day>
135
135
  </common:end-date>
136
- </funding:summary>
136
+ <funding:organization>
137
+ <common:name>common:name</common:name>
138
+ <common:address>
139
+ <common:city>common:city</common:city>
140
+ <common:region>common:region</common:region>
141
+ <common:country>AF</common:country>
142
+ </common:address>
143
+ <common:disambiguated-organization>
144
+ <common:disambiguated-organization-identifier>common:disambiguated-organization-identifier</common:disambiguated-organization-identifier>
145
+ <common:disambiguation-source>common:disambiguation-source</common:disambiguation-source>
146
+ </common:disambiguated-organization>
147
+ </funding:organization>
148
+ </funding:funding-summary>
137
149
  </activities:group>
138
150
  </activities:fundings>
139
- <activities:peer-reviews>
151
+ <activities:peer-reviews path="http://orcid.org/v2.0_rc4/8888-8888-8888-8880/peer-reviews">
140
152
  <common:last-modified-date>2001-12-31T12:00:00</common:last-modified-date>
141
153
  <activities:group>
142
154
  <common:last-modified-date>2001-12-31T12:00:00</common:last-modified-date>
@@ -148,7 +160,7 @@
148
160
  <common:external-id-relationship>self</common:external-id-relationship>
149
161
  </common:external-id>
150
162
  </common:external-ids>
151
- <peer-review:summary put-code="12345" visibility="private" display-index="0">
163
+ <peer-review:peer-review-summary put-code="12345" visibility="private" display-index="0">
152
164
  <common:created-date>2001-12-31T12:00:00</common:created-date>
153
165
  <common:last-modified-date>2001-12-31T12:00:00</common:last-modified-date>
154
166
  <common:source>
@@ -185,10 +197,10 @@
185
197
  <common:disambiguation-source>common:disambiguation-source</common:disambiguation-source>
186
198
  </common:disambiguated-organization>
187
199
  </peer-review:convening-organization>
188
- </peer-review:summary>
200
+ </peer-review:peer-review-summary>
189
201
  </activities:group>
190
202
  </activities:peer-reviews>
191
- <activities:works>
203
+ <activities:works path="http://orcid.org/v2.0_rc4/8888-8888-8888-8880/works">
192
204
  <common:last-modified-date>2001-12-31T12:00:00</common:last-modified-date>
193
205
  <activities:group>
194
206
  <common:last-modified-date>2001-12-31T12:00:00</common:last-modified-date>
@@ -1,7 +1,7 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
2
  <address:address visibility="public" put-code="1" xmlns:address="http://www.orcid.org/ns/address"
3
3
  xmlns:common="http://www.orcid.org/ns/common" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4
- xsi:schemaLocation="http://www.orcid.org/ns/address ../address-2.0_rc3.xsd ">
4
+ xsi:schemaLocation="http://www.orcid.org/ns/address ../address-2.0.xsd ">
5
5
  <common:created-date>2001-12-31T12:00:00</common:created-date>
6
6
  <common:last-modified-date>2001-12-31T12:00:00</common:last-modified-date>
7
7
  <common:source>
@@ -1,7 +1,7 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
2
  <address:addresses xmlns:address="http://www.orcid.org/ns/address"
3
3
  xmlns:common="http://www.orcid.org/ns/common" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4
- xsi:schemaLocation="http://www.orcid.org/ns/address ../address-2.0_rc3.xsd ">
4
+ xsi:schemaLocation="http://www.orcid.org/ns/address ../address-2.0.xsd ">
5
5
  <common:last-modified-date>2002-11-30T12:00:00</common:last-modified-date>
6
6
  <address:address visibility="public" put-code="1">
7
7
  <common:created-date>2001-12-31T12:00:00</common:created-date>
@@ -3,8 +3,8 @@
3
3
  xmlns:personal-details="http://www.orcid.org/ns/personal-details"
4
4
  xmlns:common="http://www.orcid.org/ns/common"
5
5
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
6
- xsi:schemaLocation="http://www.orcid.org/ns/personal-details ../personal-details-2.0_rc3.xsd">
6
+ xsi:schemaLocation="http://www.orcid.org/ns/personal-details ../personal-details-2.0.xsd">
7
7
  <common:created-date>2016-04-27T13:22:53.471-06:00</common:created-date>
8
8
  <common:last-modified-date>2016-04-27T13:22:53.471-06:00</common:last-modified-date>
9
- <personal-details:content>biography V2.0_rc3</personal-details:content>
9
+ <personal-details:content>biography V2.0</personal-details:content>
10
10
  </personal-details:biography>
@@ -0,0 +1,45 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <bulk:bulk xmlns:common="http://www.orcid.org/ns/common"
3
+ xmlns:error="http://www.orcid.org/ns/error"
4
+ xmlns:work="http://www.orcid.org/ns/work"
5
+ xmlns:bulk="http://www.orcid.org/ns/bulk"
6
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
7
+ xsi:schemaLocation="http://www.orcid.org/ns/bulk ../bulk-2.0.xsd">
8
+ <work:work put-code="156043" visibility="public">
9
+ <common:created-date>2017-02-16T22:06:56.222Z</common:created-date>
10
+ <common:last-modified-date>2017-02-16T22:06:56.222Z</common:last-modified-date>
11
+ <common:source>
12
+ <common:source-orcid>
13
+ <common:uri>http://orcid.org/8888-8888-8888-8880</common:uri>
14
+ <common:path>8888-8888-8888-8880</common:path>
15
+ <common:host>orcid.org</common:host>
16
+ </common:source-orcid>
17
+ <common:source-name />
18
+ </common:source>
19
+ <work:title>
20
+ <common:title>Current treatment of left main coronary artery disease # 1</common:title>
21
+ </work:title>
22
+ <work:journal-title>Cor et Vasa</work:journal-title>
23
+ <work:type>journal-article</work:type>
24
+ <common:publication-date>
25
+ <common:year>2015</common:year>
26
+ <common:month>06</common:month>
27
+ <common:day>01</common:day>
28
+ </common:publication-date>
29
+ <common:external-ids>
30
+ <common:external-id>
31
+ <common:external-id-type>doi</common:external-id-type>
32
+ <common:external-id-value>10.1016/j.crvasa.2015.05.007</common:external-id-value>
33
+ <common:external-id-url>http://extId/1</common:external-id-url>
34
+ <common:external-id-relationship>self</common:external-id-relationship>
35
+ </common:external-id>
36
+ </common:external-ids>
37
+ </work:work>
38
+ <error:error>
39
+ <error:response-code>400</error:response-code>
40
+ <error:developer-message>Invalid work type, valid values are: artistic-performance, book-chapter, book-review, book, conference-abstract, conference-paper, conference-poster, data-set, dictionary-entry, disclosure, dissertation, edited-book, encyclopedia-entry, invention, journal-article, journal-issue, lecture-speech, license, magazine-article, manual, newsletter-article, newspaper-article, online-resource, other, patent, registered-copyright, report, research-technique, research-tool, spin-off-company, standards-and-policy, supervised-student-publication, technical-standard, test, trademark, translation, website, working-paper, undefined.</error:developer-message>
41
+ <error:user-message>Please specify a work type.</error:user-message>
42
+ <error:error-code>9037</error:error-code>
43
+ <error:more-info>http://members.orcid.org/api/api-error-codes</error:more-info>
44
+ </error:error>
45
+ </bulk:bulk>
@@ -1,5 +1,5 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
- <personal-details:credit-name visibility="public"
2
+ <personal-details:credit-name
3
3
  xmlns:personal-details="http://www.orcid.org/ns/personal-details"
4
4
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
5
- xsi:schemaLocation="http://www.orcid.org/ns/personal-details ../personal-details-2.0_rc3.xsd">credit-name</personal-details:credit-name>
5
+ xsi:schemaLocation="http://www.orcid.org/ns/personal-details ../personal-details-2.0.xsd">credit-name</personal-details:credit-name>
@@ -2,7 +2,7 @@
2
2
  <education:education put-code="0" visibility="private"
3
3
  xmlns:common="http://www.orcid.org/ns/common" xmlns:education="http://www.orcid.org/ns/education"
4
4
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
5
- xsi:schemaLocation="http://www.orcid.org/ns/education ../education-2.0_rc3.xsd ">
5
+ xsi:schemaLocation="http://www.orcid.org/ns/education ../education-2.0.xsd ">
6
6
  <common:created-date>2001-12-31T12:00:00</common:created-date>
7
7
  <common:last-modified-date>2001-12-31T12:00:00</common:last-modified-date>
8
8
  <common:source>
@@ -2,7 +2,17 @@
2
2
  <education:education put-code="0" visibility="private"
3
3
  xmlns:common="http://www.orcid.org/ns/common" xmlns:education="http://www.orcid.org/ns/education"
4
4
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
5
- xsi:schemaLocation="http://www.orcid.org/ns/education ../education-2.0_rc3.xsd ">
5
+ xsi:schemaLocation="http://www.orcid.org/ns/education ../education-2.0.xsd ">
6
+ <common:created-date>2001-12-31T12:00:00</common:created-date>
7
+ <common:last-modified-date>2001-12-31T12:00:00</common:last-modified-date>
8
+ <common:source>
9
+ <common:source-orcid>
10
+ <common:uri>http://orcid.org/8888-8888-8888-8880</common:uri>
11
+ <common:path>8888-8888-8888-8880</common:path>
12
+ <common:host>orcid.org</common:host>
13
+ </common:source-orcid>
14
+ <common:source-name />
15
+ </common:source>
6
16
  <education:department-name>education:department-name</education:department-name>
7
17
  <education:role-title>education:role-title</education:role-title>
8
18
  <common:start-date>
@@ -26,5 +36,5 @@
26
36
  <common:disambiguated-organization-identifier>common:disambiguated-organization-identifier</common:disambiguated-organization-identifier>
27
37
  <common:disambiguation-source>common:disambiguation-source</common:disambiguation-source>
28
38
  </common:disambiguated-organization>
29
- </education:organization>
39
+ </education:organization>
30
40
  </education:education>
@@ -0,0 +1,52 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <activities:educations
3
+ path="http://orcid.org/v2.0/8888-8888-8888-8880/employments"
4
+ xmlns:activities="http://www.orcid.org/ns/activities" xmlns:employment="http://www.orcid.org/ns/employment"
5
+ xmlns:common="http://www.orcid.org/ns/common" xmlns:education="http://www.orcid.org/ns/education"
6
+ xmlns:funding="http://www.orcid.org/ns/funding" xmlns:work="http://www.orcid.org/ns/work"
7
+ xmlns:peer-review="http://www.orcid.org/ns/peer-review" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
8
+ xsi:schemaLocation="http://www.orcid.org/ns/activities ../activities-2.0.xsd ">
9
+ <common:last-modified-date>2017-01-18T13:32:45.500-06:00</common:last-modified-date>
10
+ <education:education-summary put-code="1"
11
+ path="/8888-8888-8888-8888/employment/1" visibility="public">
12
+ <common:created-date>2017-01-18T13:32:45.500-06:00</common:created-date>
13
+ <common:last-modified-date>2017-01-18T13:32:45.500-06:00</common:last-modified-date>
14
+ <common:source>
15
+ <common:source-orcid>
16
+ <common:uri>http://orcid.org/8888-8888-8888-8888</common:uri>
17
+ <common:path>8888-8888-8888-8888</common:path>
18
+ <common:host>orcid.org</common:host>
19
+ </common:source-orcid>
20
+ <common:source-name>User One Credit name</common:source-name>
21
+ </common:source>
22
+ <education:department-name>education</education:department-name>
23
+ <education:organization>
24
+ <common:name>education</common:name>
25
+ <common:address>
26
+ <common:city>x</common:city>
27
+ <common:country>AS</common:country>
28
+ </common:address>
29
+ </education:organization>
30
+ </education:education-summary>
31
+ <education:education-summary put-code="1"
32
+ path="/8888-8888-8888-8888/employment/1" visibility="public">
33
+ <common:created-date>2017-01-18T13:32:45.500-06:00</common:created-date>
34
+ <common:last-modified-date>2017-01-18T13:32:45.500-06:00</common:last-modified-date>
35
+ <common:source>
36
+ <common:source-orcid>
37
+ <common:uri>http://orcid.org/8888-8888-8888-8888</common:uri>
38
+ <common:path>8888-8888-8888-8888</common:path>
39
+ <common:host>orcid.org</common:host>
40
+ </common:source-orcid>
41
+ <common:source-name>User One Credit name</common:source-name>
42
+ </common:source>
43
+ <education:department-name>education</education:department-name>
44
+ <education:organization>
45
+ <common:name>education</common:name>
46
+ <common:address>
47
+ <common:city>x</common:city>
48
+ <common:country>AS</common:country>
49
+ </common:address>
50
+ </education:organization>
51
+ </education:education-summary>
52
+ </activities:educations>
@@ -1,7 +1,7 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
- <email:email visibility="public" put-code="1" xmlns:email="http://www.orcid.org/ns/email"
2
+ <email:email primary="true" verified="false" visibility="public" put-code="1" xmlns:email="http://www.orcid.org/ns/email"
3
3
  xmlns:common="http://www.orcid.org/ns/common" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4
- xsi:schemaLocation="http://www.orcid.org/ns/email ../email-2.0_rc3.xsd ">
4
+ xsi:schemaLocation="http://www.orcid.org/ns/email ../email-2.0.xsd ">
5
5
  <common:created-date>2001-12-31T12:00:00</common:created-date>
6
6
  <common:last-modified-date>2001-12-31T12:00:00</common:last-modified-date>
7
7
  <common:source>
@@ -1,8 +1,8 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
2
  <email:emails xmlns:email="http://www.orcid.org/ns/email"
3
3
  xmlns:common="http://www.orcid.org/ns/common" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4
- xsi:schemaLocation="http://www.orcid.org/ns/email ../email-2.0_rc3.xsd ">
5
- <email:email visibility="public" put-code="1">
4
+ xsi:schemaLocation="http://www.orcid.org/ns/email ../email-2.0.xsd ">
5
+ <email:email primary="true" verified="true" visibility="public" put-code="1">
6
6
  <common:created-date>2001-12-31T12:00:00</common:created-date>
7
7
  <common:last-modified-date>2001-12-31T12:00:00</common:last-modified-date>
8
8
  <common:source>
@@ -15,7 +15,7 @@
15
15
  </common:source>
16
16
  <email:email>user1@email.com</email:email>
17
17
  </email:email>
18
- <email:email visibility="public" put-code="2">
18
+ <email:email primary="false" verified="false" visibility="public" put-code="2">
19
19
  <common:created-date>2001-12-31T12:00:00</common:created-date>
20
20
  <common:last-modified-date>2001-12-31T12:00:00</common:last-modified-date>
21
21
  <common:source>
@@ -2,7 +2,7 @@
2
2
  <employment:employment put-code="0" visibility="private"
3
3
  xmlns:employment="http://www.orcid.org/ns/employment" xmlns:common="http://www.orcid.org/ns/common"
4
4
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
5
- xsi:schemaLocation="http://www.orcid.org/ns/employment ../employment-2.0_rc3.xsd ">
5
+ xsi:schemaLocation="http://www.orcid.org/ns/employment ../employment-2.0.xsd ">
6
6
  <common:created-date>2001-12-31T12:00:00</common:created-date>
7
7
  <common:last-modified-date>2001-12-31T12:00:00</common:last-modified-date>
8
8
  <common:source>
@@ -1,10 +1,20 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <employment:employment put-code="0" visibility="private"
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <employment:employment put-code="0" visibility="private"
3
3
  xmlns:employment="http://www.orcid.org/ns/employment" xmlns:common="http://www.orcid.org/ns/common"
4
4
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
5
- xsi:schemaLocation="http://www.orcid.org/ns/employment ../employment-2.0_rc3.xsd ">
5
+ xsi:schemaLocation="http://www.orcid.org/ns/employment ../employment-2.0.xsd ">
6
+ <common:created-date>2001-12-31T12:00:00</common:created-date>
7
+ <common:last-modified-date>2001-12-31T12:00:00</common:last-modified-date>
8
+ <common:source>
9
+ <common:source-orcid>
10
+ <common:uri>http://orcid.org/8888-8888-8888-8880</common:uri>
11
+ <common:path>8888-8888-8888-8880</common:path>
12
+ <common:host>orcid.org</common:host>
13
+ </common:source-orcid>
14
+ <common:source-name />
15
+ </common:source>
6
16
  <employment:department-name>employment:department-name</employment:department-name>
7
- <employment:role-title>employment:role-title</employment:role-title>
17
+ <employment:role-title>employment:role-title</employment:role-title>
8
18
  <common:start-date>
9
19
  <common:year>1848</common:year>
10
20
  <common:month>02</common:month>
@@ -0,0 +1,52 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <activities:employments
3
+ path="http://orcid.org/v2.0/8888-8888-8888-8880/employments"
4
+ xmlns:activities="http://www.orcid.org/ns/activities" xmlns:employment="http://www.orcid.org/ns/employment"
5
+ xmlns:common="http://www.orcid.org/ns/common" xmlns:education="http://www.orcid.org/ns/education"
6
+ xmlns:funding="http://www.orcid.org/ns/funding" xmlns:work="http://www.orcid.org/ns/work"
7
+ xmlns:peer-review="http://www.orcid.org/ns/peer-review" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
8
+ xsi:schemaLocation="http://www.orcid.org/ns/activities ../activities-2.0.xsd ">
9
+ <common:last-modified-date>2017-01-18T13:32:45.500-06:00</common:last-modified-date>
10
+ <employment:employment-summary put-code="1"
11
+ path="/8888-8888-8888-8888/employment/1" visibility="public">
12
+ <common:created-date>2017-01-18T13:32:45.500-06:00</common:created-date>
13
+ <common:last-modified-date>2017-01-18T13:32:45.500-06:00</common:last-modified-date>
14
+ <common:source>
15
+ <common:source-orcid>
16
+ <common:uri>http://orcid.org/8888-8888-8888-8888</common:uri>
17
+ <common:path>8888-8888-8888-8888</common:path>
18
+ <common:host>orcid.org</common:host>
19
+ </common:source-orcid>
20
+ <common:source-name>User One Credit name</common:source-name>
21
+ </common:source>
22
+ <employment:department-name>employment</employment:department-name>
23
+ <employment:organization>
24
+ <common:name>employment</common:name>
25
+ <common:address>
26
+ <common:city>x</common:city>
27
+ <common:country>AS</common:country>
28
+ </common:address>
29
+ </employment:organization>
30
+ </employment:employment-summary>
31
+ <employment:employment-summary put-code="1"
32
+ path="/8888-8888-8888-8888/employment/1" visibility="public">
33
+ <common:created-date>2017-01-18T13:32:45.500-06:00</common:created-date>
34
+ <common:last-modified-date>2017-01-18T13:32:45.500-06:00</common:last-modified-date>
35
+ <common:source>
36
+ <common:source-orcid>
37
+ <common:uri>http://orcid.org/8888-8888-8888-8888</common:uri>
38
+ <common:path>8888-8888-8888-8888</common:path>
39
+ <common:host>orcid.org</common:host>
40
+ </common:source-orcid>
41
+ <common:source-name>User One Credit name</common:source-name>
42
+ </common:source>
43
+ <employment:department-name>employment</employment:department-name>
44
+ <employment:organization>
45
+ <common:name>employment</common:name>
46
+ <common:address>
47
+ <common:city>x</common:city>
48
+ <common:country>AS</common:country>
49
+ </common:address>
50
+ </employment:organization>
51
+ </employment:employment-summary>
52
+ </activities:employments>
@@ -1,5 +1,5 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
- <error:error xmlns:error="http://www.orcid.org/ns/error" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.orcid.org/ns/error ../error-2.0_rc3.xsd ">
2
+ <error:error xmlns:error="http://www.orcid.org/ns/error" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.orcid.org/ns/error ../error-2.0.xsd ">
3
3
  <error:response-code>0</error:response-code>
4
4
  <error:developer-message>error:developer-message</error:developer-message>
5
5
  <error:user-message>error:user-message</error:user-message>
@@ -2,7 +2,7 @@
2
2
  <external-identifier:external-identifier visibility="public" put-code="1"
3
3
  xmlns:external-identifier="http://www.orcid.org/ns/external-identifier"
4
4
  xmlns:common="http://www.orcid.org/ns/common" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
5
- xsi:schemaLocation="http://www.orcid.org/ns/external-identifier ../person-external-identifier-2.0_rc3.xsd ">
5
+ xsi:schemaLocation="http://www.orcid.org/ns/external-identifier ../person-external-identifier-2.0.xsd ">
6
6
  <common:created-date>2001-12-31T12:00:00</common:created-date>
7
7
  <common:last-modified-date>2001-12-31T12:00:00</common:last-modified-date>
8
8
  <common:source>
@@ -15,6 +15,7 @@
15
15
  </common:source>
16
16
  <common:external-id-type>A-0003</common:external-id-type>
17
17
  <common:external-id-value>A-0003</common:external-id-value>
18
- <common:external-id-url>http://ext-id/A-0003</common:external-id-url>
18
+ <common:external-id-url>http://ext-id/A-0003</common:external-id-url>
19
+ <common:external-id-relationship>self</common:external-id-relationship>
19
20
  </external-identifier:external-identifier>
20
21
 
@@ -2,7 +2,7 @@
2
2
  <external-identifier:external-identifiers
3
3
  xmlns:external-identifier="http://www.orcid.org/ns/external-identifier"
4
4
  xmlns:common="http://www.orcid.org/ns/common" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
5
- xsi:schemaLocation="http://www.orcid.org/ns/external-identifier ../person-external-identifier-2.0_rc3.xsd ">
5
+ xsi:schemaLocation="http://www.orcid.org/ns/external-identifier ../person-external-identifier-2.0.xsd ">
6
6
  <external-identifier:external-identifier visibility="public" put-code="1">
7
7
  <common:created-date>2001-12-31T12:00:00</common:created-date>
8
8
  <common:last-modified-date>2001-12-31T12:00:00</common:last-modified-date>
@@ -16,7 +16,8 @@
16
16
  </common:source>
17
17
  <common:external-id-type>common-name-1</common:external-id-type>
18
18
  <common:external-id-value>id-reference-1</common:external-id-value>
19
- <common:external-id-url>http://url/1</common:external-id-url>
19
+ <common:external-id-url>http://url/1</common:external-id-url>
20
+ <common:external-id-relationship>self</common:external-id-relationship>
20
21
  </external-identifier:external-identifier>
21
22
  <external-identifier:external-identifier visibility="public" put-code="2">
22
23
  <common:created-date>2001-12-31T12:00:00</common:created-date>
@@ -31,6 +32,7 @@
31
32
  </common:source>
32
33
  <common:external-id-type>common-name-2</common:external-id-type>
33
34
  <common:external-id-value>id-reference-2</common:external-id-value>
34
- <common:external-id-url>http://url/2</common:external-id-url>
35
+ <common:external-id-url>http://url/2</common:external-id-url>
36
+ <common:external-id-relationship>self</common:external-id-relationship>
35
37
  </external-identifier:external-identifier>
36
38
  </external-identifier:external-identifiers>
@@ -2,7 +2,7 @@
2
2
  <funding:funding put-code="0" visibility="private"
3
3
  xmlns:common="http://www.orcid.org/ns/common" xmlns:funding="http://www.orcid.org/ns/funding"
4
4
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
5
- xsi:schemaLocation="http://www.orcid.org/ns/funding ../funding-2.0_rc3.xsd ">
5
+ xsi:schemaLocation="http://www.orcid.org/ns/funding ../funding-2.0.xsd ">
6
6
  <common:created-date>2001-12-31T12:00:00</common:created-date>
7
7
  <common:last-modified-date>2001-12-31T12:00:00</common:last-modified-date>
8
8
  <common:source>
@@ -53,7 +53,7 @@
53
53
  <common:path>8888-8888-8888-8880</common:path>
54
54
  <common:host>orcid.org</common:host>
55
55
  </common:contributor-orcid>
56
- <funding:credit-name visibility="private">funding:credit-name</funding:credit-name>
56
+ <funding:credit-name>funding:credit-name</funding:credit-name>
57
57
  <funding:contributor-email>funding@contributor.email</funding:contributor-email>
58
58
  <funding:contributor-attributes>
59
59
  <funding:contributor-role>lead</funding:contributor-role>
@@ -2,7 +2,17 @@
2
2
  <funding:funding put-code="0" visibility="private"
3
3
  xmlns:common="http://www.orcid.org/ns/common" xmlns:funding="http://www.orcid.org/ns/funding"
4
4
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
5
- xsi:schemaLocation="http://www.orcid.org/ns/funding ../funding-2.0_rc3.xsd ">
5
+ xsi:schemaLocation="http://www.orcid.org/ns/funding ../funding-2.0.xsd ">
6
+ <common:created-date>2001-12-31T12:00:00</common:created-date>
7
+ <common:last-modified-date>2001-12-31T12:00:00</common:last-modified-date>
8
+ <common:source>
9
+ <common:source-orcid>
10
+ <common:uri>http://orcid.org/8888-8888-8888-8880</common:uri>
11
+ <common:path>8888-8888-8888-8880</common:path>
12
+ <common:host>orcid.org</common:host>
13
+ </common:source-orcid>
14
+ <common:source-name />
15
+ </common:source>
6
16
  <funding:type>grant</funding:type>
7
17
  <funding:organization-defined-type>funding:organization-defined-type</funding:organization-defined-type>
8
18
  <funding:title>
@@ -43,7 +53,7 @@
43
53
  <common:path>8888-8888-8888-8880</common:path>
44
54
  <common:host>orcid.org</common:host>
45
55
  </common:contributor-orcid>
46
- <funding:credit-name visibility="private">funding:credit-name</funding:credit-name>
56
+ <funding:credit-name>funding:credit-name</funding:credit-name>
47
57
  <funding:contributor-email>funding@contributor.email</funding:contributor-email>
48
58
  <funding:contributor-attributes>
49
59
  <funding:contributor-role>lead</funding:contributor-role>
@@ -61,5 +71,5 @@
61
71
  <common:disambiguated-organization-identifier>common:disambiguated-organization-identifier</common:disambiguated-organization-identifier>
62
72
  <common:disambiguation-source>common:disambiguation-source</common:disambiguation-source>
63
73
  </common:disambiguated-organization>
64
- </funding:organization>
74
+ </funding:organization>
65
75
  </funding:funding>