Revision 37497
Added by Alessia Bardi about 9 years ago
modules/cnr-data-information-oai-publisher/trunk/src/main/java/eu/dnetlib/data/information/oai/publisher/core/DNetOAICore.java | ||
---|---|---|
84 | 84 |
MDFInfo mdf = obtainMDFInfo(resToken.getMetadataPrefix()); |
85 | 85 |
String lastID = resToken.getLastObjIdentifier(); |
86 | 86 |
String query = resToken.getQuery(); |
87 |
String newQuery = query + " AND _id > \"" + lastID + "\""; |
|
87 |
String newQuery = ""; |
|
88 |
if (StringUtils.isNotBlank(query)) { |
|
89 |
newQuery = query + " AND "; |
|
90 |
} |
|
91 |
newQuery += " _id > \"" + lastID + "\""; |
|
88 | 92 |
log.debug("NEW QUERY BECAUSE of resumptionToken: " + newQuery); |
89 | 93 |
int total = this.countTotal(resToken.hasDateRange(), query, resToken.getRequestedSet(), mdf); |
90 | 94 |
Cursor results = this.getCursor(newQuery, onlyIdentifiers, mdf); |
Also available in: Unified diff
Not adding AND if we have no query.