Hypertopic / LaSuli

Social annotation for qualitative analysis
https://hypertopic.org/lasuli
GNU General Public License v3.0
12 stars 4 forks source link

Highlight format changed in corpus API #11

Closed benel closed 13 years ago

benel commented 13 years ago

The highlight format in corpus is back to what it was before october: https://github.com/benel/Argos/commit/f2c07e810900d7143c80f123cc3b0b513843e1cf

benel commented 13 years ago

It seems that my update was not enough... More to come soon.

benel commented 13 years ago

It is indeed possible to determine if it is an attribute or a highlight by testing its type.

chao commented 13 years ago

If the highlight object always has the attribute "coordinates", the better way will be:

if (!isReserved(key) && view.get(key) instanceof JSONObject 
  && view.get(key).has("coordinates")) 
{
  result.add(this.getHighlight(key));
}
benel commented 13 years ago

Hmm, good idea.