Revision 52857
Added by Argiro Kokogiannaki over 5 years ago
ClaimHandler.java | ||
---|---|---|
79 | 79 |
rs.close(); |
80 | 80 |
return id; |
81 | 81 |
} |
82 |
// - used in Migration |
|
83 |
public void saveOrphanClaimId(String id) throws SQLStoreException, Exception { |
|
84 |
logger.info("Saving orphan claim id..."); |
|
82 | 85 |
|
86 |
String query = queryGenerator.generateInsertQueryForClaimsOrphanIds(id); |
|
87 |
sqlDAO.executeUpdateQuery(query); |
|
88 |
} |
|
89 |
|
|
83 | 90 |
/** |
84 | 91 |
* Gets the main information for a claim relation - builds a claim object |
85 | 92 |
* exports metadata |
... | ... | |
191 | 198 |
} |
192 | 199 |
|
193 | 200 |
return project; |
194 |
}else if (type.equals(ClaimUtils.PUBLICATION)||type.equals(ClaimUtils.DATASET)||type.equals(ClaimUtils.SOFTWARE) ){ |
|
201 |
}else if (type.equals(ClaimUtils.PUBLICATION)||type.equals(ClaimUtils.DATASET)||type.equals(ClaimUtils.SOFTWARE) ||type.equals(ClaimUtils.OTHER) ){
|
|
195 | 202 |
ExternalRecordHandler externalRecordHandler = new ExternalRecordHandler(); |
196 | 203 |
if(collectedFrom == null){ |
197 | 204 |
return null; |
... | ... | |
233 | 240 |
result = indexResultHandler.fetchDatasetById(id,useProductionIndex); |
234 | 241 |
}else if(type.equals(ClaimUtils.SOFTWARE)){ |
235 | 242 |
result = indexResultHandler.fetchSoftwareById(id,useProductionIndex); |
243 |
}else if(type.equals(ClaimUtils.OTHER)){ |
|
244 |
result = indexResultHandler.fetchOtherById(id,useProductionIndex); |
|
236 | 245 |
} |
237 | 246 |
if(result == null){ |
238 | 247 |
logger.error("Record with id:"+id + " and type " + type + " couldn't be fetched from openaire."); |
Also available in: Unified diff
Enable claiming for ORPs
Set direct index url in properties
Migration:
save orphan Ids, claims
uncomment fetch dedup