Hello!

To see the file structure, click on "tree".

Note that updates take place every 10 minutes, commits may not be seen immediately.
fixed non-PMID: ref pub strip at line 291
authorpreecej <preecej@localhost>
Thu, 8 Sep 2011 01:32:48 +0000 (01:32 +0000)
committerpreecej <preecej@localhost>
Thu, 8 Sep 2011 01:32:48 +0000 (01:32 +0000)
svn path=/; revision=180

preecej/semantic_wiki/paw_TransformForImport.pl

index 4f61cd0a7b7cbac5c80b34bfee4f9f7033c3012b..95c0a7f589acef3fa532011946b62bf37a243849 100644 (file)
@@ -285,12 +285,13 @@ sub add_ontology_ref_data($$)
     my @evidence = split('\|', $ref_data{"with_or_from"});
     my @publications = split('\|', $ref_data{"db_reference"});
  
-    my $i = 0;
-    for (@publications) {
-        if (!(substr($_,0,5) eq "PMID:")) {
-            splice(@publications,$i,1);
+    my @tmp_pubs = @publications;
+    for my $tmp_pub (@tmp_pubs)
+    {
+        if (substr($tmp_pub,0,5) ne "PMID:")
+        {
+            my @junk = splice(@publications,0,1);
         }
-        $i++;
     }
 
     # aspect (assumes only one, allows overwrite)