JAL-1803 recover type field faithfully for mmCIF/PDB file type info
authorJim Procter <jprocter@issues.jalview.org>
Sun, 4 Sep 2016 12:20:40 +0000 (13:20 +0100)
committerJim Procter <jprocter@issues.jalview.org>
Sun, 4 Sep 2016 12:20:40 +0000 (13:20 +0100)
src/jalview/gui/Jalview2XML.java

index 5d187da..86f8146 100644 (file)
@@ -2982,9 +2982,9 @@ public class Jalview2XML
             entry.setId(ids[p].getId());
             if (ids[p].getType() != null)
             {
-              if (ids[p].getType().equalsIgnoreCase("PDB"))
+              if (PDBEntry.Type.getType(ids[p].getType()) != null)
               {
-                entry.setType(PDBEntry.Type.PDB);
+                entry.setType(PDBEntry.Type.getType(ids[p].getType()));
               }
               else
               {