@@ -35,7 +35,7 @@ url_detail = wikidata_api\
3535
3636url_map = 'https://www.openstreetmap.org/'\
3737 + '?lat={latitude}&lon={longitude}&zoom={zoom}&layers=M'
38−url_image = 'https://commons.wikimedia.org/wiki/Special:FilePath/{filename}?width=500'
38+url_image = 'https://commons.wikimedia.org/wiki/Special:FilePath/{filename}?width=500&height=400'
3939
4040# xpaths
4141wikidata_ids_xpath = '//div/ul[@class="wikibase-disambiguation"]/li/a/@title'
@@ -162,6 +162,7 @@ def getDetail(jsonresponse, wikidata_id, language, locale):
162162
163163 # INFOBOX ATTRIBUTES (ROWS)
164164
165+ # DATES
165166 # inception date
166167 add_attribute(attributes, result, 'P571', date=True)
167168 # dissolution date
@@ -170,11 +171,14 @@ def getDetail(jsonresponse, wikidata_id, language, locale):
170171 add_attribute(attributes, result, 'P580', date=True)
171172 # end date
172173 add_attribute(attributes, result, 'P582', date=True)
173−
174174 # date of birth
175175 add_attribute(attributes, result, 'P569', date=True)
176176 # date of death
177177 add_attribute(attributes, result, 'P570', date=True)
178+ # date of spacecraft launch
179+ add_attribute(attributes, result, 'P619', date=True)
180+ # date of spacecraft landing
181+ add_attribute(attributes, result, 'P620', date=True)
178182
179183 # nationality
180184 add_attribute(attributes, result, 'P27')
@@ -201,7 +205,7 @@ def getDetail(jsonresponse, wikidata_id, language, locale):
201205 # area
202206 add_attribute(attributes, result, 'P2046')
203207 # currency
204− add_attribute(attributes, result, 'P38')
208+ add_attribute(attributes, result, 'P38', trim=True)
205209 # heigth (building)
206210 add_attribute(attributes, result, 'P2048')
207211
@@ -230,6 +234,10 @@ def getDetail(jsonresponse, wikidata_id, language, locale):
230234 add_attribute(attributes, result, 'P264')
231235 # publisher
232236 add_attribute(attributes, result, 'P123')
237+ # original network
238+ add_attribute(attributes, result, 'P449')
239+ # distributor
240+ add_attribute(attributes, result, 'P750')
233241 # composer
234242 add_attribute(attributes, result, 'P86')
235243 # publication date
@@ -266,6 +274,10 @@ def getDetail(jsonresponse, wikidata_id, language, locale):
266274 add_attribute(attributes, result, 'P112')
267275 # legal form (company/organization)
268276 add_attribute(attributes, result, 'P1454')
277+ # operator
278+ add_attribute(attributes, result, 'P137')
279+ # crew members (tripulation)
280+ add_attribute(attributes, result, 'P1029')
269281 # taxon
270282 add_attribute(attributes, result, 'P225')
271283 # chemical formula
@@ -300,8 +312,8 @@ def getDetail(jsonresponse, wikidata_id, language, locale):
300312
301313# only returns first match
302314def add_image(result):
303− # P18: image, P154: logo, P242: map, P41: flag, P2716: collage, P2910: icon
304− property_ids = ['P18', 'P154', 'P242', 'P41', 'P2716', 'P2910']
315+ # P15: route map, P242: locator map, P154: logo, P18: image, P242: map, P41: flag, P2716: collage, P2910: icon
316+ property_ids = ['P15', 'P242', 'P154', 'P18', 'P242', 'P41', 'P2716', 'P2910']
305317
306318 for property_id in property_ids:
307319 image = result.xpath(property_xpath.replace('{propertyid}', property_id))
@@ -320,6 +332,7 @@ def add_attribute(attributes, result, property_id, default_label=None, date=Fals
320332 label = default_label
321333 else:
322334 label = extract_text(attribute[0].xpath(label_xpath))
335+ label = label[0].upper() + label[1:]
323336
324337 if date:
325338 trim = True
@@ -369,6 +382,7 @@ def add_url(urls, result, property_id=None, default_label=None, url_prefix=None,
369382 dom_element = dom_element[0]
370383 if not default_label:
371384 label = extract_text(dom_element.xpath(label_xpath))
385+ label = label[0].upper() + label[1:]
372386
373387 if link_type == 'geo':
374388 links.append(get_geolink(dom_element))