cul_scv_hydra 0.16.10 → 0.16.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +8 -8
- data/lib/cul_scv_hydra/solrizer/field_mapper.rb +13 -7
- data/lib/cul_scv_hydra/version.rb +1 -1
- data/lib/cul_scv_hydra/version.rb~ +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ZGFkMzRjYjBmOTU0NjFhOGM0YmY1ZWY3ZThlN2Y0ZWMyZmExYWVkMQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
YjYyZGNjMjA5ZDJkMWE2YWYwM2ExYmNhOTA4YjYxYWY3NzI3ZDM1Mw==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
YmZhMzhlMzMyYzA0OGZhNDI4NjEzYzBjY2U3ZGYyODg2Zjc1YjA3N2ZhZDI4
|
10
|
+
M2Q3NGM4YjAxMTYxNDgwZTQzZjc3ZmI0Nzg0MDE5NmQzMjYwODk4ZGQxODJm
|
11
|
+
M2E5MGM4NDNhZTE3OTU1MGRiNDk3MzIyNTNlYzU1ODhjZjgzOGU=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ODc0YmFjMWQ0ZWM5NTBjNTkxZDAxNzFiNzc1YWM2MGQyMmMzZDE5ODBkMmUy
|
14
|
+
MTM1MjRkZmY4NTRiYzg2OTAxZjRiZjFmNmQzYmQzOWQ1ZDg0NWQwZGY4OWRk
|
15
|
+
MmM4NDU5YjMxOGY0ODhiM2JlYjkwOGIyNDBhNWZlZDYzNDczYmU=
|
@@ -70,11 +70,11 @@ module Solrizer::DefaultDescriptors
|
|
70
70
|
end
|
71
71
|
|
72
72
|
module Normal
|
73
|
-
SHORT_REPO = "ldpd.short.repo
|
74
|
-
LONG_REPO = "ldpd.long.repo
|
75
|
-
FULL_REPO = "ldpd.full.repo
|
76
|
-
SHORT_PROJ = "ldpd.short.project
|
77
|
-
FULL_PROJ = "ldpd.full.project
|
73
|
+
SHORT_REPO = "ldpd.short.repo"
|
74
|
+
LONG_REPO = "ldpd.long.repo"
|
75
|
+
FULL_REPO = "ldpd.full.repo"
|
76
|
+
SHORT_PROJ = "ldpd.short.project"
|
77
|
+
FULL_PROJ = "ldpd.full.project"
|
78
78
|
def normal(value)
|
79
79
|
normal!(value.clone)
|
80
80
|
end
|
@@ -85,9 +85,15 @@ module Solrizer::DefaultDescriptors
|
|
85
85
|
end
|
86
86
|
def translate_with_default(prefix, value, default)
|
87
87
|
begin
|
88
|
-
|
88
|
+
# Using method below to handle translations because our YAML keys can contain periods and this doesn't play well with the translation dot-syntax
|
89
|
+
translations = HashWithIndifferentAccess.new(I18n.t(prefix))
|
90
|
+
if translations.has_key?(value)
|
91
|
+
return translations[value]
|
92
|
+
else
|
93
|
+
return default
|
94
|
+
end
|
89
95
|
rescue
|
90
|
-
return
|
96
|
+
return default
|
91
97
|
end
|
92
98
|
end
|
93
99
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cul_scv_hydra
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.16.
|
4
|
+
version: 0.16.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Benjamin Armintor
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-09-
|
11
|
+
date: 2014-09-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: blacklight
|