We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2075126 commit d7f5f00Copy full SHA for d7f5f00
datasources/sources/tourinsoft_sirtaqui.rb
@@ -208,12 +208,11 @@ def map_geometry(feat)
208
end
209
210
def pdfs(feat)
211
- feat.select{ |k, v|
212
- k.start_with?('DOCPDF') && !v.nil?
213
- }.to_h{ |k, v|
214
- c = k[-2..].downcase
215
- [c == 'gb' ? 'en-US' : c, "#{@settings.photo_base_url}#{v}"]
216
- }
+ {
+ 'en-US' => feat['DOCPDFGB'].nil? ? nil : "#{@settings.photo_base_url}#{feat['DOCPDFGB']}",
+ 'fr-FR' => feat['DOCPDFFR'].nil? ? nil : "#{@settings.photo_base_url}#{feat['DOCPDFFR']}",
+ 'es-ES' => feat['DOCPDFES'].nil? ? nil : "#{@settings.photo_base_url}#{feat['DOCPDFES']}",
+ }.compact_blank
217
218
219
def ouverture(feat)
0 commit comments