From e6bfaf39fd9e4e3a8150f8be061d97e30403d6f6 Mon Sep 17 00:00:00 2001 From: Brian Matherly Date: Wed, 14 Mar 2007 03:09:38 +0000 Subject: [PATCH] 0000976: NarrativeWeb: gramps ID always output regardless of setting svn: r8296 --- gramps2/ChangeLog | 4 ++++ gramps2/src/plugins/NarrativeWeb.py | 6 +++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/gramps2/ChangeLog b/gramps2/ChangeLog index 9a8a2d4e2..aba25402d 100644 --- a/gramps2/ChangeLog +++ b/gramps2/ChangeLog @@ -1,3 +1,7 @@ +2007-03-13 Brian Matherly + * src/plugins/NarrativeWeb.py: 0000976: NarrativeWeb: gramps ID always + output regardless of setting + 2007-03-13 Brian Matherly * src/plugins/NarrativeWeb.py: 0000969: NarrativeWeb plugin: include the date in the media object pages diff --git a/gramps2/src/plugins/NarrativeWeb.py b/gramps2/src/plugins/NarrativeWeb.py index 7dca932e6..8f09005f7 100644 --- a/gramps2/src/plugins/NarrativeWeb.py +++ b/gramps2/src/plugins/NarrativeWeb.py @@ -1224,7 +1224,11 @@ class SourcePage(BasePage): of.write('

%s

\n' % self.page_title.strip()) of.write('') - for (label,val) in [(_('GRAMPS ID'),source.gramps_id), + grampsid = None + if not self.noid: + grampsid = source.gramps_id + + for (label,val) in [(_('GRAMPS ID'),grampsid), (_('Author'),source.author), (_('Publication information'),source.pubinfo), (_('Abbreviation'),source.abbrev)]: