generalised feature attribute parsing slightly (no embl specs to work from yet)
authorjprocter <Jim Procter>
Fri, 23 Mar 2007 16:36:02 +0000 (16:36 +0000)
committerjprocter <Jim Procter>
Fri, 23 Mar 2007 16:36:02 +0000 (16:36 +0000)
src/jalview/datamodel/xdb/embl/EmblEntry.java

index ffe138b..22437e7 100644 (file)
@@ -213,7 +213,7 @@ public class EmblEntry {
           }\r
         }\r
         String prseq=null;\r
-        String prname=null;\r
+        String prname=new String();\r
         String prid=null;\r
         int prstart=1;\r
         // get qualifiers\r
@@ -234,10 +234,14 @@ public class EmblEntry {
                 {\r
                   prstart = Integer.parseInt(q.getValue());\r
                 }\r
-                else\r
-                  if (q.getName().equals("product")) {\r
+                else {\r
+                  // throw anything else into the title\r
+                  if (prname.length()==0) {\r
                     prname = q.getValue();\r
+                  } else {\r
+                    prname = prname + q.getName()+":"+q.getValue();\r
                   }\r
+                }\r
           }\r
         }\r
         Sequence product=null;\r