anystyle-parser 0.7.0 → 0.7.1
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 +4 -4
- data/lib/anystyle/parser/parser.rb +5 -3
- data/lib/anystyle/parser/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 427440daed597161edb2274af463b42075111354
|
|
4
|
+
data.tar.gz: 9e4112dc26207ff8129dc569f774c1e246dd7363
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d7b18fac77a6b794d769caadc09f4ab065e5b5d3b48f21763c107c18e9a6fab5bf117a8e8974c0371ea8748912ebdb54865a5a9afa868c5a5672442a822361c3
|
|
7
|
+
data.tar.gz: 0810011ff502dded035151618229627d3186f357df36a1b220cd7b7cd5430d4126171813f5094678b78f38aae724258b157d15e2e0fdc6b8bc8cdd6df7fcd727
|
|
@@ -193,9 +193,11 @@ module Anystyle
|
|
|
193
193
|
def localize(hash)
|
|
194
194
|
return hash if hash.has_key?(:language)
|
|
195
195
|
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
)
|
|
196
|
+
text = hash.values_at(
|
|
197
|
+
:title, :booktitle, :location, :publisher
|
|
198
|
+
).compact.join(' ')
|
|
199
|
+
|
|
200
|
+
hash[:language] = Parser.language(text) unless text.empty?
|
|
199
201
|
|
|
200
202
|
hash
|
|
201
203
|
end
|