private void convertCitationIds(DocumentWrapper dw, SolrInputDocument doc) { List<ReferenceMetadata> references = dw.getDocumentMetadata() .getReferenceList(); for (ReferenceMetadata reference : references) { List<KeyValue> extIds = reference.getExtIdList(); for (KeyValue extId : extIds) { if (extId .getKey() .equals(CoansysModulesConstants.COANSYS_MODULE_ID_CITATIONS_MATCHING)) { doc.addField(SolrIndexConstants.DOC_CITATIONID_FIELD_NAME, extId.getValue()); } } } }
dm.addExtId(KeyValue.newBuilder().setKey(YConstants.EXT_SCHEME_PMID).setValue(value)); return true;
ReferenceMetadata.Builder refBuilder = ReferenceMetadata .newBuilder(ref.build()); KeyValue.Builder extIdBuilder = KeyValue.newBuilder(); extIdBuilder .setKey(CoansysModulesConstants.COANSYS_MODULE_ID_CITATIONS_MATCHING);
try{ Author.Builder ab = Author.newBuilder(a); KeyValue.Builder kvb = KeyValue.newBuilder(); kvb.setProvenance(pb); kvb.setKey(CoansysModulesConstants.COANSYS_MODULE_ID_DISAMBIGUATION_AUTHOR);
String orcid = authorPattern.getExtId(0).getValue(); String doi = orcidDTO.getDoi(); String title = orcidDTO.getTitle();
private void convertPersonIds(DocumentWrapper dw, SolrInputDocument doc) { List<Author> authors = dw.getDocumentMetadata().getBasicMetadata() .getAuthorList(); for (Author author : authors) { List<KeyValue> extIds = author.getExtIdList(); for (KeyValue extId : extIds) { if (extId .getKey() .equals(CoansysModulesConstants.COANSYS_MODULE_ID_DISAMBIGUATION_AUTHOR)) { doc.addField(SolrIndexConstants.DOC_PERSONID_FIELD_NAME, extId.getValue()); } } } } }
protected Author buildAuthor(String orcId, String givenNames, String familyName) { Author.Builder author = Author.newBuilder(); author.setForenames(givenNames); author.setSurname(familyName); KeyValue.Builder extId = KeyValue.newBuilder(); extId.setKey("orcid-author-id"); extId.setValue(orcId); author.addExtId(extId); author.setKey(orcId); return author.build(); }
private void convertDocExtIds(DocumentWrapper dw, SolrInputDocument doc) { List<KeyValue> extIds = dw.getDocumentMetadata().getExtIdList(); for (KeyValue extId : extIds) { doc.addField(SolrIndexConstants.CONTRIBUTION_DOCEXTID_FIELD_NAME, extId.getKey() + SolrIndexConstants.FIELD_VALUES_SEPARATOR + extId.getValue()); } }
private void convertExtIds(DocumentWrapper dw, SolrInputDocument doc) { List<KeyValue> extIds = dw.getDocumentMetadata().getExtIdList(); for (KeyValue extId : extIds) { doc.addField(SolrIndexConstants.DOC_EXTID_FIELD_NAME, extId.getKey() + SolrIndexConstants.FIELD_VALUES_SEPARATOR + extId.getValue()); } }
private void convertExtIds(Author contribution, SolrInputDocument doc) { List<KeyValue> extIds = contribution.getExtIdList(); for (KeyValue extId : extIds) { doc.addField(SolrIndexConstants.CONTRIBUTION_EXTID_FIELD_NAME, extId.getKey() + SolrIndexConstants.FIELD_VALUES_SEPARATOR + extId.getValue()); } }