diff --git a/app/views/libraryIdentificationList.scala.html b/app/views/libraryIdentificationList.scala.html
index 58ab835..c8acad4 100644
--- a/app/views/libraryIdentificationList.scala.html
+++ b/app/views/libraryIdentificationList.scala.html
@@ -10,11 +10,15 @@
// So, making the implicit explicit is a workaround for this issue.
Ordering.Tuple4[Confidence.Value, String, String, String]
}
+@cleanIdentifiers(identifiers: Set[Identifier]) = @{
+ if(addLink) identifiers
+ else identifiers.map(_.copy(url = "")) // Quick workaround for multiplicities caused by different URL
+}
@if(!dep.identifiers.exists(_.confidence >= Confidence.High)){
- @dep.fileNames.toSeq.sorted.mkString(", ")@if(addButtons){ }
}
-@for(id <- dep.identifiers.toSeq.sortBy(i => (i.confidence, i.identifierType, i.name, i.url)).reverse){
+@for(id <- cleanIdentifiers(dep.identifiers).toSeq.sortBy(i => (i.confidence, i.identifierType, i.name, i.url)).reverse){
-
@identifier(id, addLink)
@for(cpe <- id.toCpeIdentifierOption; suppressionXmlId <- suppressionXmlIdOption; if addButtons){
@@ -23,7 +27,7 @@
@if(addButtons && suppressionXmlIdOption.isDefined){ }
}
-@for(id <- dep.suppressedIdentifiers.toSeq.sortBy(i => (i.confidence, i.identifierType, i.name, i.url)).reverse){
+@for(id <- cleanIdentifiers(dep.suppressedIdentifiers).toSeq.sortBy(i => (i.confidence, i.identifierType, i.name, i.url)).reverse){
@identifier(id, addLink)
}
\ No newline at end of file