Skip to content

Commit

Permalink
New Citations not included on the Narrative Web
Browse files Browse the repository at this point in the history
Fixes #13046
  • Loading branch information
SNoiraud committed Oct 2, 2023
1 parent 238d3b3 commit e359fda
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
3 changes: 2 additions & 1 deletion gramps/plugins/webreport/basepage.py
Original file line number Diff line number Diff line change
Expand Up @@ -896,7 +896,8 @@ def display_event_row(

trow2 = Html("tr")
# get event source references
srcrefs = self.get_citation_links(event.get_citation_list()) or " "
srcrefs = self.get_citation_links(event.get_citation_list() +
event_ref.get_citation_list()) or " "
trow += Html("td", srcrefs, class_="ColumnSources", rowspan=2)

# get event notes
Expand Down
8 changes: 7 additions & 1 deletion gramps/plugins/webreport/narrativeweb.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ def __init__(self, database, options, user):

stdoptions.run_private_data_option(self, menu)
stdoptions.run_living_people_option(self, menu)
self.database = CacheProxyDb(self.database)
self.database = CacheProxyDb(database)
self._db = self.database

filters_option = menu.get_option_by_name("filter")
Expand Down Expand Up @@ -723,6 +723,8 @@ def _add_person(self, person_handle, bkref_class, bkref_handle):

for citation_handle in event.get_citation_list():
self._add_citation(citation_handle, Person, person_handle)
for citation_handle in evt_ref.get_citation_list():
self._add_citation(citation_handle, Person, person_handle)

############### Families section ##############
# Tell the families tab to display this individuals families
Expand Down Expand Up @@ -753,6 +755,10 @@ def _add_person(self, person_handle, bkref_class, bkref_handle):
self._add_citation(
cite_hdl, Person, person_handle
)
for cite_hdl in evt_ref.get_citation_list():
self._add_citation(
cite_hdl, Person, person_handle
)
# add the family media and the family event media if the
# families page is not being displayed (If it is displayed,
# the media are linked from the families page)
Expand Down

0 comments on commit e359fda

Please sign in to comment.