Fixed the Outline Citations display so that it does not do groupings. It still does the groupings if it is in Drop Down mode.
svn: r19003
This commit is contained in:
parent
7c8f8a2656
commit
154a49bad9
@ -4649,8 +4649,8 @@ class SourcePage(BasePage):
|
||||
place = self.dbase_.get_place_from_handle(place_handle)
|
||||
if place:
|
||||
unordered3.extend(
|
||||
Html("li", self.place_link(place_handle, place.get_title(), uplink = self.up),
|
||||
inline = True)
|
||||
Html("li", self.place_link(place_handle,
|
||||
place.get_title(), uplink = self.up), inline = True)
|
||||
)
|
||||
list2 += unordered3
|
||||
unordered2 += list2
|
||||
@ -4730,13 +4730,15 @@ class SourcePage(BasePage):
|
||||
newpath = self.report.build_url_fname(newpath, up = self.up)
|
||||
|
||||
unordered3.extend(
|
||||
Html("li", self.media_link(media_handle, newpath, media.get_description(),
|
||||
Html("li", self.media_link(media_handle,
|
||||
newpath, media.get_description(),
|
||||
self.up, usedescr = False), inline = True)
|
||||
)
|
||||
|
||||
else:
|
||||
unordered3.extend(
|
||||
Html("li", self.doc_link(media_handle, media.get_description(),
|
||||
Html("li", self.doc_link(media_handle,
|
||||
media.get_description(),
|
||||
self.up, usedescr = False), inline = True)
|
||||
)
|
||||
|
||||
@ -4779,8 +4781,11 @@ class SourcePage(BasePage):
|
||||
@param: citation_type -- can either be People or Events...
|
||||
"""
|
||||
keys = sorted(citations_dict, key = locale.strxfrm)
|
||||
total_keys = len(keys)
|
||||
max_per_column = 5
|
||||
|
||||
levelone = ((total_keys // max_per_column) + 1)
|
||||
|
||||
list2 = Html("li")
|
||||
list2.extend(
|
||||
Html("a", _(citation_type), href = "#", title = _(citation_type), inline = True)
|
||||
@ -4799,6 +4804,7 @@ class SourcePage(BasePage):
|
||||
value_len = len(citations_dict[key])
|
||||
|
||||
# if value is more than max per column, then we have to make groups...
|
||||
if self.citationreferents == "DropDown":
|
||||
if (value_len > max_per_column):
|
||||
for x in range(value_len / max_per_column + 1):
|
||||
|
||||
@ -4816,7 +4822,6 @@ class SourcePage(BasePage):
|
||||
list5.extend(
|
||||
self.citation_referents_link(obj_handle, citation_type)
|
||||
)
|
||||
|
||||
unordered5 += list5
|
||||
list4 += unordered5
|
||||
unordered4 += list4
|
||||
|
Loading…
Reference in New Issue
Block a user