Ignore:
Timestamp:
Jun 6, 2014, 7:26:21 AM (10 years ago)
Author:
casties
Branch:
default
Message:

save text quote from Annotator.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/main/java/de/mpiwg/itgroup/annotations/restlet/AnnotatorResourceImpl.java

    r75 r76  
    226226            if (annot.getResourceUri() != null) {
    227227                jo.put("resource", annot.getResourceUri());
     228            }
     229            if (annot.getQuote() != null) {
     230                jo.put("quote", annot.getQuote());
    228231            }
    229232
     
    509512        }
    510513        /*
     514         * annotation quote
     515         */
     516        if (jo.has("quote")) {
     517            annot.setQuote(jo.getString("quote"));
     518        }
     519        /*
    511520         * check authentication
    512521         */
Note: See TracChangeset for help on using the changeset viewer.