9495: Narratedweb : inconsistent & incomplete display of place hierarchy labels
This commit is contained in:
parent
bc0a3b5b04
commit
023350fa4d
@ -3828,11 +3828,14 @@ class PlacePages(BasePage):
|
|||||||
]
|
]
|
||||||
)
|
)
|
||||||
|
|
||||||
|
# bug 9495 : incomplete display of place hierarchy labels
|
||||||
|
def sort_by_place_name(obj):
|
||||||
|
place = self.r_db.get_place_from_handle(obj)
|
||||||
|
name = _pd.display(self.r_db, place)
|
||||||
|
return (name)
|
||||||
|
|
||||||
handle_list = sorted(place_handles,
|
handle_list = sorted(place_handles,
|
||||||
key=lambda x:
|
key=lambda x: sort_by_place_name(x))
|
||||||
SORT_KEY(
|
|
||||||
ReportUtils.place_name(self.r_db,
|
|
||||||
x)))
|
|
||||||
first = True
|
first = True
|
||||||
|
|
||||||
# begin table body
|
# begin table body
|
||||||
@ -3844,11 +3847,10 @@ class PlacePages(BasePage):
|
|||||||
if place:
|
if place:
|
||||||
if place.get_change_time() > ldatec:
|
if place.get_change_time() > ldatec:
|
||||||
ldatec = place.get_change_time()
|
ldatec = place.get_change_time()
|
||||||
place_title = ReportUtils.place_name(self.r_db,
|
place_title = _pd.display(self.r_db, place)
|
||||||
place_handle)
|
|
||||||
main_location = get_main_location(self.r_db, place)
|
main_location = get_main_location(self.r_db, place)
|
||||||
|
|
||||||
if place_title and not place_title.isspace():
|
if place_title and place_title != " ":
|
||||||
letter = get_index_letter(first_letter(place_title),
|
letter = get_index_letter(first_letter(place_title),
|
||||||
index_list)
|
index_list)
|
||||||
else:
|
else:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user