ddr-core 1.12.2 → 1.13.2

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
  SHA256:
3
- metadata.gz: 1747ec2e17d7996e200306167e43b58e2dc131e90dc53e60cea8e743330d427e
4
- data.tar.gz: 198b5d9ec8d996df0d90244e28b2256494f7dacd97e3f912f7f9aa35a0b43dd2
3
+ metadata.gz: 921ae58073e8927ae89edf43dbd8c038dbaef3de559d3c894e26930438a08b58
4
+ data.tar.gz: 1374a4145cca78328eab0ff47106f1e028b01713802d5396561afd77404aacb3
5
5
  SHA512:
6
- metadata.gz: 66cb2bce2d80a04dcad5fa2fc4903ea3f2a73a98acb419ee108acaf8410864444f7e149f35fe841e672b070f06531fa5f750a053e73d1f13a1ef0bf4c9c96bc7
7
- data.tar.gz: 1e13d74efb54b66264639ccefeecf9b9b0a07496d76bff8d93e7207562637bac6cd22e0376f0cfb2a6a61a5d9a09a82ee9a1eb1a6a8393dfa9301655adb4f4db
6
+ metadata.gz: 4d1ec4c3a0850d81b323a8a530f31e90322d8b370ade52d15d314f6e301efaba8ae8c964f7c49822361b64000020561bf3386b9e25266b2dc2762b6edb8a6f1c
7
+ data.tar.gz: ed71fe51206603168ffbaf5a40ef507665c9b16666e8ea1140718cba21b610754dbe1a1bbffebcfbd118bf43a25e91d509de7be3606fdcf51bbb48d31aa86c6e
@@ -1,19 +1,33 @@
1
1
  module Ddr
2
- class AdminSet < AuxiliaryResource
2
+ AdminSet = Struct.new(:code, :title, keyword_init: true) do
3
+
4
+ def self.config
5
+ @config ||= YAML.load_file(::File.expand_path('../../../config/aux/admin_set.yml', __dir__))
6
+ end
7
+
8
+ def self.keystore
9
+ @keystore ||= Hash[config.map { |entry| [entry['code'], new(entry).freeze] }].freeze
10
+ end
11
+
12
+ def self.all
13
+ keystore.values
14
+ end
3
15
 
4
16
  def self.call(obj)
5
17
  find_by_code(obj.admin_set)
6
- rescue ActiveResource::ResourceNotFound => e
7
- raise Ddr::NotFoundError, e
8
18
  end
9
19
 
10
20
  def self.find_by_code(code)
11
21
  return unless code
12
- fetch(code) { new get(:find, code: code) }
22
+
23
+ keystore.fetch(code)
24
+
25
+ rescue KeyError => _
26
+ raise Ddr::NotFoundError, "AdminSet code '#{code}' not found."
13
27
  end
14
28
 
15
29
  def self.keys
16
- fetch("codes") { all.map(&:code) }
30
+ keystore.keys
17
31
  end
18
32
 
19
33
  def to_s
@@ -1,14 +1,27 @@
1
1
  module Ddr
2
- class Contact < AuxiliaryResource
2
+ Contact = Struct.new(:slug, :name, :short_name, :url, :phone, :email, :ask, keyword_init: true) do
3
+
4
+ def self.config
5
+ @config ||= YAML.load_file(::File.expand_path('../../../config/aux/contact.yml', __dir__))
6
+ end
7
+
8
+ def self.keystore
9
+ @keystore ||= Hash[config.map { |entry| [entry['slug'], new(entry).freeze] }].freeze
10
+ end
11
+
12
+ def self.all
13
+ keystore.values
14
+ end
3
15
 
4
16
  def self.call(slug)
5
- new get(:find, slug: slug)
6
- rescue ActiveResource::ResourceNotFound => e
7
- raise Ddr::NotFoundError, e
17
+ keystore.fetch(slug)
18
+
19
+ rescue KeyError => _
20
+ raise Ddr::NotFoundError, "Contact slug '#{slug}' not found."
8
21
  end
9
22
 
10
23
  def self.keys
11
- all.map(&:slug)
24
+ keystore.keys
12
25
  end
13
26
 
14
27
  def to_s
@@ -1,21 +1,32 @@
1
1
  module Ddr
2
- class Language < AuxiliaryResource
2
+ Language = Struct.new(:code, :label, keyword_init: true) do
3
+
4
+ def self.config
5
+ @config ||= YAML.load_file(::File.expand_path('../../../config/aux/language.yml', __dir__))
6
+ end
7
+
8
+ def self.keystore
9
+ @keystore ||= Hash[config.map { |entry| [entry['code'], new(entry).freeze] }].freeze
10
+ end
11
+
12
+ def self.all
13
+ keystore.values
14
+ end
3
15
 
4
16
  def self.call(obj)
5
- obj.language.map do |lang|
6
- find_by_code(lang)
7
- end
8
- rescue ActiveResource::ResourceNotFound => e
9
- raise Ddr::NotFoundError, e
17
+ obj.language.map { |lang| find_by_code(lang) }
10
18
  end
11
19
 
12
20
  def self.find_by_code(code)
13
21
  return unless code
14
- new get(:find, code: code)
22
+
23
+ keystore.fetch(code)
24
+ rescue KeyError => _
25
+ raise Ddr::NotFoundError, "Language code '#{code}' not found."
15
26
  end
16
27
 
17
28
  def self.codes
18
- all.map(&:code)
29
+ keystore.keys
19
30
  end
20
31
 
21
32
  def to_s
@@ -1,16 +1,29 @@
1
1
  module Ddr
2
- class RightsStatement < AuxiliaryResource
2
+ RightsStatement = Struct.new(:title, :url, :short_title, :feature, :reuse_text, keyword_init: true) do
3
+
4
+ def self.config
5
+ @config ||= YAML.load_file(::File.expand_path('../../../config/aux/rights_statement.yml', __dir__))
6
+ end
7
+
8
+ def self.keystore
9
+ @keystore ||= Hash[config.map { |entry| [entry['url'], new(entry).freeze] }].freeze
10
+ end
11
+
12
+ def self.all
13
+ keystore.values
14
+ end
3
15
 
4
16
  def self.call(obj)
5
- if obj.rights.present?
6
- new get(:find, url: obj.rights.first)
7
- end
8
- rescue ActiveResource::ResourceNotFound => e
9
- raise Ddr::NotFoundError, e
17
+ return if obj.rights.empty?
18
+
19
+ keystore.fetch(obj.rights.first)
20
+
21
+ rescue KeyError => _
22
+ raise Ddr::NotFoundError, "Rights statement '#{obj.rights.first}' not found."
10
23
  end
11
24
 
12
25
  def self.keys
13
- all.map(&:url)
26
+ keystore.keys
14
27
  end
15
28
 
16
29
  def to_s
@@ -0,0 +1,26 @@
1
+ - code: dul_collections
2
+ title: DUL Collections
3
+
4
+ - code: duson
5
+ title: Duke University School of Nursing Digital Archive
6
+
7
+ - code: ebooks
8
+ title: Electronic Books
9
+
10
+ - code: nescent
11
+ title: 'NESCent: National Evolutionary Synthesis Center'
12
+
13
+ - code: dc
14
+ title: Digital Collections
15
+
16
+ - code: dvs
17
+ title: Data and Visualization Services
18
+
19
+ - code: rubenstein
20
+ title: Rubenstein Library
21
+
22
+ - code: duke_scholarship
23
+ title: Duke Scholarship
24
+
25
+ - code: researchdata
26
+ title: Duke Research Data
@@ -0,0 +1,87 @@
1
+ - slug: dvs
2
+ name: Data and Visualization Services
3
+ short_name: null
4
+ url: http://library.duke.edu/data/
5
+ phone: 919-660-5880
6
+ email: askdata@duke.edu
7
+ ask: null
8
+
9
+ - slug: libraries
10
+ name: Duke University Libraries
11
+ short_name: null
12
+ url: http://library.duke.edu
13
+ phone: 919-660-5880
14
+ email: askref@duke.edu
15
+ ask: http://library.duke.edu/research/ask
16
+
17
+ - slug: divinity
18
+ name: Divinity School Library
19
+ short_name: null
20
+ url: http://library.divinity.duke.edu/
21
+ phone: 919-660-3453
22
+ email: divlib@duke.edu
23
+ ask: http://library.divinity.duke.edu/ask-us
24
+
25
+ - slug: uarchives
26
+ name: Duke University Archives
27
+ short_name: University Archives
28
+ url: http://library.duke.edu/rubenstein/uarchives/
29
+ phone: 919-660-5822
30
+ email: uarchives@duke.edu
31
+ ask: http://library.duke.edu/rubenstein/uarchives/ask
32
+
33
+ - slug: humanrights
34
+ name: Human Rights Archive
35
+ short_name: null
36
+ url: http://library.duke.edu/rubenstein/human-rights/
37
+ phone: 919-660-5822
38
+ email: special-collections@duke.edu
39
+ ask: http://library.duke.edu/rubenstein/ask
40
+
41
+ - slug: hom
42
+ name: History of Medicine Collections
43
+ short_name: null
44
+ url: http://library.duke.edu/rubenstein/history-of-medicine/
45
+ phone: 919-684-8549
46
+ email: special-collections@duke.edu
47
+ ask: http://library.duke.edu/rubenstein/ask
48
+
49
+ - slug: franklin
50
+ name: John Hope Franklin Research Center
51
+ short_name: Franklin Research Center
52
+ url: http://library.duke.edu/rubenstein/franklin/
53
+ phone: 919-660-5922
54
+ email: franklin-collection@duke.edu
55
+ ask: http://library.duke.edu/rubenstein/ask
56
+
57
+ - slug: docarts
58
+ name: Archive of Documentary Arts
59
+ short_name: null
60
+ url: http://library.duke.edu/rubenstein/documentaryarts/
61
+ phone: 919-660-5822
62
+ email: special-collections@duke.edu
63
+ ask: http://library.duke.edu/rubenstein/ask
64
+
65
+ - slug: bingham
66
+ name: Sallie Bingham Center for Women's History & Culture
67
+ short_name: Bingham Center
68
+ url: http://library.duke.edu/rubenstein/bingham/
69
+ phone: 919-660-5967
70
+ email: cwhc@duke.edu
71
+ ask: http://library.duke.edu/rubenstein/ask
72
+
73
+ - slug: hartman
74
+ name: John W. Hartman Center for Sales, Advertising & Marketing History
75
+ short_name: Hartman Center
76
+ url: http://library.duke.edu/rubenstein/hartman/
77
+ phone: 919-660-5827
78
+ email: hartman-center@duke.edu
79
+ ask: http://library.duke.edu/rubenstein/hartman/ask
80
+
81
+ - slug: rubenstein
82
+ name: David M. Rubenstein Rare Book & Manuscript Library
83
+ short_name: Rubenstein Library
84
+ url: http://library.duke.edu/rubenstein/
85
+ phone: 919-660-5822
86
+ email: special-collections@duke.edu
87
+ ask: http://library.duke.edu/rubenstein/ask
@@ -0,0 +1,1012 @@
1
+ - code: aar
2
+ label: Afar
3
+ - code: abk
4
+ label: Abkhazian
5
+ - code: ace
6
+ label: Achinese
7
+ - code: ach
8
+ label: Acoli
9
+ - code: ada
10
+ label: Adangme
11
+ - code: ady
12
+ label: Adyghe; Adygei
13
+ - code: afa
14
+ label: Afro-Asiatic languages
15
+ - code: afh
16
+ label: Afrihili
17
+ - code: afr
18
+ label: Afrikaans
19
+ - code: ain
20
+ label: Ainu
21
+ - code: aka
22
+ label: Akan
23
+ - code: akk
24
+ label: Akkadian
25
+ - code: alb
26
+ label: Albanian
27
+ - code: ale
28
+ label: Aleut
29
+ - code: alg
30
+ label: Algonquian languages
31
+ - code: alt
32
+ label: Southern Altai
33
+ - code: amh
34
+ label: Amharic
35
+ - code: ang
36
+ label: English, Old (ca.450-1100)
37
+ - code: anp
38
+ label: Angika
39
+ - code: apa
40
+ label: Apache languages
41
+ - code: ara
42
+ label: Arabic
43
+ - code: arc
44
+ label: Official Aramaic (700-300 BCE); Imperial Aramaic (700-300 BCE)
45
+ - code: arg
46
+ label: Aragonese
47
+ - code: arm
48
+ label: Armenian
49
+ - code: arn
50
+ label: Mapudungun; Mapuche
51
+ - code: arp
52
+ label: Arapaho
53
+ - code: art
54
+ label: Artificial languages
55
+ - code: arw
56
+ label: Arawak
57
+ - code: asm
58
+ label: Assamese
59
+ - code: ast
60
+ label: Asturian; Bable; Leonese; Asturleonese
61
+ - code: ath
62
+ label: Athapascan languages
63
+ - code: aus
64
+ label: Australian languages
65
+ - code: ava
66
+ label: Avaric
67
+ - code: ave
68
+ label: Avestan
69
+ - code: awa
70
+ label: Awadhi
71
+ - code: aym
72
+ label: Aymara
73
+ - code: aze
74
+ label: Azerbaijani
75
+ - code: bad
76
+ label: Banda languages
77
+ - code: bai
78
+ label: Bamileke languages
79
+ - code: bak
80
+ label: Bashkir
81
+ - code: bal
82
+ label: Baluchi
83
+ - code: bam
84
+ label: Bambara
85
+ - code: ban
86
+ label: Balinese
87
+ - code: baq
88
+ label: Basque
89
+ - code: bas
90
+ label: Basa
91
+ - code: bat
92
+ label: Baltic languages
93
+ - code: bej
94
+ label: Beja; Bedawiyet
95
+ - code: bel
96
+ label: Belarusian
97
+ - code: bem
98
+ label: Bemba
99
+ - code: ben
100
+ label: Bengali
101
+ - code: ber
102
+ label: Berber languages
103
+ - code: bho
104
+ label: Bhojpuri
105
+ - code: bih
106
+ label: Bihari languages
107
+ - code: bik
108
+ label: Bikol
109
+ - code: bin
110
+ label: Bini; Edo
111
+ - code: bis
112
+ label: Bislama
113
+ - code: bla
114
+ label: Siksika
115
+ - code: bnt
116
+ label: Bantu languages
117
+ - code: bod
118
+ label: Tibetan
119
+ - code: bos
120
+ label: Bosnian
121
+ - code: bra
122
+ label: Braj
123
+ - code: bre
124
+ label: Breton
125
+ - code: btk
126
+ label: Batak languages
127
+ - code: bua
128
+ label: Buriat
129
+ - code: bug
130
+ label: Buginese
131
+ - code: bul
132
+ label: Bulgarian
133
+ - code: bur
134
+ label: Burmese
135
+ - code: byn
136
+ label: Blin; Bilin
137
+ - code: cad
138
+ label: Caddo
139
+ - code: cai
140
+ label: Central American Indian languages
141
+ - code: car
142
+ label: Galibi Carib
143
+ - code: cat
144
+ label: Catalan; Valencian
145
+ - code: cau
146
+ label: Caucasian languages
147
+ - code: ceb
148
+ label: Cebuano
149
+ - code: cel
150
+ label: Celtic languages
151
+ - code: ces
152
+ label: Czech
153
+ - code: cha
154
+ label: Chamorro
155
+ - code: chb
156
+ label: Chibcha
157
+ - code: che
158
+ label: Chechen
159
+ - code: chg
160
+ label: Chagatai
161
+ - code: chi
162
+ label: Chinese
163
+ - code: chk
164
+ label: Chuukese
165
+ - code: chm
166
+ label: Mari
167
+ - code: chn
168
+ label: Chinook jargon
169
+ - code: cho
170
+ label: Choctaw
171
+ - code: chp
172
+ label: Chipewyan; Dene Suline
173
+ - code: chr
174
+ label: Cherokee
175
+ - code: chu
176
+ label: Church Slavic; Old Slavonic; Church Slavonic; Old Bulgarian; Old Church Slavonic
177
+ - code: chv
178
+ label: Chuvash
179
+ - code: chy
180
+ label: Cheyenne
181
+ - code: cmc
182
+ label: Chamic languages
183
+ - code: cop
184
+ label: Coptic
185
+ - code: cor
186
+ label: Cornish
187
+ - code: cos
188
+ label: Corsican
189
+ - code: cpe
190
+ label: Creoles and pidgins, English based
191
+ - code: cpf
192
+ label: Creoles and pidgins, French-based
193
+ - code: cpp
194
+ label: Creoles and pidgins, Portuguese-based
195
+ - code: cre
196
+ label: Cree
197
+ - code: crh
198
+ label: Crimean Tatar; Crimean Turkish
199
+ - code: crp
200
+ label: Creoles and pidgins
201
+ - code: csb
202
+ label: Kashubian
203
+ - code: cus
204
+ label: Cushitic languages
205
+ - code: cym
206
+ label: Welsh
207
+ - code: cze
208
+ label: Czech
209
+ - code: dak
210
+ label: Dakota
211
+ - code: dan
212
+ label: Danish
213
+ - code: dar
214
+ label: Dargwa
215
+ - code: day
216
+ label: Land Dayak languages
217
+ - code: del
218
+ label: Delaware
219
+ - code: den
220
+ label: Slave (Athapascan)
221
+ - code: deu
222
+ label: German
223
+ - code: dgr
224
+ label: Dogrib
225
+ - code: din
226
+ label: Dinka
227
+ - code: div
228
+ label: Divehi; Dhivehi; Maldivian
229
+ - code: doi
230
+ label: Dogri
231
+ - code: dra
232
+ label: Dravidian languages
233
+ - code: dsb
234
+ label: Lower Sorbian
235
+ - code: dua
236
+ label: Duala
237
+ - code: dum
238
+ label: Dutch, Middle (ca.1050-1350)
239
+ - code: dut
240
+ label: Dutch; Flemish
241
+ - code: dyu
242
+ label: Dyula
243
+ - code: dzo
244
+ label: Dzongkha
245
+ - code: efi
246
+ label: Efik
247
+ - code: egy
248
+ label: Egyptian (Ancient)
249
+ - code: eka
250
+ label: Ekajuk
251
+ - code: ell
252
+ label: Greek, Modern (1453-)
253
+ - code: elx
254
+ label: Elamite
255
+ - code: eng
256
+ label: English
257
+ - code: enm
258
+ label: English, Middle (1100-1500)
259
+ - code: epo
260
+ label: Esperanto
261
+ - code: est
262
+ label: Estonian
263
+ - code: eus
264
+ label: Basque
265
+ - code: ewe
266
+ label: Ewe
267
+ - code: ewo
268
+ label: Ewondo
269
+ - code: fan
270
+ label: Fang
271
+ - code: fao
272
+ label: Faroese
273
+ - code: fas
274
+ label: Persian
275
+ - code: fat
276
+ label: Fanti
277
+ - code: fij
278
+ label: Fijian
279
+ - code: fil
280
+ label: Filipino; Pilipino
281
+ - code: fin
282
+ label: Finnish
283
+ - code: fiu
284
+ label: Finno-Ugrian languages
285
+ - code: fon
286
+ label: Fon
287
+ - code: fra
288
+ label: French
289
+ - code: fre
290
+ label: French
291
+ - code: frm
292
+ label: French, Middle (ca.1400-1600)
293
+ - code: fro
294
+ label: French, Old (842-ca.1400)
295
+ - code: frr
296
+ label: Northern Frisian
297
+ - code: frs
298
+ label: Eastern Frisian
299
+ - code: fry
300
+ label: Western Frisian
301
+ - code: ful
302
+ label: Fulah
303
+ - code: fur
304
+ label: Friulian
305
+ - code: gaa
306
+ label: Ga
307
+ - code: gay
308
+ label: Gayo
309
+ - code: gba
310
+ label: Gbaya
311
+ - code: gem
312
+ label: Germanic languages
313
+ - code: geo
314
+ label: Georgian
315
+ - code: ger
316
+ label: German
317
+ - code: gez
318
+ label: Geez
319
+ - code: gil
320
+ label: Gilbertese
321
+ - code: gla
322
+ label: Gaelic; Scottish Gaelic
323
+ - code: gle
324
+ label: Irish
325
+ - code: glg
326
+ label: Galician
327
+ - code: glv
328
+ label: Manx
329
+ - code: gmh
330
+ label: German, Middle High (ca.1050-1500)
331
+ - code: goh
332
+ label: German, Old High (ca.750-1050)
333
+ - code: gon
334
+ label: Gondi
335
+ - code: gor
336
+ label: Gorontalo
337
+ - code: got
338
+ label: Gothic
339
+ - code: grb
340
+ label: Grebo
341
+ - code: grc
342
+ label: Greek, Ancient (to 1453)
343
+ - code: gre
344
+ label: Greek, Modern (1453-)
345
+ - code: grn
346
+ label: Guarani
347
+ - code: gsw
348
+ label: Swiss German; Alemannic; Alsatian
349
+ - code: guj
350
+ label: Gujarati
351
+ - code: gwi
352
+ label: Gwich'in
353
+ - code: hai
354
+ label: Haida
355
+ - code: hat
356
+ label: Haitian; Haitian Creole
357
+ - code: hau
358
+ label: Hausa
359
+ - code: haw
360
+ label: Hawaiian
361
+ - code: heb
362
+ label: Hebrew
363
+ - code: her
364
+ label: Herero
365
+ - code: hil
366
+ label: Hiligaynon
367
+ - code: him
368
+ label: Himachali languages; Western Pahari languages
369
+ - code: hin
370
+ label: Hindi
371
+ - code: hit
372
+ label: Hittite
373
+ - code: hmn
374
+ label: Hmong; Mong
375
+ - code: hmo
376
+ label: Hiri Motu
377
+ - code: hrv
378
+ label: Croatian
379
+ - code: hsb
380
+ label: Upper Sorbian
381
+ - code: hun
382
+ label: Hungarian
383
+ - code: hup
384
+ label: Hupa
385
+ - code: hye
386
+ label: Armenian
387
+ - code: iba
388
+ label: Iban
389
+ - code: ibo
390
+ label: Igbo
391
+ - code: ice
392
+ label: Icelandic
393
+ - code: ido
394
+ label: Ido
395
+ - code: iii
396
+ label: Sichuan Yi; Nuosu
397
+ - code: ijo
398
+ label: Ijo languages
399
+ - code: iku
400
+ label: Inuktitut
401
+ - code: ile
402
+ label: Interlingue; Occidental
403
+ - code: ilo
404
+ label: Iloko
405
+ - code: ina
406
+ label: Interlingua (International Auxiliary Language Association)
407
+ - code: inc
408
+ label: Indic languages
409
+ - code: ind
410
+ label: Indonesian
411
+ - code: ine
412
+ label: Indo-European languages
413
+ - code: inh
414
+ label: Ingush
415
+ - code: ipk
416
+ label: Inupiaq
417
+ - code: ira
418
+ label: Iranian languages
419
+ - code: iro
420
+ label: Iroquoian languages
421
+ - code: isl
422
+ label: Icelandic
423
+ - code: ita
424
+ label: Italian
425
+ - code: jav
426
+ label: Javanese
427
+ - code: jbo
428
+ label: Lojban
429
+ - code: jpn
430
+ label: Japanese
431
+ - code: jpr
432
+ label: Judeo-Persian
433
+ - code: jrb
434
+ label: Judeo-Arabic
435
+ - code: kaa
436
+ label: Kara-Kalpak
437
+ - code: kab
438
+ label: Kabyle
439
+ - code: kac
440
+ label: Kachin; Jingpho
441
+ - code: kal
442
+ label: Kalaallisut; Greenlandic
443
+ - code: kam
444
+ label: Kamba
445
+ - code: kan
446
+ label: Kannada
447
+ - code: kar
448
+ label: Karen languages
449
+ - code: kas
450
+ label: Kashmiri
451
+ - code: kat
452
+ label: Georgian
453
+ - code: kau
454
+ label: Kanuri
455
+ - code: kaw
456
+ label: Kawi
457
+ - code: kaz
458
+ label: Kazakh
459
+ - code: kbd
460
+ label: Kabardian
461
+ - code: kha
462
+ label: Khasi
463
+ - code: khi
464
+ label: Khoisan languages
465
+ - code: khm
466
+ label: Central Khmer
467
+ - code: kho
468
+ label: Khotanese; Sakan
469
+ - code: kik
470
+ label: Kikuyu; Gikuyu
471
+ - code: kin
472
+ label: Kinyarwanda
473
+ - code: kir
474
+ label: Kirghiz; Kyrgyz
475
+ - code: kmb
476
+ label: Kimbundu
477
+ - code: kok
478
+ label: Konkani
479
+ - code: kom
480
+ label: Komi
481
+ - code: kon
482
+ label: Kongo
483
+ - code: kor
484
+ label: Korean
485
+ - code: kos
486
+ label: Kosraean
487
+ - code: kpe
488
+ label: Kpelle
489
+ - code: krc
490
+ label: Karachay-Balkar
491
+ - code: krl
492
+ label: Karelian
493
+ - code: kro
494
+ label: Kru languages
495
+ - code: kru
496
+ label: Kurukh
497
+ - code: kua
498
+ label: Kuanyama; Kwanyama
499
+ - code: kum
500
+ label: Kumyk
501
+ - code: kur
502
+ label: Kurdish
503
+ - code: kut
504
+ label: Kutenai
505
+ - code: lad
506
+ label: Ladino
507
+ - code: lah
508
+ label: Lahnda
509
+ - code: lam
510
+ label: Lamba
511
+ - code: lao
512
+ label: Lao
513
+ - code: lat
514
+ label: Latin
515
+ - code: lav
516
+ label: Latvian
517
+ - code: lez
518
+ label: Lezghian
519
+ - code: lim
520
+ label: Limburgan; Limburger; Limburgish
521
+ - code: lin
522
+ label: Lingala
523
+ - code: lit
524
+ label: Lithuanian
525
+ - code: lol
526
+ label: Mongo
527
+ - code: loz
528
+ label: Lozi
529
+ - code: ltz
530
+ label: Luxembourgish; Letzeburgesch
531
+ - code: lua
532
+ label: Luba-Lulua
533
+ - code: lub
534
+ label: Luba-Katanga
535
+ - code: lug
536
+ label: Ganda
537
+ - code: lui
538
+ label: Luiseno
539
+ - code: lun
540
+ label: Lunda
541
+ - code: luo
542
+ label: Luo (Kenya and Tanzania)
543
+ - code: lus
544
+ label: Lushai
545
+ - code: mac
546
+ label: Macedonian
547
+ - code: mad
548
+ label: Madurese
549
+ - code: mag
550
+ label: Magahi
551
+ - code: mah
552
+ label: Marshallese
553
+ - code: mai
554
+ label: Maithili
555
+ - code: mak
556
+ label: Makasar
557
+ - code: mal
558
+ label: Malayalam
559
+ - code: man
560
+ label: Mandingo
561
+ - code: mao
562
+ label: Maori
563
+ - code: map
564
+ label: Austronesian languages
565
+ - code: mar
566
+ label: Marathi
567
+ - code: mas
568
+ label: Masai
569
+ - code: may
570
+ label: Malay
571
+ - code: mdf
572
+ label: Moksha
573
+ - code: mdr
574
+ label: Mandar
575
+ - code: men
576
+ label: Mende
577
+ - code: mga
578
+ label: Irish, Middle (900-1200)
579
+ - code: mic
580
+ label: "Mi'kmaq; Micmac"
581
+ - code: min
582
+ label: Minangkabau
583
+ - code: mis
584
+ label: Uncoded languages
585
+ - code: mkd
586
+ label: Macedonian
587
+ - code: mkh
588
+ label: Mon-Khmer languages
589
+ - code: mlg
590
+ label: Malagasy
591
+ - code: mlt
592
+ label: Maltese
593
+ - code: mnc
594
+ label: Manchu
595
+ - code: mni
596
+ label: Manipuri
597
+ - code: mno
598
+ label: Manobo languages
599
+ - code: moh
600
+ label: Mohawk
601
+ - code: mon
602
+ label: Mongolian
603
+ - code: mos
604
+ label: Mossi
605
+ - code: mri
606
+ label: Maori
607
+ - code: msa
608
+ label: Malay
609
+ - code: mul
610
+ label: Multiple languages
611
+ - code: mun
612
+ label: Munda languages
613
+ - code: mus
614
+ label: Creek
615
+ - code: mwl
616
+ label: Mirandese
617
+ - code: mwr
618
+ label: Marwari
619
+ - code: mya
620
+ label: Burmese
621
+ - code: myn
622
+ label: Mayan languages
623
+ - code: myv
624
+ label: Erzya
625
+ - code: nah
626
+ label: Nahuatl languages
627
+ - code: nai
628
+ label: North American Indian languages
629
+ - code: nap
630
+ label: Neapolitan
631
+ - code: nau
632
+ label: Nauru
633
+ - code: nav
634
+ label: Navajo; Navaho
635
+ - code: nbl
636
+ label: Ndebele, South; South Ndebele
637
+ - code: nde
638
+ label: Ndebele, North; North Ndebele
639
+ - code: ndo
640
+ label: Ndonga
641
+ - code: nds
642
+ label: Low German; Low Saxon; German, Low; Saxon, Low
643
+ - code: nep
644
+ label: Nepali
645
+ - code: new
646
+ label: Nepal Bhasa; Newari
647
+ - code: nia
648
+ label: Nias
649
+ - code: nic
650
+ label: Niger-Kordofanian languages
651
+ - code: niu
652
+ label: Niuean
653
+ - code: nld
654
+ label: Dutch; Flemish
655
+ - code: nno
656
+ label: Norwegian Nynorsk; Nynorsk, Norwegian
657
+ - code: nob
658
+ label: Bokmål, Norwegian; Norwegian Bokmål
659
+ - code: nog
660
+ label: Nogai
661
+ - code: non
662
+ label: Norse, Old
663
+ - code: nor
664
+ label: Norwegian
665
+ - code: nqo
666
+ label: N'Ko
667
+ - code: nso
668
+ label: Pedi; Sepedi; Northern Sotho
669
+ - code: nub
670
+ label: Nubian languages
671
+ - code: nwc
672
+ label: Classical Newari; Old Newari; Classical Nepal Bhasa
673
+ - code: nya
674
+ label: Chichewa; Chewa; Nyanja
675
+ - code: nym
676
+ label: Nyamwezi
677
+ - code: nyn
678
+ label: Nyankole
679
+ - code: nyo
680
+ label: Nyoro
681
+ - code: nzi
682
+ label: Nzima
683
+ - code: oci
684
+ label: Occitan (post 1500)
685
+ - code: oji
686
+ label: Ojibwa
687
+ - code: ori
688
+ label: Oriya
689
+ - code: orm
690
+ label: Oromo
691
+ - code: osa
692
+ label: Osage
693
+ - code: oss
694
+ label: Ossetian; Ossetic
695
+ - code: ota
696
+ label: Turkish, Ottoman (1500-1928)
697
+ - code: oto
698
+ label: Otomian languages
699
+ - code: paa
700
+ label: Papuan languages
701
+ - code: pag
702
+ label: Pangasinan
703
+ - code: pal
704
+ label: Pahlavi
705
+ - code: pam
706
+ label: Pampanga; Kapampangan
707
+ - code: pan
708
+ label: Panjabi; Punjabi
709
+ - code: pap
710
+ label: Papiamento
711
+ - code: pau
712
+ label: Palauan
713
+ - code: peo
714
+ label: Persian, Old (ca.600-400 B.C.)
715
+ - code: per
716
+ label: Persian
717
+ - code: phi
718
+ label: Philippine languages
719
+ - code: phn
720
+ label: Phoenician
721
+ - code: pli
722
+ label: Pali
723
+ - code: pol
724
+ label: Polish
725
+ - code: pon
726
+ label: Pohnpeian
727
+ - code: por
728
+ label: Portuguese
729
+ - code: pra
730
+ label: Prakrit languages
731
+ - code: pro
732
+ label: Provençal, Old (to 1500); Occitan, Old (to 1500)
733
+ - code: pus
734
+ label: Pushto; Pashto
735
+ - code: qaa-qtz
736
+ label: Reserved for local use
737
+ - code: que
738
+ label: Quechua
739
+ - code: raj
740
+ label: Rajasthani
741
+ - code: rap
742
+ label: Rapanui
743
+ - code: rar
744
+ label: Rarotongan; Cook Islands Maori
745
+ - code: roa
746
+ label: Romance languages
747
+ - code: roh
748
+ label: Romansh
749
+ - code: rom
750
+ label: Romany
751
+ - code: ron
752
+ label: Romanian; Moldavian; Moldovan
753
+ - code: rum
754
+ label: Romanian; Moldavian; Moldovan
755
+ - code: run
756
+ label: Rundi
757
+ - code: rup
758
+ label: Aromanian; Arumanian; Macedo-Romanian
759
+ - code: rus
760
+ label: Russian
761
+ - code: sad
762
+ label: Sandawe
763
+ - code: sag
764
+ label: Sango
765
+ - code: sah
766
+ label: Yakut
767
+ - code: sai
768
+ label: South American Indian languages
769
+ - code: sal
770
+ label: Salishan languages
771
+ - code: sam
772
+ label: Samaritan Aramaic
773
+ - code: san
774
+ label: Sanskrit
775
+ - code: sas
776
+ label: Sasak
777
+ - code: sat
778
+ label: Santali
779
+ - code: scn
780
+ label: Sicilian
781
+ - code: sco
782
+ label: Scots
783
+ - code: sel
784
+ label: Selkup
785
+ - code: sem
786
+ label: Semitic languages
787
+ - code: sga
788
+ label: Irish, Old (to 900)
789
+ - code: sgn
790
+ label: Sign Languages
791
+ - code: shn
792
+ label: Shan
793
+ - code: sid
794
+ label: Sidamo
795
+ - code: sin
796
+ label: Sinhala; Sinhalese
797
+ - code: sio
798
+ label: Siouan languages
799
+ - code: sit
800
+ label: Sino-Tibetan languages
801
+ - code: sla
802
+ label: Slavic languages
803
+ - code: slk
804
+ label: Slovak
805
+ - code: slo
806
+ label: Slovak
807
+ - code: slv
808
+ label: Slovenian
809
+ - code: sma
810
+ label: Southern Sami
811
+ - code: sme
812
+ label: Northern Sami
813
+ - code: smi
814
+ label: Sami languages
815
+ - code: smj
816
+ label: Lule Sami
817
+ - code: smn
818
+ label: Inari Sami
819
+ - code: smo
820
+ label: Samoan
821
+ - code: sms
822
+ label: Skolt Sami
823
+ - code: sna
824
+ label: Shona
825
+ - code: snd
826
+ label: Sindhi
827
+ - code: snk
828
+ label: Soninke
829
+ - code: sog
830
+ label: Sogdian
831
+ - code: som
832
+ label: Somali
833
+ - code: son
834
+ label: Songhai languages
835
+ - code: sot
836
+ label: Sotho, Southern
837
+ - code: spa
838
+ label: Spanish; Castilian
839
+ - code: sqi
840
+ label: Albanian
841
+ - code: srd
842
+ label: Sardinian
843
+ - code: srn
844
+ label: Sranan Tongo
845
+ - code: srp
846
+ label: Serbian
847
+ - code: srr
848
+ label: Serer
849
+ - code: ssa
850
+ label: Nilo-Saharan languages
851
+ - code: ssw
852
+ label: Swati
853
+ - code: suk
854
+ label: Sukuma
855
+ - code: sun
856
+ label: Sundanese
857
+ - code: sus
858
+ label: Susu
859
+ - code: sux
860
+ label: Sumerian
861
+ - code: swa
862
+ label: Swahili
863
+ - code: swe
864
+ label: Swedish
865
+ - code: syc
866
+ label: Classical Syriac
867
+ - code: syr
868
+ label: Syriac
869
+ - code: tah
870
+ label: Tahitian
871
+ - code: tai
872
+ label: Tai languages
873
+ - code: tam
874
+ label: Tamil
875
+ - code: tat
876
+ label: Tatar
877
+ - code: tel
878
+ label: Telugu
879
+ - code: tem
880
+ label: Timne
881
+ - code: ter
882
+ label: Tereno
883
+ - code: tet
884
+ label: Tetum
885
+ - code: tgk
886
+ label: Tajik
887
+ - code: tgl
888
+ label: Tagalog
889
+ - code: tha
890
+ label: Thai
891
+ - code: tib
892
+ label: Tibetan
893
+ - code: tig
894
+ label: Tigre
895
+ - code: tir
896
+ label: Tigrinya
897
+ - code: tiv
898
+ label: Tiv
899
+ - code: tkl
900
+ label: Tokelau
901
+ - code: tlh
902
+ label: Klingon; tlhIngan-Hol
903
+ - code: tli
904
+ label: Tlingit
905
+ - code: tmh
906
+ label: Tamashek
907
+ - code: tog
908
+ label: Tonga (Nyasa)
909
+ - code: ton
910
+ label: Tonga (Tonga Islands)
911
+ - code: tpi
912
+ label: Tok Pisin
913
+ - code: tsi
914
+ label: Tsimshian
915
+ - code: tsn
916
+ label: Tswana
917
+ - code: tso
918
+ label: Tsonga
919
+ - code: tuk
920
+ label: Turkmen
921
+ - code: tum
922
+ label: Tumbuka
923
+ - code: tup
924
+ label: Tupi languages
925
+ - code: tur
926
+ label: Turkish
927
+ - code: tut
928
+ label: Altaic languages
929
+ - code: tvl
930
+ label: Tuvalu
931
+ - code: twi
932
+ label: Twi
933
+ - code: tyv
934
+ label: Tuvinian
935
+ - code: udm
936
+ label: Udmurt
937
+ - code: uga
938
+ label: Ugaritic
939
+ - code: uig
940
+ label: Uighur; Uyghur
941
+ - code: ukr
942
+ label: Ukrainian
943
+ - code: umb
944
+ label: Umbundu
945
+ - code: und
946
+ label: Undetermined
947
+ - code: urd
948
+ label: Urdu
949
+ - code: uzb
950
+ label: Uzbek
951
+ - code: vai
952
+ label: Vai
953
+ - code: ven
954
+ label: Venda
955
+ - code: vie
956
+ label: Vietnamese
957
+ - code: vol
958
+ label: Volapük
959
+ - code: vot
960
+ label: Votic
961
+ - code: wak
962
+ label: Wakashan languages
963
+ - code: wal
964
+ label: Wolaitta; Wolaytta
965
+ - code: war
966
+ label: Waray
967
+ - code: was
968
+ label: Washo
969
+ - code: wel
970
+ label: Welsh
971
+ - code: wen
972
+ label: Sorbian languages
973
+ - code: wln
974
+ label: Walloon
975
+ - code: wol
976
+ label: Wolof
977
+ - code: xal
978
+ label: Kalmyk; Oirat
979
+ - code: xho
980
+ label: Xhosa
981
+ - code: yao
982
+ label: Yao
983
+ - code: yap
984
+ label: Yapese
985
+ - code: yid
986
+ label: Yiddish
987
+ - code: yor
988
+ label: Yoruba
989
+ - code: ypk
990
+ label: Yupik languages
991
+ - code: zap
992
+ label: Zapotec
993
+ - code: zbl
994
+ label: Blissymbols; Blissymbolics; Bliss
995
+ - code: zen
996
+ label: Zenaga
997
+ - code: zgh
998
+ label: Standard Moroccan Tamazight
999
+ - code: zha
1000
+ label: Zhuang; Chuang
1001
+ - code: zho
1002
+ label: Chinese
1003
+ - code: znd
1004
+ label: Zande languages
1005
+ - code: zul
1006
+ label: Zulu
1007
+ - code: zun
1008
+ label: Zuni
1009
+ - code: zxx
1010
+ label: No linguistic content; Not applicable
1011
+ - code: zza
1012
+ label: Zaza; Dimili; Dimli; Kirdki; Kirmanjki; Zazaki
@@ -0,0 +1,107 @@
1
+ - title: Creative Commons Public Domain Mark 1.0
2
+ url: https://creativecommons.org/publicdomain/mark/1.0
3
+ short_title: Public Domain
4
+ feature:
5
+ - cc-pd
6
+ reuse_text: Free Re-Use
7
+
8
+ - title: Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International (CC BY-NC-SA 4.0)
9
+ url: https://creativecommons.org/licenses/by-nc-sa/4.0/
10
+ short_title: CC BY-NC-SA 4.0
11
+ feature:
12
+ - cc-cc
13
+ - cc-by
14
+ - cc-nc
15
+ - cc-sa
16
+ reuse_text: Limited Re-Use
17
+
18
+ - title: 'RightsStatements.org: No Known Copyright'
19
+ url: http://rightsstatements.org/vocab/NKC/1.0/
20
+ short_title: No Known Copyright
21
+ feature:
22
+ - rs-other
23
+ reuse_text: null
24
+
25
+ - title: 'RightsStatements.org: Copyright Undetermined'
26
+ url: http://rightsstatements.org/vocab/UND/1.0/
27
+ short_title: Copyright Undetermined
28
+ feature:
29
+ - rs-other
30
+ reuse_text: null
31
+
32
+ - title: 'RightsStatements.org: Copyright Not Evaluated'
33
+ url: http://rightsstatements.org/vocab/CNE/1.0/
34
+ short_title: Copyright Not Evaluated
35
+ feature:
36
+ - rs-other
37
+ reuse_text: null
38
+
39
+ - title: 'RightsStatements.org: No Copyright - United States'
40
+ url: http://rightsstatements.org/vocab/NoC-US/1.0/
41
+ short_title: No Copyright - United States
42
+ feature:
43
+ - rs-noc
44
+ reuse_text: Free Re-Use
45
+
46
+ - title: 'RightsStatements.org: In Copyright - Rights-Holder(s) Unlocatable or Unidentifiable'
47
+ url: http://rightsstatements.org/vocab/InC-RUU/1.0/
48
+ short_title: Unknown Rights-Holder
49
+ feature:
50
+ - rs-inc
51
+ reuse_text: Limited Re-Use
52
+
53
+ - title: 'RightsStatements.org: In Copyright - Non-Commercial Use Permitted'
54
+ url: http://rightsstatements.org/vocab/InC-NC/1.0/
55
+ short_title: Non-Commercial Use Permitted
56
+ feature:
57
+ - rs-inc
58
+ reuse_text: Limited Re-Use
59
+
60
+ - title: 'RightsStatements.org: In Copyright - Educational Use Permitted'
61
+ url: http://rightsstatements.org/vocab/InC-EDU/1.0/
62
+ short_title: Educational Use Permitted
63
+ feature:
64
+ - rs-inc
65
+ reuse_text: Limited Re-Use
66
+
67
+ - title: 'RightsStatements.org: In Copyright'
68
+ url: http://rightsstatements.org/vocab/InC/1.0/
69
+ short_title: In Copyright
70
+ feature:
71
+ - rs-inc
72
+ reuse_text: No Re-Use
73
+
74
+ - title: Creative Commons 1.0 Universal (CC0 Public Domain Dedication)
75
+ url: https://creativecommons.org/publicdomain/zero/1.0/
76
+ short_title: CC0 1.0
77
+ feature:
78
+ - cc-cc
79
+ - cc-zero
80
+ reuse_text: Free Re-Use
81
+
82
+ - title: Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International
83
+ url: https://creativecommons.org/licenses/by-nc-nd/4.0/
84
+ short_title: CC BY-NC-ND 4.0
85
+ feature:
86
+ - cc-cc
87
+ - cc-by
88
+ - cc-nc
89
+ - cc-nd
90
+ reuse_text: Limited Re-Use
91
+
92
+ - title: Creative Commons Attribution-NonCommercial 4.0 International
93
+ url: https://creativecommons.org/licenses/by-nc/4.0/
94
+ short_title: CC BY-NC 4.0
95
+ feature:
96
+ - cc-cc
97
+ - cc-by
98
+ - cc-nc
99
+ reuse_text: Limited Re-Use
100
+
101
+ - title: Creative Commons Attribution 4.0 International
102
+ url: https://creativecommons.org/licenses/by/4.0/
103
+ short_title: CC BY 4.0
104
+ feature:
105
+ - cc-cc
106
+ - cc-by
107
+ reuse_text: Free Re-Use
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ddr-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.12.2
4
+ version: 1.13.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jim Coble
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2022-04-13 00:00:00.000000000 Z
14
+ date: 2022-05-12 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: activeresource
@@ -338,6 +338,10 @@ files:
338
338
  - app/models/ddr/resource.rb
339
339
  - app/models/ddr/rights_statement.rb
340
340
  - app/models/ddr/target.rb
341
+ - config/aux/admin_set.yml
342
+ - config/aux/contact.yml
343
+ - config/aux/language.yml
344
+ - config/aux/rights_statement.yml
341
345
  - config/initializers/devise.rb
342
346
  - config/locales/ddr-core.en.yml
343
347
  - config/routes.rb
@@ -447,7 +451,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
447
451
  - !ruby/object:Gem::Version
448
452
  version: '0'
449
453
  requirements: []
450
- rubygems_version: 3.3.11
454
+ rubygems_version: 3.3.13
451
455
  signing_key:
452
456
  specification_version: 4
453
457
  summary: Models used in the Duke Digital Repository