Changeset 7285
- Timestamp:
- Jan 26, 2017, 1:52:55 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.10-stable/src/clients/web/net/sf/basedb/clients/web/AnnotationUtil.java
r7208 r7285 167 167 // The base object has 'id', 'source', 'annotationType' and 'annotation' 168 168 JSONObject json = new JSONObject(); 169 json.put("id", ""+at.getId() + (a!=null ? "-" + a.getId() : "")); 169 String id = ""+at.getId(); 170 if (a != null) id += "-" + a.getId(); 171 if (inherited != null) id += "-" + inherited.getId(); 172 json.put("id", id); 170 173 // If 'a' is null this is a primary annotation that has no current values 171 174 json.put("source", a == null ? (inherited == null ? "PRIMARY" : "INHERITED") : a.getSource().name());
Note: See TracChangeset
for help on using the changeset viewer.