[MOBY-guts] biomoby commit

Paul Gordon gordonp at dev.open-bio.org
Mon Mar 29 19:49:53 UTC 2010


gordonp
Mon Mar 29 15:49:52 EDT 2010
Update of /home/repository/moby/moby-live/Java/src/main/ca/ucalgary/seahawk/util
In directory dev.open-bio.org:/tmp/cvs-serv10308/src/main/ca/ucalgary/seahawk/util

Modified Files:
	FilterSearch.java 
Log Message:
Fixed id and article name xpaths
moby-live/Java/src/main/ca/ucalgary/seahawk/util FilterSearch.java,1.1,1.2
===================================================================
RCS file: /home/repository/moby/moby-live/Java/src/main/ca/ucalgary/seahawk/util/FilterSearch.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- /home/repository/moby/moby-live/Java/src/main/ca/ucalgary/seahawk/util/FilterSearch.java	2010/03/17 20:08:25	1.1
+++ /home/repository/moby/moby-live/Java/src/main/ca/ucalgary/seahawk/util/FilterSearch.java	2010/03/29 19:49:52	1.2
@@ -54,12 +54,12 @@
 			elementNames.put("//"+data.getLocalName(), "element " + data.getLocalName());
 		    }
 		    else if(data.getAttribute(MobyTags.OBJ_ID).length() > 0){  // or an id
-			elementNames.put("//*[@id]", "ID");
+			elementNames.put("//*/@id", "ID");
 		    }
 		}
 		if(articleName != null && articleName.trim().length() != 0 && 
 		   !memberNames.containsKey(articleName)){
-		    memberNames.put("//*[@"+MobyTags.ARTICLENAME+"='"+articleName+"'", "field "+articleName);
+		    memberNames.put("//*[@"+MobyTags.ARTICLENAME+"='"+articleName+"']", "field "+articleName);
 		}
 	    }
 	}




More information about the MOBY-guts mailing list