adiwg-mdtranslator 1.4.0.beta5 → 1.4.0.beta6
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: fd64a08f18bf344a63ac59b192ff2431e79dec0e
|
4
|
+
data.tar.gz: 18f203870e0a7b5b2165d01bbe3213d9fa61761c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 174c184b9001a96b532e639fb1eeebef05541520569f20d81d3908646b4533470e4ec79f8591af0c582232b260b1d827f19e6e855c87e3ea29fa71cf7379c038
|
7
|
+
data.tar.gz: 5175d7ce45f5b3d5cc52297a83e613754701987fc144424d3b181ba8a221f7eb465a738fa941945c995f1b8569faa4670f47b7a026b69c7c00941dcf48d9e47f
|
@@ -14,24 +14,26 @@ module ADIWG
|
|
14
14
|
json.name intObj[:indName] || intObj[:orgName]
|
15
15
|
json.contactType type
|
16
16
|
json.email intObj[:address][:eMailList][0] unless intObj[:address].empty?
|
17
|
-
json.organization type == 'person' ? intObj[:orgName] : nil
|
17
|
+
json.organization type == 'person' ? {:displayText => intObj[:orgName]} : nil
|
18
18
|
json.primaryLocation do
|
19
19
|
json.officePhone intObj[:phones].collect { |ph|
|
20
|
-
ph[:phoneNumber] if ph[:phoneServiceType] == 'voice'
|
20
|
+
ph[:phoneNumber] if ph[:phoneServiceType] == 'voice'
|
21
|
+
}.reject(&:nil?).first
|
21
22
|
json.faxPhone intObj[:phones].collect { |ph|
|
22
|
-
ph[:phoneNumber] if ph[:phoneServiceType] == 'fax'
|
23
|
+
ph[:phoneNumber] if ph[:phoneServiceType] == 'fax'
|
24
|
+
}.reject(&:nil?).first
|
25
|
+
json.streetAddress do
|
26
|
+
add = intObj[:address]
|
27
|
+
unless [:deliveryPoints].empty?
|
28
|
+
json.line1 add[:deliveryPoints][0]
|
29
|
+
json.line2 add[:deliveryPoints][1]
|
30
|
+
end
|
31
|
+
json.city add[:city]
|
32
|
+
json.state add[:adminArea]
|
33
|
+
json.zip add[:postalCode]
|
34
|
+
json.country add[:country]
|
35
|
+
end unless intObj[:address].empty?
|
23
36
|
end
|
24
|
-
json.streetAddress do
|
25
|
-
add = intObj[:address]
|
26
|
-
unless[:deliveryPoints].empty?
|
27
|
-
json.line1 add[:deliveryPoints][0]
|
28
|
-
json.line2 add[:deliveryPoints][1]
|
29
|
-
end
|
30
|
-
json.city add[:city]
|
31
|
-
json.state add[:adminArea]
|
32
|
-
json.zip add[:postalCode]
|
33
|
-
json.country add[:country]
|
34
|
-
end unless intObj[:address].empty?
|
35
37
|
end
|
36
38
|
end
|
37
39
|
end
|