Revision 8946
Added by ben leinfelder over 9 years ago
MetacatHandler.java | ||
---|---|---|
87 | 87 |
import edu.ucsb.nceas.metacat.accesscontrol.AccessControlForSingleFile; |
88 | 88 |
import edu.ucsb.nceas.utilities.access.AccessControlInterface; |
89 | 89 |
import edu.ucsb.nceas.metacat.accesscontrol.AccessControlList; |
90 |
import edu.ucsb.nceas.metacat.annotation.AnnotatorService; |
|
90 | 91 |
import edu.ucsb.nceas.metacat.cart.CartManager; |
91 | 92 |
import edu.ucsb.nceas.metacat.client.InsufficientKarmaException; |
92 | 93 |
import edu.ucsb.nceas.metacat.common.query.EnabledQueryEngines; |
... | ... | |
2688 | 2689 |
try { |
2689 | 2690 |
// submit for indexing |
2690 | 2691 |
Map<String, List<Object>> fields = EventLog.getInstance().getIndexFields(identifier, Event.READ.xmlValue()); |
2692 |
Map<String, List<Object>> annotations = AnnotatorService.lookUpAnnotations(identifier.getValue()); |
|
2693 |
if (annotations != null) { |
|
2694 |
fields.putAll(annotations); |
|
2695 |
} |
|
2691 | 2696 |
MetacatSolrIndex.getInstance().submit(identifier, sysMeta, fields, false); |
2692 | 2697 |
} catch (Exception e) { |
2693 | 2698 |
failedList.add(id); |
Also available in: Unified diff
look up annotations when reindexing a given pid. still very much a prototype in that we are looking up annotations from an external annotator-store. TODO: add pid filtering to query when annotateit.org supports it (pending upgrade on their site).