jekyll-geolexica 1.8.10 → 1.8.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/jekyll/geolexica/glossary.rb +10 -0
- data/lib/jekyll/geolexica/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: aaa9065328d0f51222f0f6e770de9066f0c2ab7e0f9bd74c711bfb1274a9fc23
|
4
|
+
data.tar.gz: fa425de8cecbc750b6805bf4c48b3050209fa35bf9746823a62b63319bee5767
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7bce803d29510284253d69a9bba46752f497a9c52716e0919ddc0fc3c2bfb1bef42d729026552c459472b6965fb45370c6bd71bda0be9366892eb6be80b99651
|
7
|
+
data.tar.gz: 980d903d2d6bb184454ba6ad09119a031e963a17b15191ef972d6714761e9de6e8229f6edc55ae977df8a728620b10ed12234d9bef85f1aca403ab73d6b803b4
|
@@ -71,12 +71,22 @@ module Jekyll
|
|
71
71
|
|
72
72
|
next unless concept[lang]
|
73
73
|
|
74
|
+
normalize_sources(concept[lang])
|
74
75
|
concept['term'] = concept[lang]['terms'].first['designation'] if lang == 'eng'
|
75
76
|
end
|
76
77
|
|
77
78
|
concept
|
78
79
|
end
|
79
80
|
|
81
|
+
def normalize_sources(concept)
|
82
|
+
authoritative_sources = concept.delete('authoritativeSource') || []
|
83
|
+
concept['sources'] ||= []
|
84
|
+
|
85
|
+
authoritative_sources.each do |authoritative_source|
|
86
|
+
concept['sources'] << authoritative_source.merge({ 'type' => 'authoritative' })
|
87
|
+
end
|
88
|
+
end
|
89
|
+
|
80
90
|
# Does nothing, but some sites may replace this method.
|
81
91
|
def preprocess_concept_hash(concept_hash); end
|
82
92
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-geolexica
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.8.
|
4
|
+
version: 1.8.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-08-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|