cul_hydra 1.4.5 → 1.4.7
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 225212af7188371eed6558cde38b9aaf9fa04058
|
4
|
+
data.tar.gz: 7c3130062263f2cc12afab038555ccbb3d2b0d99
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: acbf773cdc59337476c1bf734ef5343f36a32706c54f554c6e1f51576056908317253af48abb1fe811ee09e0eeef8e24f20ca59609e197e735b9799e38f922d9
|
7
|
+
data.tar.gz: f1685bc15bae2cfb25512039a68914e4f3485cfd8bac8b13d42455f5ba99442906c079bd98159546a624164194e861033785dcaf9d29c8068a1d9a679ea7b6ea
|
@@ -0,0 +1,14 @@
|
|
1
|
+
|
2
|
+
<mods:mods xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:mods="http://www.loc.gov/mods/v3" version="3.6" xsi:schemaLocation="http://www.loc.gov/mods/v3 http://www.loc.gov/standards/mods/v3/mods-3-6.xsd">
|
3
|
+
<mods:titleInfo>
|
4
|
+
<mods:title>Esempio Lingua documento</mods:title>
|
5
|
+
</mods:titleInfo>
|
6
|
+
<mods:language>
|
7
|
+
<mods:languageTerm type="text" valueURI="http://id.loc.gov/vocabulary/iso639-2/ita" authority="iso639-2">Italian</mods:languageTerm>
|
8
|
+
<mods:languageTerm type="code" valueURI="http://id.loc.gov/vocabulary/iso639-2/ita" authority="iso639-2">ita</mods:languageTerm>
|
9
|
+
</mods:language>
|
10
|
+
<mods:language>
|
11
|
+
<mods:languageTerm type="text" valueURI="http://id.loc.gov/vocabulary/iso639-2/eng" authority="iso639-2b">English</mods:languageTerm>
|
12
|
+
<mods:languageTerm type="code" valueURI="http://id.loc.gov/vocabulary/iso639-2/eng" authority="iso639-2b">eng</mods:languageTerm>
|
13
|
+
</mods:language>
|
14
|
+
</mods:mods>
|
@@ -64,6 +64,18 @@ module Cul::Hydra::Solrizer
|
|
64
64
|
ModsFieldable.normalize(main_title(p_node), true)
|
65
65
|
end
|
66
66
|
end
|
67
|
+
|
68
|
+
def languages_iso639_2_text
|
69
|
+
mods.xpath("./mods:language/mods:languageTerm[@type='text' and @authority='iso639-2']", MODS_NS).collect do |n|
|
70
|
+
ModsFieldable.normalize(n.text, true)
|
71
|
+
end
|
72
|
+
end
|
73
|
+
|
74
|
+
def languages_iso639_2_code
|
75
|
+
mods.xpath("./mods:language/mods:languageTerm[@type='code' and @authority='iso639-2']", MODS_NS).collect do |n|
|
76
|
+
ModsFieldable.normalize(n.text, true)
|
77
|
+
end
|
78
|
+
end
|
67
79
|
|
68
80
|
def sort_title(node=mods)
|
69
81
|
# include only the untyped [!@type] titleInfo, exclude noSort
|
@@ -471,6 +483,14 @@ module Cul::Hydra::Solrizer
|
|
471
483
|
|
472
484
|
# Geo data
|
473
485
|
solr_doc["geo"] = coordinates
|
486
|
+
|
487
|
+
## Handle alternate form of language authority for language_language_term_text_ssim
|
488
|
+
## We already capture elements when authority="iso639-2b", but we want to additionally
|
489
|
+
## capture language elements when authority="iso639-2".
|
490
|
+
solr_doc['language_language_term_text_ssim'] ||= []
|
491
|
+
solr_doc['language_language_term_text_ssim'] += languages_iso639_2_text
|
492
|
+
solr_doc['language_language_term_code_ssim'] ||= []
|
493
|
+
solr_doc['language_language_term_code_ssim'] +=languages_iso639_2_code
|
474
494
|
|
475
495
|
solr_doc.each do |k, v|
|
476
496
|
if self.class.maps_field? k
|
data/lib/cul_hydra/version.rb
CHANGED
data/lib/cul_hydra/version.rb~
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cul_hydra
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.4.
|
4
|
+
version: 1.4.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Benjamin Armintor
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2016-12-
|
12
|
+
date: 2016-12-11 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: blacklight
|
@@ -193,6 +193,20 @@ dependencies:
|
|
193
193
|
- - ">="
|
194
194
|
- !ruby/object:Gem::Version
|
195
195
|
version: 1.8.3
|
196
|
+
- !ruby/object:Gem::Dependency
|
197
|
+
name: rake
|
198
|
+
requirement: !ruby/object:Gem::Requirement
|
199
|
+
requirements:
|
200
|
+
- - "<="
|
201
|
+
- !ruby/object:Gem::Version
|
202
|
+
version: '11.3'
|
203
|
+
type: :runtime
|
204
|
+
prerelease: false
|
205
|
+
version_requirements: !ruby/object:Gem::Requirement
|
206
|
+
requirements:
|
207
|
+
- - "<="
|
208
|
+
- !ruby/object:Gem::Version
|
209
|
+
version: '11.3'
|
196
210
|
- !ruby/object:Gem::Dependency
|
197
211
|
name: cancancan
|
198
212
|
requirement: !ruby/object:Gem::Requirement
|
@@ -468,6 +482,7 @@ files:
|
|
468
482
|
- fixtures/spec/CUL_MODS/mods-dates-with-all-u-characters.xml
|
469
483
|
- fixtures/spec/CUL_MODS/mods-dates-with-some-u-characters.xml
|
470
484
|
- fixtures/spec/CUL_MODS/mods-item.xml
|
485
|
+
- fixtures/spec/CUL_MODS/mods-languages.xml
|
471
486
|
- fixtures/spec/CUL_MODS/mods-names.xml
|
472
487
|
- fixtures/spec/CUL_MODS/mods-notes.xml
|
473
488
|
- fixtures/spec/CUL_MODS/mods-ns.xml
|