issue 1381, Confidence:Normal

svn: r9363
This commit is contained in:
Stéphane Charette 2007-11-17 06:06:43 +00:00
parent 1ae2e1aa28
commit 2e90dd01a2
2 changed files with 14 additions and 8 deletions

View File

@ -1,3 +1,7 @@
2007-11-16 Stéphane Charette <stephanecharette@gmail.com>
* src/plugins/NarrativeWeb.py: issue #1381, no need to print
"Confidence" on every reference line if it is "Normal"
2007-11-16 Jerome Rapinat <romjerome@yahoo.fr>
* src/plugins/rel_pt.py: import gen.lib

View File

@ -543,14 +543,11 @@ class BasePage:
of.write('</td></tr>\n')
for key,sref in citation.get_ref_list():
of.write('\t<tr><td></td>')
of.write('<td class="field">')
of.write('<a name="sref%d%s">' % (cindex,key))
of.write('</a>%d%s.</td>' % (cindex,key))
of.write('<td>')
tmp = []
confidence = Utils.confidence.get(sref.confidence, _('Unknown'))
if confidence == _('Normal'):
confidence = None
for (label,data) in [(_('Date'),_dd.display(sref.date)),
(_('Page'),sref.page),
(_('Confidence'),confidence)]:
@ -561,6 +558,11 @@ class BasePage:
note = self.db.get_note_from_handle(notehandle)
tmp.append("%s: %s" % (_('Text'),note.get(True)))
if len(tmp) > 0:
of.write('\t<tr><td></td>')
of.write('<td class="field">')
of.write('<a name="sref%d%s">' % (cindex,key))
of.write('</a>%d%s.</td>' % (cindex,key))
of.write('<td>')
of.write('<br />'.join(tmp))
of.write('<p/>')
of.write('</td></tr>\n')