Revision 49144
Added by Alessia Bardi over 6 years ago
OpenaireResultSubmitter.java | ||
---|---|---|
123 | 123 |
try { |
124 | 124 |
idxList = calculateCurrentIndexDsInfo(); |
125 | 125 |
if (idxList == null || idxList.isEmpty()) { |
126 |
throw new MSROException("Cannot add result: " + pub + " : No public Search Service found"); |
|
126 |
throw new MSROException("Cannot add result: " + pub.getAnyId() + " : No public Search Service found");
|
|
127 | 127 |
} |
128 | 128 |
if (idxList.size() > 1) log.warn("Found more than 1 public search service"); |
129 | 129 |
final String oafRecord = pub.asOafRecord(velocityEngine, serviceLocator.getService(ISLookUpService.class), oafSchemaLocation); |
Also available in: Unified diff
Added method to get an id of the submitted result