JAL-1803 recover type field faithfully for mmCIF/PDB file type info
[jalview.git] / 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
               {