From e150d58303109c43c62a257fa4e173f41d34a54a Mon Sep 17 00:00:00 2001 From: "Rob G. Healey" Date: Wed, 7 Oct 2009 01:19:42 +0000 Subject: [PATCH] Changed a section name in stylesheet for better clarification. Attempting to display_source_refs() in NarrativeWeb.py svn: r13325 --- src/data/Web_Visually.css | 2 +- src/plugins/webreport/NarrativeWeb.py | 17 ++++++++--------- 2 files changed, 9 insertions(+), 10 deletions(-) diff --git a/src/data/Web_Visually.css b/src/data/Web_Visually.css index 4611d34d7..dfd5ed0a8 100644 --- a/src/data/Web_Visually.css +++ b/src/data/Web_Visually.css @@ -594,7 +594,7 @@ div#IndividualDetail div.subsection table tr td:first-child { } #Places table.infolist tbody tr td.ColumnName a:hover { } -/* Events +/* EventList and EventDetail ----------------------------------------------------- */ div#EventList, div#EventDetail { } diff --git a/src/plugins/webreport/NarrativeWeb.py b/src/plugins/webreport/NarrativeWeb.py index e751bd626..8f1328580 100644 --- a/src/plugins/webreport/NarrativeWeb.py +++ b/src/plugins/webreport/NarrativeWeb.py @@ -1278,14 +1278,14 @@ class BasePage(object): with Html("div", id="sourcerefs", class_ = "subsection") as section: section += Html("h4", _("Source References"), inline = True) + # begin ordered list + ordered1 = Html("ol") + section += ordered1 + cindex = 0 for citation in bibli.get_citation_list(): cindex += 1 - # begin ordered list - ordered1 = Html("ol") - section += ordered1 - # Add this source to the global list of sources to be displayed # on each source page. lnk = (self.report.cur_fname, self.page_title, self.gid) @@ -1299,11 +1299,11 @@ class BasePage(object): # Add this source and its references to the page source = db.get_source_from_handle(shandle) title = source.get_title() - list1 = Html("li") + \ - self.source_link(source.handle, "sref%d" % cindex, title, source.gramps_id, True) + list1 = Html("li") ordered1 += list1 + hyper = self.source_link(source.handle, "sref%d" % cindex, title, source.gramps_id, True) + list1 += hyper - # begin ordered one ordered2 = Html("ol") list1 += ordered2 @@ -3498,11 +3498,10 @@ class IndividualPage(BasePage): """ for sref in self.person.get_source_references(): - print sref self.bibli.add_reference(sref) sourcerefs = self.display_source_refs(self.bibli) - # return to its caller + # return to its callers return sourcerefs def display_ind_associations(self, assoclist):