Changed a section name in stylesheet for better clarification. Attempting to display_source_refs() in NarrativeWeb.py
svn: r13325
This commit is contained in:
parent
9d78be9f00
commit
e150d58303
@ -594,7 +594,7 @@ div#IndividualDetail div.subsection table tr td:first-child {
|
|||||||
}
|
}
|
||||||
#Places table.infolist tbody tr td.ColumnName a:hover { }
|
#Places table.infolist tbody tr td.ColumnName a:hover { }
|
||||||
|
|
||||||
/* Events
|
/* EventList and EventDetail
|
||||||
----------------------------------------------------- */
|
----------------------------------------------------- */
|
||||||
div#EventList, div#EventDetail { }
|
div#EventList, div#EventDetail { }
|
||||||
|
|
||||||
|
@ -1278,14 +1278,14 @@ class BasePage(object):
|
|||||||
with Html("div", id="sourcerefs", class_ = "subsection") as section:
|
with Html("div", id="sourcerefs", class_ = "subsection") as section:
|
||||||
section += Html("h4", _("Source References"), inline = True)
|
section += Html("h4", _("Source References"), inline = True)
|
||||||
|
|
||||||
|
# begin ordered list
|
||||||
|
ordered1 = Html("ol")
|
||||||
|
section += ordered1
|
||||||
|
|
||||||
cindex = 0
|
cindex = 0
|
||||||
for citation in bibli.get_citation_list():
|
for citation in bibli.get_citation_list():
|
||||||
cindex += 1
|
cindex += 1
|
||||||
|
|
||||||
# begin ordered list
|
|
||||||
ordered1 = Html("ol")
|
|
||||||
section += ordered1
|
|
||||||
|
|
||||||
# Add this source to the global list of sources to be displayed
|
# Add this source to the global list of sources to be displayed
|
||||||
# on each source page.
|
# on each source page.
|
||||||
lnk = (self.report.cur_fname, self.page_title, self.gid)
|
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
|
# Add this source and its references to the page
|
||||||
source = db.get_source_from_handle(shandle)
|
source = db.get_source_from_handle(shandle)
|
||||||
title = source.get_title()
|
title = source.get_title()
|
||||||
list1 = Html("li") + \
|
list1 = Html("li")
|
||||||
self.source_link(source.handle, "sref%d" % cindex, title, source.gramps_id, True)
|
|
||||||
ordered1 += list1
|
ordered1 += list1
|
||||||
|
hyper = self.source_link(source.handle, "sref%d" % cindex, title, source.gramps_id, True)
|
||||||
|
list1 += hyper
|
||||||
|
|
||||||
# begin ordered one
|
|
||||||
ordered2 = Html("ol")
|
ordered2 = Html("ol")
|
||||||
list1 += ordered2
|
list1 += ordered2
|
||||||
|
|
||||||
@ -3498,11 +3498,10 @@ class IndividualPage(BasePage):
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
for sref in self.person.get_source_references():
|
for sref in self.person.get_source_references():
|
||||||
print sref
|
|
||||||
self.bibli.add_reference(sref)
|
self.bibli.add_reference(sref)
|
||||||
sourcerefs = self.display_source_refs(self.bibli)
|
sourcerefs = self.display_source_refs(self.bibli)
|
||||||
|
|
||||||
# return to its caller
|
# return to its callers
|
||||||
return sourcerefs
|
return sourcerefs
|
||||||
|
|
||||||
def display_ind_associations(self, assoclist):
|
def display_ind_associations(self, assoclist):
|
||||||
|
Loading…
Reference in New Issue
Block a user