cirneco 0.5.8 → 0.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bc53bd40a384ab3df63764308d8f6267f230975a
4
- data.tar.gz: 8596911b41e4513f9c947c0cb0b2a345d57e2a8d
3
+ metadata.gz: c681eb9e780bbbe04eda5adbef5a576d122e7c08
4
+ data.tar.gz: 0317daa84b9387a623d3a2683f01d5a95128f6cf
5
5
  SHA512:
6
- metadata.gz: 508aeb634c7e6b5af2cb88ee30e6f9b031ca85456f02b237c497050b5ac34f608c04a0f694b9507c577f0859b802fe012f36e8939fd3037c7aee3c22e739b43b
7
- data.tar.gz: bfccc96e67b81775f5747bf00d89d71537d4d1c3d4e73c27401ecb2bd48d330a0de047c03a0ce5b85d92a8d7f8058416ea707b6d7382da6548532d99ef9b0cd5
6
+ metadata.gz: 2fd2af304e416f63f1bdd02363b3a0ca121842bf3a84c8e3ce66b670f7334d07963b5125ec60d29eb8f766ff928e7fe25ccfeae85a73744e3fcf5b5a5981e22d
7
+ data.tar.gz: 49b4707a22657ddd0660f635dcbac7e618a03dfa0f659a998419a1daf28f6af8f10b3e5b5ae21764e9687134ac03162f3b7242c63f5795b9f5159aec3994529d
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- cirneco (0.5.8)
4
+ cirneco (0.6)
5
5
  activesupport (~> 4.2, >= 4.2.5)
6
6
  base32-crockford-checksum (~> 0.2.2)
7
7
  bergamasco (~> 0.2)
@@ -22,7 +22,7 @@ GEM
22
22
  tzinfo (~> 1.1)
23
23
  addressable (2.3.8)
24
24
  base32-crockford-checksum (0.2.3)
25
- bergamasco (0.2.3)
25
+ bergamasco (0.2.11)
26
26
  activesupport (~> 4.2, >= 4.2.5)
27
27
  addressable (~> 2.3.8)
28
28
  builder (~> 3.2, >= 3.2.2)
data/lib/cirneco/utils.rb CHANGED
@@ -32,32 +32,41 @@ module Cirneco
32
32
  filename = File.basename(filepath)
33
33
  return "File #{filename} ignored: not a markdown file" unless File.extname(filepath) == ".md"
34
34
 
35
- file = IO.read(filepath)
35
+ old_metadata = Bergamasco::Markdown.read_yaml_for_doi_metadata(filepath)
36
+ return nil if old_metadata["doi"]
36
37
 
37
- if options[:unregister]
38
- doi = nil
39
- else
40
- prefix = options[:prefix] || ENV['PREFIX']
41
- doi = encode_doi(prefix, options)
42
- end
38
+ metadata = generate_metadata_for_work(filepath, options)
39
+ work = register_work_for_metadata(metadata)
43
40
 
44
- updated_file = Bergamasco::Markdown.update_file(file, { "doi" => doi })
41
+ # datapath = options[:datapath] || ENV['DATAPATH'] || "data/doi.yml"
42
+ # data = Bergamasco::Markdown.read_yaml(datapath) || []
43
+ # data = [data] if data.is_a?(Hash)
44
+ # new_data = [{ "filename" => filename, "doi" => doi, "date" => Time.now.utc.iso8601 }]
45
+ # Bergamasco::Markdown.write_yaml(datapath, data + new_data)
45
46
 
46
- if updated_file != file
47
- IO.write(filepath, updated_file)
47
+ new_metadata = Bergamasco::Markdown.update_file(filepath, { "doi" => metadata["doi"] })
48
+ "DOI #{new_metadata["doi"]} added for #{filename}"
49
+ end
48
50
 
49
- datapath = options[:datapath] || ENV['DATAPATH'] || "data/doi.yml"
50
- data = Bergamasco::Markdown.read_yaml(datapath) || []
51
- data = [data] if data.is_a?(Hash)
52
- new_data = [{ "filename" => filename, "doi" => doi, "date" => Time.now.utc.iso8601 }]
53
- Bergamasco::Markdown.write_yaml(datapath, data + new_data)
54
- end
51
+ # currently only supports markdown files with YAML header
52
+ def unregister_file(filepath, options={})
53
+ filename = File.basename(filepath)
54
+ return "File #{filename} ignored: not a markdown file" unless File.extname(filepath) == ".md"
55
55
 
56
- if doi.nil?
57
- "DOI removed from #{filename}"
58
- elsif updated_file != file
59
- "DOI #{doi} added to #{filename}"
60
- end
56
+ old_metadata = Bergamasco::Markdown.read_yaml_for_doi_metadata(filepath)
57
+ return nil unless old_metadata["doi"]
58
+
59
+ metadata = generate_metadata_for_work(filepath, options)
60
+ work = unregister_work_for_metadata(metadata)
61
+
62
+ # datapath = options[:datapath] || ENV['DATAPATH'] || "data/doi.yml"
63
+ # data = Bergamasco::Markdown.read_yaml(datapath) || []
64
+ # data = [data] if data.is_a?(Hash)
65
+ # new_data = [{ "filename" => filename, "doi" => doi, "date" => Time.now.utc.iso8601 }]
66
+ # Bergamasco::Markdown.write_yaml(datapath, data + new_data)
67
+
68
+ new_metadata = Bergamasco::Markdown.update_file(filepath, { "doi" => nil })
69
+ "DOI #{old_metadata["doi"]} removed for #{filename}"
61
70
  end
62
71
 
63
72
  def register_all_files(folderpath, options={})
@@ -66,6 +75,12 @@ module Cirneco
66
75
  end.join("\n")
67
76
  end
68
77
 
78
+ def unregister_all_files(folderpath, options={})
79
+ Dir.glob("#{folderpath}/*.md").map do |filepath|
80
+ unregister_file(filepath, options)
81
+ end.join("\n")
82
+ end
83
+
69
84
  def generate_metadata_for_work(filepath, options={})
70
85
  metadata = Bergamasco::Markdown.read_yaml_for_doi_metadata(filepath, options.except(:number))
71
86
 
@@ -79,8 +94,12 @@ module Cirneco
79
94
  authorpath = options[:authorpath] || ENV['SITE_AUTHORPATH']
80
95
  author_options = authorpath.present? ? Bergamasco::Markdown.read_yaml(authorpath) : {}
81
96
 
97
+ # read in optional yaml configuration file for references
98
+ referencespath = options[:referencespath] || ENV['SITE_REFERENCESPATH']
99
+ references = referencespath.present? ? Bergamasco::Markdown.read_yaml(referencespath) : {}
100
+
82
101
  # required metadata
83
- prefix = options[:prefix] || ENV['PREFIX']
102
+ prefix = options[:prefix] || site_options["prefix"] || ENV['SITE_PREFIX']
84
103
  metadata["doi"] ||= encode_doi(prefix, options)
85
104
 
86
105
  site_url = site_options["site_url"] || ENV['SITE_URL']
@@ -100,7 +119,7 @@ module Cirneco
100
119
  metadata["publisher"] = site_options["site_title"] || ENV['SITE_TITLE']
101
120
  metadata["publication_year"] = metadata["date"][0..3].to_i
102
121
 
103
- metadata["type"] ||= site_options["site_default_type"] || ENV['SITE_DEFAULT_TYPE'] || "BlogPosting"
122
+ metadata["type"] ||= site_options["default_type"] || ENV['SITE_DEFAULT_TYPE'] || "BlogPosting"
104
123
  resource_type_general = metadata["type"] == "Dataset" ? "Dataset" : "Text"
105
124
 
106
125
  metadata["resource_type"] = { value: metadata["type"],
@@ -113,13 +132,51 @@ module Cirneco
113
132
  # use default version 1.0
114
133
  metadata["version"] ||= "1.0"
115
134
 
135
+ # fetch reference metadata if available
136
+ metadata["related_identifiers"] = Array(metadata["references"]).map do |r|
137
+ reference = references.fetch(r, {})
138
+ if reference.present?
139
+ if reference["DOI"].present?
140
+ value = reference["DOI"].upcase
141
+ type = "DOI"
142
+ elsif /(http|https):\/\/(dx\.)?doi\.org\/(\w+)/.match(reference["URL"])
143
+ uri = Addressable::URI.parse(reference["URL"])
144
+ value = uri.path[1..-1].upcase
145
+ type = "DOI"
146
+ elsif reference["URL"].present?
147
+ value = reference["URL"]
148
+ type = "URL"
149
+ else
150
+ type = nil
151
+ end
152
+ else
153
+ if /(http|https):\/\/(dx\.)?doi\.org\/(\w+)/.match(r)
154
+ uri = Addressable::URI.parse(r)
155
+ value = uri.path[1..-1].upcase
156
+ type = "DOI"
157
+ elsif /(http|https):\/\//.match(r)
158
+ uri = Addressable::URI.parse(r)
159
+ value = uri.normalize.to_s
160
+ type = "URL"
161
+ else
162
+ type = nil
163
+ end
164
+ end
165
+
166
+ {
167
+ value: value,
168
+ related_identifier_type: type,
169
+ relation_type: "References"
170
+ }
171
+ end.select { |t| t[:related_identifier_type].present? }
172
+
116
173
  license_name = site_options.fetch("license", {}).fetch("name", nil) || ENV['SITE_LICENCE_NAME'] || "Creative Commons Attribution"
117
174
  license_url = site_options.fetch("license", {}).fetch("url", nil) || ENV['SITE_LICENCE_URL'] || "https://creativecommons.org/licenses/by/4.0/"
118
175
  metadata["rights_list"] = [{ value: license_name, rights_uri: license_url }]
119
176
 
120
177
  metadata["subjects"] = Array(metadata["tags"]).select { |t| t != "featured" }
121
178
 
122
- contributor = site_options["site_institution"] || ENV['SITE_INSTITUTION']
179
+ contributor = site_options["institution"] || ENV['SITE_INSTITUTION']
123
180
  metadata["contributors"] = [{ literal: contributor, contributor_type: "HostingInstitution" }]
124
181
 
125
182
  metadata = metadata.extract!(*%w(doi url creators title publisher
@@ -131,7 +188,7 @@ module Cirneco
131
188
  site_url.to_s.chomp("\\") + "/" + File.basename(filepath)[0..-9] + "/"
132
189
  end
133
190
 
134
- def create_work_from_metadata(metadata, options={})
191
+ def register_work_for_metadata(metadata)
135
192
  work = Cirneco::Work.new(metadata)
136
193
 
137
194
  filename = metadata["doi"].split("/", 2).last + ".xml"
@@ -139,5 +196,14 @@ module Cirneco
139
196
 
140
197
  work
141
198
  end
199
+
200
+ def unregister_work_for_metadata(metadata)
201
+ work = Cirneco::Work.new(metadata)
202
+
203
+ filename = metadata["doi"].split("/", 2).last + ".xml"
204
+ File.delete(filename)
205
+
206
+ work
207
+ end
142
208
  end
143
209
  end
@@ -1,3 +1,3 @@
1
1
  module Cirneco
2
- VERSION = "0.5.8"
2
+ VERSION = "0.6"
3
3
  end
@@ -0,0 +1,1060 @@
1
+ ---
2
+ references:
3
+ - id: http://doi.org/10.5281/zenodo.32412
4
+ type: article-journal
5
+ author:
6
+ - family: Mayo
7
+ given: Christine
8
+ - family: Hull
9
+ given: Elizabeth A.
10
+ - family: Vision
11
+ given: Todd J.
12
+ issued:
13
+ - year: '2015'
14
+ title: 'The location of the citation: changing practices in how publications cite
15
+ original data in the Dryad Digital Repository'
16
+ publisher: Zenodo
17
+ URL: http://zenodo.org/record/32412
18
+ DOI: 10.5281/zenodo.32412
19
+
20
+ - id: Kratz:2015cr
21
+ type: article-journal
22
+ author:
23
+ - family: Kratz
24
+ given: John E
25
+ - family: Strasser
26
+ given: Carly
27
+ issued:
28
+ - year: '2015'
29
+ month: '8'
30
+ title: Making data count
31
+ container-title: Scientific Data
32
+ page: '150039'
33
+ volume: '2'
34
+ URL: http://www.nature.com/articles/sdata201539
35
+ DOI: 10.1038/sdata.2015.39
36
+
37
+ - id: Eysenbach:2006jo
38
+ type: article-journal
39
+ author:
40
+ - family: Eysenbach
41
+ given: Gunther
42
+ issued:
43
+ - year: '2006'
44
+ month: '5'
45
+ title: Citation advantage of open access articles.
46
+ container-title: PLoS biology
47
+ page: 'e157'
48
+ volume: '4'
49
+ issue: '5'
50
+ URL: http://eutils.ncbi.nlm.nih.gov/entrez/eutils/elink.fcgi?dbfrom=pubmed&id=16683865&retmode=ref&cmd=prlinks
51
+ DOI: 10.1371/journal.pbio.0040157
52
+ PMCID: PMC1459247
53
+ PMID: '16683865'
54
+
55
+ - id: Piwowar:2013cc
56
+ type: article-journal
57
+ author:
58
+ - family: Piwowar
59
+ given: Heather A
60
+ - family: Vision
61
+ given: Todd J
62
+ issued:
63
+ - year: '2013'
64
+ title: Data reuse and the open data citation advantage
65
+ container-title: PeerJ
66
+ page: 'e175'
67
+ volume: '1'
68
+ DOI: 10.7717/peerj.175
69
+
70
+ - id: Irisarri:2013
71
+ type: dataset
72
+ author:
73
+ - family: Irisarri
74
+ given: Iker
75
+ - family: San Mauro
76
+ given: Diego
77
+ - family: Abascal
78
+ given: Federico
79
+ - family: Ohler
80
+ given: Annemarie
81
+ - family: Vences
82
+ given: Miguel
83
+ - family: Zardoya
84
+ given: Rafael
85
+ issued:
86
+ - year: '2013'
87
+ title: 'Data from: The origin of modern frogs (Neobatrachia) was accompanied by
88
+ acceleration in mitochondrial and nuclear substitution rates'
89
+ publisher: Dryad Digital Repository
90
+ URL: http://doi.org/10.5061/DRYAD.3QD54
91
+ DOI: 10.5061/DRYAD.3QD54
92
+
93
+ - id: Irisarri:2012gv
94
+ type: article-journal
95
+ author:
96
+ - family: Irisarri
97
+ given: Iker
98
+ - family: San Mauro
99
+ given: Diego
100
+ - family: Abascal
101
+ given: Federico
102
+ - family: Ohler
103
+ given: Annemarie
104
+ - family: Vences
105
+ given: Miguel
106
+ - family: Zardoya
107
+ given: Rafael
108
+ issued:
109
+ - year: '2012'
110
+ title: The origin of modern frogs (Neobatrachia) was accompanied by acceleration
111
+ in mitochondrial and nuclear substitution rates.
112
+ container-title: BMC genomics
113
+ page: '626'
114
+ volume: '13'
115
+ URL: http://www.biomedcentral.com/1471-2164/13/626/
116
+ DOI: 10.1186/1471-2164-13-626
117
+ PMCID: PMC3551647
118
+ PMID: '23153022'
119
+
120
+ - id: https://doi.org/10.5281/ZENODO.20046
121
+ type: dataset
122
+ author:
123
+ - family: Fenner
124
+ given: Martin
125
+ - family: Jen Song
126
+ given: Jen
127
+ - family: Dennis
128
+ given: Zach
129
+ - family: Whitwell
130
+ given: Martyn
131
+ - family: Osowski
132
+ given: Joe
133
+ - family: Ivimey-Cook
134
+ given: Ruth
135
+ - family: Cave
136
+ given: Richard
137
+ - family: Lin
138
+ given: Jennifer
139
+ - family: Chodacki
140
+ given: John
141
+ issued:
142
+ - year: '2015'
143
+ title: Lagotto 4.2.1
144
+ publisher: Zenodo
145
+ URL: https://doi.org/10.5281/ZENODO.20046
146
+
147
+ - id: Barlow:1818
148
+ type: dataset
149
+ author:
150
+ - family: Barlow
151
+ given: Chester
152
+ issued:
153
+ - year: '1818'
154
+ title: Pilot Boat \#3, on the bar
155
+ publisher: Museum of Vertebrate Zoology
156
+ URL: http://doi.org/10.7299/X7MK6BM6
157
+ DOI: 10.7299/X7MK6BM6
158
+
159
+ - id: Oshu:1955
160
+ type: dataset
161
+ author:
162
+ - family: Oregon Medical School
163
+ given: University
164
+ dropping-particle: of
165
+ issued:
166
+ - year: '1955'
167
+ title: Unidentified man reading a book in the Old Library
168
+ publisher: Oregon Health & Science University
169
+ URL: http://doi.org/10.6083/M4MP51XQ
170
+ DOI: 10.6083/M4MP51XQ
171
+
172
+ - id: Unknown:1926
173
+ type: dataset
174
+ author:
175
+ - family: Unknown
176
+ issued:
177
+ - year: '1926'
178
+ title: Workmen digging up the road at the corner of Belmont Avenue and Burhans Street
179
+ in Paterson, New Jersey
180
+ URL: http://doi.org/10.7282/T38C9WT9
181
+ DOI: 10.7282/T38C9WT9
182
+
183
+ - id: https://orcid.org/about/what-is-orcid/principles
184
+ type: no-type
185
+ issued:
186
+ - year: '2011'
187
+ title: Our Principles
188
+ publisher: ORCID
189
+ URL: https://orcid.org/about/what-is-orcid/principles
190
+
191
+ - id: https://doi.org/10.3932/ETHZ-A-000159123
192
+ type: no-type
193
+ author:
194
+ - family: Unknown
195
+ issued:
196
+ - year: '1931'
197
+ title: Hannover, Blick auf Hannover
198
+ publisher: ETH-Bibliothek Zürich, Bildarchiv
199
+ URL: https://doi.org/10.3932/ETHZ-A-000159123
200
+ DOI: 10.3932/ETHZ-A-000159123
201
+
202
+ - id: https://doi.org/10.5281/ZENODO.30799
203
+ type: no-type
204
+ author:
205
+ - family: Fenner
206
+ given: Martin
207
+ - family: Demeranville
208
+ given: Tom
209
+ - family: Kotarski
210
+ given: Rachael
211
+ - family: Vision
212
+ given: Todd
213
+ - family: Rueda
214
+ given: Laura
215
+ - family: Dasler
216
+ given: Robin
217
+ - family: Haak
218
+ given: Laure
219
+ - family: Cruse
220
+ given: Patricia
221
+ - literal: THOR Consortium
222
+ issued:
223
+ - year: '2015'
224
+ title: 'D2.1: Artefact, Contributor, and Organisation Relationship Data Schema'
225
+ publisher: Zenodo
226
+ URL: https://doi.org/10.5281/ZENODO.30799
227
+ DOI: 10.5281/ZENODO.30799
228
+
229
+ - id: https://doi.org/10.6084/M9.FIGSHARE.1314859
230
+ type: no-type
231
+ author:
232
+ - family: Bilder
233
+ given: Geoffrey
234
+ - family: Lin
235
+ given: Jennifer
236
+ - family: Neylon
237
+ given: Cameron
238
+ issued:
239
+ - year: '2015'
240
+ title: Principles for Open Scholarly Infrastructures-v1
241
+ publisher: Figshare
242
+ URL: https://doi.org/10.6084/M9.FIGSHARE.1314859
243
+
244
+ - id: https://doi.org/10.5281/zenodo.34671
245
+ type: no-type
246
+ author:
247
+ - family: Rueda
248
+ given: Laura
249
+ issued:
250
+ - year: '2015'
251
+ title: DataCite Profiles and ORCID Auto-Update, an Introduction to DataCite
252
+ publisher: Zenodo
253
+ URL: https://doi.org/10.5281/zenodo.34671
254
+
255
+ - id: https://doi.org/10.5281/zenodo.34670
256
+ type: no-type
257
+ author:
258
+ - family: Brown
259
+ given: Josh
260
+ issued:
261
+ - year: '2015'
262
+ title: DataCite/ORCID auto-update and inbox, all you need to know
263
+ publisher: Zenodo
264
+ URL: https://doi.org/10.5281/zenodo.34670
265
+
266
+ - id: https://doi.org/10.5281/zenodo.34673
267
+ type: no-type
268
+ author:
269
+ - family: Fenner
270
+ given: Martin
271
+ issued:
272
+ - year: '2015'
273
+ title: DataCite/ORCID Integration
274
+ publisher: Zenodo
275
+ URL: https://doi.org/10.5281/zenodo.34673
276
+
277
+ - id: https://doi.org/10.5334/jors.be
278
+ type: article-journal
279
+ author:
280
+ - family: Katz
281
+ given: Daniel
282
+ issued:
283
+ - year: '2014'
284
+ month: '9'
285
+ title: Transitive Credit as a Means to Address Social and Technological Concerns
286
+ Stemming from Citation and Attribution of Digital Products
287
+ container-title: Journal of Open Research Software
288
+ publisher: Ubiquity Press, Ltd.
289
+ page: 'e20'
290
+ volume: '2'
291
+ issue: '1'
292
+ URL: https://doi.org/10.5334/jors.be
293
+
294
+ - id: https://doi.org/10.5281/zenodo.31780
295
+ type: no-type
296
+ author:
297
+ - family: Bilder
298
+ given: Geoffrey
299
+ - family: Fenner
300
+ given: Martin
301
+ issued:
302
+ - year: '2015'
303
+ title: DOI Myths... busted
304
+ publisher: Zenodo
305
+ URL: https://doi.org/10.5281/zenodo.31780
306
+
307
+ - id: https://doi.org/10.5281/zenodo.31782
308
+ type: no-type
309
+ author:
310
+ - family: Angjeli
311
+ given: Anila
312
+ issued:
313
+ - year: '2015'
314
+ title: 'Managing identities: Interconnecting research and other domains'
315
+ publisher: Zenodo
316
+ URL: https://doi.org/10.5281/zenodo.31782
317
+
318
+ - id: https://doi.org/10.5281/zenodo.31783
319
+ type: no-type
320
+ author:
321
+ - family: Kunze
322
+ given: John
323
+ issued:
324
+ - year: '2015'
325
+ title: 'Names, Things, and Open Identifier Infrastructure: N2T and ARKs'
326
+ publisher: Zenodo
327
+ URL: https://doi.org/10.5281/zenodo.31783
328
+
329
+ - id: https://doi.org/10.5281/zenodo.31784
330
+ type: no-type
331
+ author:
332
+ - family: Lannom
333
+ given: Larry
334
+ issued:
335
+ - year: '2015'
336
+ title: DONA Foundation, Administering the Global Handle Registry (GHR)
337
+ publisher: Zenodo
338
+ URL: https://doi.org/10.5281/zenodo.31784
339
+
340
+ - id: https://doi.org/10.5281/zenodo.31785
341
+ type: no-type
342
+ author:
343
+ - family: Schwardmann
344
+ given: Ulrich
345
+ issued:
346
+ - year: '2015'
347
+ title: ePIC - Persistent Identifiers for eResearch
348
+ publisher: Zenodo
349
+ URL: https://doi.org/10.5281/zenodo.31785
350
+
351
+ - id: https://doi.org/10.5281/zenodo.31786
352
+ type: no-type
353
+ author:
354
+ - family: Cambon-Thomsen
355
+ given: Anne
356
+ issued:
357
+ - year: '2015'
358
+ title: 'BRIF: Bioresource research impact factor (framework)'
359
+ publisher: Zenodo
360
+ URL: https://doi.org/10.5281/zenodo.31786
361
+
362
+ - id: https://doi.org/10.5281/zenodo.31787
363
+ type: no-type
364
+ author:
365
+ - family: Dallmeier-Thiessen
366
+ given: Sünje
367
+ issued:
368
+ - year: '2015'
369
+ title: Enabling services for data intensive research with THOR
370
+ publisher: Zenodo
371
+ URL: https://doi.org/10.5281/zenodo.31787
372
+
373
+ - id: https://doi.org/10.5281/zenodo.31788
374
+ type: no-type
375
+ author:
376
+ - family: Lehnert
377
+ given: Kerstin
378
+ issued:
379
+ - year: '2015'
380
+ title: 'IGSN: International Geo Sample Number. Unambiguous Citation of Physical
381
+ Samples'
382
+ publisher: Zenodo
383
+ URL: https://doi.org/10.5281/zenodo.31788
384
+
385
+ - id: https://doi.org/10.5281/zenodo.31789
386
+ type: no-type
387
+ author:
388
+ - family: Lin
389
+ given: Jennifer
390
+ issued:
391
+ - year: '2015'
392
+ title: Making Data Count
393
+ publisher: Zenodo
394
+ URL: https://doi.org/10.5281/zenodo.31789
395
+
396
+ - id: https://doi.org/10.5281/zenodo.31790
397
+ type: no-type
398
+ author:
399
+ - family: Weigel
400
+ given: Tobias
401
+ issued:
402
+ - year: '2015'
403
+ title: PID usage at DKRZ, the role of RDA and ePIC policies
404
+ publisher: Zenodo
405
+ URL: https://doi.org/10.5281/zenodo.31790
406
+
407
+ - id: https://doi.org/10.5281/zenodo.31792
408
+ type: no-type
409
+ author:
410
+ - family: Paglione
411
+ given: Laura
412
+ issued:
413
+ - year: '2015'
414
+ title: Connecting people to their scholarly activity and outputs
415
+ publisher: Zenodo
416
+ URL: https://doi.org/10.5281/zenodo.31792
417
+
418
+ - id: https://vimeo.com/147743305
419
+ type: no-type
420
+ author:
421
+ - family: Rueda
422
+ given: Laura
423
+ - family: Brown
424
+ given: Josh
425
+ - family: Fenner
426
+ given: Martin
427
+ issued:
428
+ - year: '2015'
429
+ title: DataCite Profiles and ORCID Auto-Update
430
+ publisher: DataCite
431
+ URL: https://vimeo.com/147743305
432
+
433
+ - id: https://blog.datacite.org/data-driven-development
434
+ type: no-type
435
+ author:
436
+ - family: Fenner
437
+ given: Martin
438
+ issued:
439
+ - year: '2015'
440
+ title: Data-Driven Development
441
+ publisher: DataCite Blog
442
+ URL: https://blog.datacite.org/data-driven-development
443
+
444
+ - id: https://blog.datacite.org/explaining-the-datacite-orcid-auto-update
445
+ type: no-type
446
+ author:
447
+ - family: Fenner
448
+ given: Martin
449
+ issued:
450
+ - year: '2015'
451
+ title: Explaining the DataCite/ORCID Auto-update
452
+ publisher: DataCite Blog
453
+ URL: https://blog.datacite.org/explaining-the-datacite-orcid-auto-update
454
+
455
+ - id: https://blog.datacite.org/adding-references-to-the-datacite-blog
456
+ type: no-type
457
+ author:
458
+ - family: Fenner
459
+ given: Martin
460
+ issued:
461
+ - year: '2015'
462
+ title: Adding References to the DataCite Blog
463
+ publisher: DataCite Blog
464
+ URL: https://blog.datacite.org/adding-references-to-the-datacite-blog
465
+
466
+ - id: https://blog.datacite.org/recap
467
+ type: no-type
468
+ author:
469
+ - family: Cruse
470
+ given: Trisha
471
+ issued:
472
+ - year: '2015'
473
+ title: 'Recap: Persistent Identifiers in Paris'
474
+ publisher: DataCite Blog
475
+ URL: https://blog.datacite.org/recap
476
+
477
+ - id: http://doi.org/10.2312/RE3.008
478
+ type: article-journal
479
+ author:
480
+ - family: Rücknagel
481
+ given: Jessika
482
+ - family: Vierkant
483
+ given: Paul
484
+ - family: Ulrich
485
+ given: Robert
486
+ - family: Kloska
487
+ given: Gabriele
488
+ - family: Schnepf
489
+ given: Edeltraud
490
+ - family: Fichtmüller
491
+ given: David
492
+ - family: Reuter
493
+ given: Evelyn
494
+ - family: Semrau
495
+ given: Angelika
496
+ - family: Kindling
497
+ given: Maxi
498
+ - family: Pampel
499
+ given: H.
500
+ - family: Witt
501
+ given: Michael
502
+ - family: Fritze
503
+ given: Florian
504
+ - family: Sandt
505
+ given: Stephanie
506
+ dropping-particle: van de
507
+ - family: Klump
508
+ given: Jens
509
+ - family: Goebelbecker
510
+ given: Hans-Jürgen
511
+ - family: Skarupianski
512
+ given: Michael
513
+ - family: Bertelmann
514
+ given: Roland
515
+ - family: Schirmbacher
516
+ given: Peter
517
+ - family: Scholze
518
+ given: Frank
519
+ - family: Kramer
520
+ given: Claudia
521
+ - family: Fuchs
522
+ given: Claudio
523
+ - family: Spier
524
+ given: Shaked
525
+ - family: Kirchhoff
526
+ given: Agnes
527
+ issued:
528
+ - year: '2015'
529
+ title: Metadata Schema for the Description of Research Data Repositories
530
+ publisher: GFZ Germans Research Center for Geosciences
531
+ URL: http://doi.org/10.2312/RE3.008
532
+
533
+ - id: http://doi.org/10.1103/physrevlett.116.061102
534
+ type: article-journal
535
+ author:
536
+ - family: Abbott
537
+ given: B.P.
538
+ - family: Abbott
539
+ given: R.
540
+ - family: Abbott
541
+ given: T.D.
542
+ - family: Abernathy
543
+ given: M. R.
544
+ - family: Acernese
545
+ given: F.
546
+ - family: Ackley
547
+ given: K.
548
+ - family: Adams
549
+ given: C.
550
+ - family: Adams
551
+ given: T.
552
+ - family: Addesso
553
+ given: P.
554
+ - family: Zweizig
555
+ given: J.
556
+ issued:
557
+ - year: '2016'
558
+ month: '2'
559
+ title: Observation of Gravitational Waves from a Binary Black Hole Merger
560
+ container-title: Phys. Rev. Lett.
561
+ publisher: American Physical Society (APS)
562
+ volume: '116'
563
+ issue: '6'
564
+ URL: http://doi.org/10.1103/physrevlett.116.061102
565
+
566
+ - id: http://doi.org/10.7935/K5MW2F23
567
+ type: dataset
568
+ author:
569
+ - literal: LIGO Scientific Collaboration
570
+ issued:
571
+ - year: '2016'
572
+ title: Data release for event GW150914
573
+ publisher: LIGO Scientific Collaboration
574
+ URL: http://doi.org/10.7935/K5MW2F23
575
+
576
+ - id: http://doi.org/10.7484/INSPIREHEP.DATA.26B4.TY5F
577
+ type: dataset
578
+ author:
579
+ - family: Aad
580
+ given: Georges
581
+ - family: Abajyan
582
+ given: Tatevik
583
+ - family: Abbott
584
+ given: Brad
585
+ - family: Abdallah
586
+ given: Jalal
587
+ - family: Abdel Khalek
588
+ given: Samah
589
+ - family: Abdinov
590
+ given: Ovsat
591
+ - family: Aben
592
+ given: Rosemarie
593
+ - family: Abi
594
+ given: Babak
595
+ - family: Abolins
596
+ given: Maris
597
+ - family: Zwalinski
598
+ given: Lukasz
599
+ issued:
600
+ - year: '2013'
601
+ title: 'Data from Figure 7 from: Measurements of Higgs boson production and couplings
602
+ in diboson final states with the ATLAS detector at the LHC'
603
+ publisher: HEPDATA
604
+ URL: http://doi.org/10.7484/INSPIREHEP.DATA.26B4.TY5F
605
+
606
+ - id: http://doi.org/10.7484/INSPIREHEP.DATA.RF5P.6M3K
607
+ type: dataset
608
+ author:
609
+ - family: Aad
610
+ given: Georges
611
+ - family: Abajyan
612
+ given: Tatevik
613
+ - family: Abbott
614
+ given: Brad
615
+ - family: Abdallah
616
+ given: Jalal
617
+ - family: Abdel Khalek
618
+ given: Samah
619
+ - family: Abdinov
620
+ given: Ovsat
621
+ - family: Aben
622
+ given: Rosemarie
623
+ - family: Abi
624
+ given: Babak
625
+ - family: Abolins
626
+ given: Maris
627
+ - family: Zwalinski
628
+ given: Lukasz
629
+ issued:
630
+ - year: '2013'
631
+ title: 'Data from Figure 7 from: Measurements of Higgs boson production and couplings
632
+ in diboson final states with the ATLAS detector at the LHC'
633
+ publisher: HEPDATA
634
+ URL: http://doi.org/10.7484/INSPIREHEP.DATA.RF5P.6M3K
635
+
636
+ - id: http://doi.org/10.7484/INSPIREHEP.DATA.A78C.HK44
637
+ type: dataset
638
+ author:
639
+ - family: Aad
640
+ given: Georges
641
+ - family: Abajyan
642
+ given: Tatevik
643
+ - family: Abbott
644
+ given: Brad
645
+ - family: Abdallah
646
+ given: Jalal
647
+ - family: Abdel Khalek
648
+ given: Samah
649
+ - family: Abdinov
650
+ given: Ovsat
651
+ - family: Aben
652
+ given: Rosemarie
653
+ - family: Abi
654
+ given: Babak
655
+ - family: Abolins
656
+ given: Maris
657
+ - family: Zwalinski
658
+ given: Lukasz
659
+ issued:
660
+ - year: '2013'
661
+ title: 'Data from Figure 7 from: Measurements of Higgs boson production and couplings
662
+ in diboson final states with the ATLAS detector at the LHC'
663
+ publisher: HEPDATA
664
+ URL: http://doi.org/10.7484/INSPIREHEP.DATA.A78C.HK44
665
+
666
+ - id: http://doi.org/10.5438/0010
667
+ type: article-journal
668
+ author:
669
+ - literal: DataCite Metadata Working Group
670
+ issued:
671
+ - year: '2014'
672
+ title: DataCite Metadata Schema for the Publication and Citation of Research Data
673
+ v3.1
674
+ publisher: DataCite e.V.
675
+ URL: http://doi.org/10.5438/0010
676
+
677
+ - id: http://doi.org/10.5281/ZENODO.49516
678
+ type: no-type
679
+ author:
680
+ - family: Fenner
681
+ given: Martin
682
+ - family: Wass
683
+ given: Joe
684
+ - family: Song
685
+ given: Jen
686
+ - family: Dennis
687
+ given: Zach
688
+ - family: Whitwell
689
+ given: Martyn
690
+ - family: Osowski
691
+ given: Joe
692
+ - family: Ivimey-Cook
693
+ given: Ruth
694
+ - family: Cave
695
+ given: Richard
696
+ - family: Lin
697
+ given: Jennifer
698
+ - family: Chodacki
699
+ given: John
700
+ issued:
701
+ - year: '2016'
702
+ title: Lagotto 5.0.1
703
+ publisher: Zenodo
704
+ URL: http://doi.org/10.5281/ZENODO.49516
705
+
706
+ - id: http://doi.org/10.3334/CDIAC/00001
707
+ type: dataset
708
+ author:
709
+ - literal: Environmental Sciences Division, Oak Ridge National Laboratory
710
+ issued:
711
+ - year: '2009'
712
+ title: Global, Regional, and National Fossil-Fuel CO2 Emissions
713
+ publisher: Carbon Dioxide Information Analysis Center (CDIAC)
714
+ URL: http://doi.org/10.3334/CDIAC/00001
715
+
716
+ - id: https://blog.datacite.org/to-better-understand-research-communication-we-need-a-groid-group-object-identifier
717
+ type: no-type
718
+ author:
719
+ - family: Katz
720
+ given: Dan S.
721
+ issued:
722
+ - year: '2016'
723
+ title: To better understand research communication, we need a GROID (group object
724
+ identifier)
725
+ publisher: DataCite Blog
726
+ URL: https://blog.datacite.org/to-better-understand-research-communication-we-need-a-groid-group-object-identifier
727
+
728
+ - id: https://blog.datacite.org/reference-lists-and-tables-of-content
729
+ type: no-type
730
+ author:
731
+ - family: Fenner
732
+ given: Martin
733
+ issued:
734
+ - year: '2015'
735
+ title: Reference Lists and Tables of Content
736
+ publisher: DataCite Blog
737
+ URL: https://blog.datacite.org/reference-lists-and-tables-of-content
738
+
739
+ - id: https://figshare.com/blog/Unveiling_figshare_Collections_a_new_way_to_group_content/202
740
+ type: no-type
741
+ author:
742
+ - family: Hyndman
743
+ given: Alan
744
+ issued:
745
+ - year: '2016'
746
+ title: Unveiling figshare ’Collections’ - a new way to group content
747
+ publisher: Figshare Blog
748
+ URL: https://figshare.com/blog/Unveiling_figshare_Collections_a_new_way_to_group_content/202
749
+
750
+ - id: http://doi.org/10.15252/msb.20156658
751
+ type: article-journal
752
+ author:
753
+ - family: McEntyre
754
+ given: J.
755
+ - family: Sarkans
756
+ given: U.
757
+ - family: Brazma
758
+ given: A.
759
+ issued:
760
+ - year: '2015'
761
+ month: '12'
762
+ title: The BioStudies database
763
+ container-title: Molecular Systems Biology
764
+ publisher: EMBO
765
+ page: '847-847'
766
+ volume: '11'
767
+ issue: '12'
768
+ URL: http://doi.org/10.15252/msb.20156658
769
+ DOI: 10.15252/msb.20156658
770
+
771
+ - id: http://doi.org/10.7717/peerj-cs.1
772
+ type: article-journal
773
+ author:
774
+ - family: Starr
775
+ given: Joan
776
+ - family: Castro
777
+ given: Eleni
778
+ - family: Crosas
779
+ given: Mercè
780
+ - family: Dumontier
781
+ given: Michel
782
+ - family: Downs
783
+ given: Robert R.
784
+ - family: Duerr
785
+ given: Ruth
786
+ - family: Haak
787
+ given: Laurel L.
788
+ - family: Haendel
789
+ given: Melissa
790
+ - family: Herman
791
+ given: Ivan
792
+ - family: Hodson
793
+ given: Simon
794
+ - family: Hourclé
795
+ given: Joe
796
+ - family: Kratz
797
+ given: John Ernest
798
+ - family: Lin
799
+ given: Jennifer
800
+ - family: Nielsen
801
+ given: Lars Holm
802
+ - family: Nurnberger
803
+ given: Amy
804
+ - family: Proell
805
+ given: Stefan
806
+ - family: Rauber
807
+ given: Andreas
808
+ - family: Sacchi
809
+ given: Simone
810
+ - family: Smith
811
+ given: Arthur
812
+ - family: Taylor
813
+ given: Mike
814
+ - family: Clark
815
+ given: Tim
816
+ issued:
817
+ - year: '2015'
818
+ month: '5'
819
+ title: Achieving human and machine accessibility of cited data in scholarly publications
820
+ container-title: PeerJ Computer Science
821
+ publisher: PeerJ
822
+ page: 'e1'
823
+ volume: '1'
824
+ URL: http://doi.org/10.7717/peerj-cs.1
825
+ DOI: 10.7717/peerj-cs.1
826
+
827
+ - id: https://blog.datacite.org/thinking-about-csv
828
+ type: no-type
829
+ author:
830
+ - family: Fenner
831
+ given: Martin
832
+ issued:
833
+ - year: '2016'
834
+ title: Thinking about CSV
835
+ publisher: DataCite Blog
836
+ URL: https://blog.datacite.org/thinking-about-csv
837
+
838
+ - id: https://github.com/datacite/jekyll-csvy
839
+ type: no-type
840
+ author:
841
+ - family: Fenner
842
+ given: Martin
843
+ issued:
844
+ - year: '2016'
845
+ title: 'jekyll-csvy: Jekyll converter for CSVY files'
846
+ title-short: jekyll-csvy
847
+ publisher: GitHub
848
+ URL: https://github.com/datacite/jekyll-csvy
849
+
850
+ - id: https://cran.r-project.org/web/packages/rio/index.html
851
+ type: no-type
852
+ author:
853
+ - family: Becker
854
+ given: Jason
855
+ - family: Chan
856
+ given: Chung-hong
857
+ - family: Chan
858
+ given: Geoffrey CH
859
+ - family: Leeper
860
+ given: Thomas J.
861
+ - family: Gandrud
862
+ given: Christopher
863
+ - family: MacDonald
864
+ given: Andrew
865
+ - family: Zahn
866
+ given: Ista
867
+ issued:
868
+ - year: '2016'
869
+ title: 'rio: A Swiss-Army Knife for Data I/O'
870
+ publisher: CRAN
871
+ URL: https://cran.r-project.org/web/packages/rio/index.html
872
+
873
+ - id: http://doi.org/10.6084/M9.FIGSHARE.3364708.V1
874
+ type: no-type
875
+ author:
876
+ - family: Karcher
877
+ given: Sebastian
878
+ issued:
879
+ - year: '2016'
880
+ title: Zotero for Data Repositories
881
+ publisher: Figshare
882
+ URL: http://doi.org/10.6084/M9.FIGSHARE.3364708.V1
883
+ DOI: 10.6084/M9.FIGSHARE.3364708.V1
884
+
885
+ - id: http://doi.org/10.1145/2783446.2783605
886
+ type: paper-conference
887
+ author:
888
+ - family: Garza
889
+ given: Kristian
890
+ - family: Goble
891
+ given: Carole
892
+ - family: Brooke
893
+ given: John
894
+ - family: Jay
895
+ given: Caroline
896
+ issued:
897
+ - year: '2015'
898
+ title: Framing the community data system interface
899
+ container-title: Proceedings of the 2015 British HCI Conference on - British HCI
900
+ 15
901
+ publisher: Association for Computing Machinery (ACM)
902
+ URL: http://doi.org/10.1145/2783446.2783605
903
+ DOI: 10.1145/2783446.2783605
904
+
905
+ - id: http://doi.org/10.7717/peerj-cs.86
906
+ type: article-journal
907
+ author:
908
+ - family: Smith
909
+ given: AM
910
+ - family: Katz
911
+ given: DS
912
+ - family: Niemeyer
913
+ given: KE
914
+ - family: FORCE11-Software-Citation-Working-Group
915
+ issued:
916
+ - year: '2016'
917
+ month: september
918
+ title: Software citation principles
919
+ container-title: PeerJ Computer Science
920
+ publisher: PeerJ
921
+ URL: https://peerj.com/articles/cs-86/
922
+ DOI: 10.7717/peerj-cs.86
923
+
924
+ - id: http://doi.org/10.5438/0012
925
+ type: article-journal
926
+ author:
927
+ - literal: DataCite Metadata Working Group
928
+ issued:
929
+ - year: '2016'
930
+ title: DataCite Metadata Schema for the Publication and Citation of Research Data
931
+ v4.0
932
+ publisher: DataCite e.V.
933
+ URL: http://doi.org/10.5438/0012
934
+
935
+ - id: https://doi.org/10.5438/2906
936
+ type: no-type
937
+ author:
938
+ - family: Cruse
939
+ given: Patricia
940
+ - family: Haak
941
+ given: Laure
942
+ - family: Pentz
943
+ given: Ed
944
+ issued:
945
+ - year: '2016'
946
+ title: 'Organization Identifier Project: A Way Forward'
947
+ publisher: ORCID
948
+ URL: https://doi.org/10.5438/2906
949
+ DOI: 10.5438/2906
950
+
951
+ - id: https://doi.org/10.5438/7885
952
+ type: no-type
953
+ author:
954
+ - family: Fenner
955
+ given: Martin
956
+ - family: Paglione
957
+ given: Laura
958
+ - family: Demeranville
959
+ given: Tom
960
+ - family: Bilder
961
+ given: Geoff
962
+ issued:
963
+ - year: '2016'
964
+ title: Technical Considerations for an Organization Identifier Registry
965
+ publisher: ORCID
966
+ URL: https://doi.org/10.5438/7885
967
+ DOI: 10.5438/7885
968
+
969
+ - id: https://doi.org/10.5438/4716
970
+ type: no-type
971
+ author:
972
+ - family: Bilder
973
+ given: Geoffrey
974
+ - family: Brown
975
+ given: Josh
976
+ - family: Demeranville
977
+ given: Tom
978
+ issued:
979
+ - year: '2016'
980
+ title: 'Organisation identifiers: current provider survey'
981
+ publisher: ORCID
982
+ URL: https://doi.org/10.5438/4716
983
+ DOI: 10.5438/4716
984
+
985
+ - id: https://doi.org/10.6084/M9.FIGSHARE.3479141
986
+ type: no-type
987
+ author:
988
+ - family: Demeranville
989
+ given: Tom
990
+ - family: Brown
991
+ given: Josh
992
+ - family: Fenner
993
+ given: Martin
994
+ - family: Cruse
995
+ given: Patricia
996
+ - family: Haak
997
+ given: Laure
998
+ - family: Paglione
999
+ given: Laura
1000
+ - family: Bilder
1001
+ given: Geoffrey
1002
+ - family: Lin
1003
+ given: Jennifer
1004
+ - family: Pentz
1005
+ given: Ed
1006
+ issued:
1007
+ - year: '2016'
1008
+ title: Organisation Identifiers - Minimum viable product requirements
1009
+ publisher: Figshare
1010
+ URL: https://doi.org/10.6084/M9.FIGSHARE.3479141
1011
+ DOI: 10.6084/M9.FIGSHARE.3479141
1012
+
1013
+ - id: https://doi.org/10.1371/journal.pone.0115253
1014
+ type: article-journal
1015
+ author:
1016
+ - family: Klein
1017
+ given: Martin
1018
+ - family: Sompel
1019
+ given: Herbert Van de
1020
+ - family: Sanderson
1021
+ given: Robert
1022
+ - family: Shankar
1023
+ given: Harihar
1024
+ - family: Balakireva
1025
+ given: Lyudmila
1026
+ - family: Zhou
1027
+ given: Ke
1028
+ - family: Tobin
1029
+ given: Richard
1030
+ issued:
1031
+ - year: '2014'
1032
+ month: '12'
1033
+ title: 'Scholarly Context Not Found: One in Five Articles Suffers from Reference
1034
+ Rot'
1035
+ title-short: Scholarly Context Not Found
1036
+ container-title: PLOS ONE
1037
+ page: 'e115253'
1038
+ volume: '9'
1039
+ issue: '12'
1040
+ keyword: Archives, Communications, Computer and information sciences, Evolutionary
1041
+ immunology, Extrapolation, Internet, Publication ethics, Species interactions
1042
+ URL: http://journals.plos.org/plosone/article?id=10.1371/journal.pone.0115253
1043
+ DOI: 10.1371/journal.pone.0115253
1044
+ ISSN: '1932-6203'
1045
+
1046
+ - id: https://www.w3.org/Provider/Style/URI
1047
+ type: no-type
1048
+ author:
1049
+ - family: Berners-Lee
1050
+ given: Tim
1051
+ issued:
1052
+ - year: '1998'
1053
+ accessed:
1054
+ - year: '2016'
1055
+ month: '12'
1056
+ day: '14'
1057
+ title: 'Hypertext Style: Cool URIs don’t change.'
1058
+ title-short: Hypertext Style
1059
+ URL: https://www.w3.org/Provider/Style/URI
1060
+ ...
@@ -1,7 +1,8 @@
1
1
  site_url: https://blog.datacite.org
2
2
  site_title: DataCite Blog
3
- site_default_type: BlogPosting
4
- site_institution: DataCite
3
+ default_type: BlogPosting
4
+ institution: DataCite
5
+ prefix: 10.23725
5
6
  license:
6
7
  name: Creative Commons Attribution
7
8
  url: "https://creativecommons.org/licenses/by/4.0/"
data/spec/utils_spec.rb CHANGED
@@ -45,19 +45,25 @@ describe Cirneco::DataCenter, vcr: true, :order => :defined do
45
45
  filepath = fixture_path + 'cool-dois.html.md'
46
46
  number = 123
47
47
  response = subject.register_file(filepath, number: number)
48
- expect(response).to eq("DOI 10.23725/0000-03VC added to cool-dois.html.md")
48
+ expect(response).to eq("DOI 10.23725/0000-03VC added for cool-dois.html.md")
49
49
  end
50
50
 
51
- it 'should register_file unregister' do
51
+ it 'should unregister_file' do
52
52
  filepath = fixture_path + 'cool-dois.html.md'
53
- response = subject.register_file(filepath, unregister: true)
54
- expect(response).to eq("DOI removed from cool-dois.html.md")
53
+ response = subject.unregister_file(filepath)
54
+ expect(response).to eq("DOI 10.23725/0000-03VC removed for cool-dois.html.md")
55
55
  end
56
56
 
57
- it 'should register_all_files unregister' do
57
+ it 'should register_all_files' do
58
58
  number = 123
59
- response = subject.register_all_files(fixture_path, number: number, unregister: true)
60
- expect(response).to eq("DOI removed from cool-dois.html.md")
59
+ response = subject.register_all_files(fixture_path, number: number)
60
+ expect(response).to eq("DOI 10.23725/0000-03VC added for cool-dois.html.md")
61
+ end
62
+
63
+ it 'should unregister_all_files' do
64
+ number = 123
65
+ response = subject.unregister_all_files(fixture_path)
66
+ expect(response).to eq("DOI 10.23725/0000-03VC removed for cool-dois.html.md")
61
67
  end
62
68
 
63
69
  it 'should ignore non-markdown file for register_file' do
@@ -72,7 +78,7 @@ describe Cirneco::DataCenter, vcr: true, :order => :defined do
72
78
  metadata = subject.generate_metadata_for_work(filepath, number: number, csl: 'spec/fixtures/apa.csl', bibliography: 'spec/fixtures/references.bib')
73
79
  expect(metadata["url"]).to eq("https://blog.datacite.org/cool-dois/")
74
80
  expect(metadata["creators"]).to eq([{:given_name=>"Martin", :family_name=>"Fenner", :orcid=>"0000-0003-1419-2405"}])
75
- expect(metadata["descriptions"]).to eq([{:value=>"In 1998 Tim Berners-Lee coined the term cool URIs (1998), that is URIs that don’t change. We know that URLs referenced in the scholarly literature are often not cool, leading to link rot (Klein et al., 2014) and making it hard or impossible to find...",:description_type=>"Abstract"}])
81
+ expect(metadata["descriptions"]).to eq([{:value=>"In 1998 Tim Berners-Lee coined the term cool URIs (1998), that is URIs that don’t change. We know that URLs referenced in the scholarly literature are often not cool, leading to link rot (Klein et al., 2014) and making it hard or impossible to find the referenced resource.",:description_type=>"Abstract"}])
76
82
  expect(metadata["related_identifiers"]).to eq([{:value=>"https://www.w3.org/Provider/Style/URI",
77
83
  :related_identifier_type=>"URL",
78
84
  :relation_type=>"References"},
@@ -81,11 +87,11 @@ describe Cirneco::DataCenter, vcr: true, :order => :defined do
81
87
  :relation_type=>"References" }])
82
88
  end
83
89
 
84
- it 'should create_work_from_yaml' do
90
+ it 'should register_work_for_metadata' do
85
91
  filepath = fixture_path + 'cool-dois.html.md'
86
92
  number = 123
87
93
  metadata = subject.generate_metadata_for_work(filepath, number: number, csl: 'spec/fixtures/apa.csl', bibliography: 'spec/fixtures/references.bib')
88
- work = subject.create_work_from_metadata(metadata)
94
+ work = subject.register_work_for_metadata(metadata)
89
95
  expect(work.validation_errors).to be_empty
90
96
  end
91
97
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cirneco
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.8
4
+ version: '0.6'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Martin Fenner
@@ -346,6 +346,7 @@ files:
346
346
  - spec/fixtures/cool-dois.html.md
347
347
  - spec/fixtures/cool-dois.yml
348
348
  - spec/fixtures/references.bib
349
+ - spec/fixtures/references.yaml
349
350
  - spec/fixtures/site.yml
350
351
  - spec/fixtures/vcr_cassettes/Cirneco_DataCenter/get/should_get_all_dois_by_prefix.yml
351
352
  - spec/fixtures/vcr_cassettes/Cirneco_DataCenter/get/should_get_next_doi.yml