JAL-2755 canonicalise the database source for a dbref before resolving a database... patch/JAL-2755_UniprotEnsemblSubnameWorkaround
authorJim Procter <jprocter@issues.jalview.org>
Thu, 20 Sep 2018 15:39:45 +0000 (16:39 +0100)
committerJim Procter <jprocter@issues.jalview.org>
Thu, 20 Sep 2018 15:39:45 +0000 (16:39 +0100)
src/jalview/util/DBRefUtils.java

index b9939e6..bded248 100755 (executable)
@@ -616,7 +616,8 @@ public class DBRefUtils
     {
       for (DBRefEntry dbref : dbRefs)
       {
-        if (source.equalsIgnoreCase(dbref.getSource()))
+        if (source.equalsIgnoreCase(
+                DBRefUtils.getCanonicalName(dbref.getSource())))
         {
           matches.add(dbref);
         }