added identifier confidence for issue #35

Former-commit-id: 9ce9761fa4cd842e6141973bf33e229bea208982
This commit is contained in:
Jeremy Long
2014-01-17 21:05:08 -05:00
parent cb7be0e460
commit e18789b8d3
2 changed files with 5 additions and 2 deletions

View File

@@ -578,11 +578,14 @@ Copyright (c) 2012 Jeremy Long. All Rights Reserved.
#else
<li><b>$esc.html($id.type):</b>&nbsp;$esc.html($id.value)
#end
#if ($id.confidence)
&nbsp;&nbsp;<i>Confidence</i>:$id.confidence
#end
#if ($id.type=="cpe")
##yes, we are HTML Encoding into JavaScript... the escape utils don't have a JS Encode and I haven't written one yet
&nbsp;&nbsp;<button class="copybutton" onclick="copyText('$esc.html($dependency.FileName)', '$esc.html($dependency.Sha1sum)', 'cpe', '$esc.html($id.value)')">suppress</button>
#end
#if( $id.description )
#if ($id.description)
<br/>$esc.html($id.description)
#end
</li>

View File

@@ -97,7 +97,7 @@ Copyright (c) 2012 Jeremy Long. All Rights Reserved.
#if($dependency.getIdentifiers().size()>0)
<identifiers>
#foreach($id in $dependency.getIdentifiers())
<identifier type="$esc.xml($id.type)">
<identifier type="$esc.xml($id.type)" #if($id.confidence)confidence="$id.confidence"#end>
<name>($id.value)</name>
#if( $id.url )
<url>$esc.xml($id.url)</url>