Revision 8784
Added by ben leinfelder almost 10 years ago
OrcidServiceTest.java | ||
---|---|---|
64 | 64 |
|
65 | 65 |
public void testLookup() { |
66 | 66 |
String[] otherNames = new String[] {"Matthew Bentley Jones"}; |
67 |
String orcid = OrcidService.lookupOrcid(null, null, otherNames); |
|
67 |
String orcid = OrcidService.lookupOrcid(null, null, null, otherNames);
|
|
68 | 68 |
assertEquals("http://orcid.org/0000-0003-0077-4738", orcid); |
69 | 69 |
} |
70 | 70 |
|
... | ... | |
75 | 75 |
|
76 | 76 |
List<String> creators = OrcidService.lookupCreators(true); |
77 | 77 |
for (String creator: creators) { |
78 |
String orcid = OrcidService.lookupOrcid(null, null, Arrays.asList(creator).toArray(new String[0])); |
|
78 |
String orcid = OrcidService.lookupOrcid(null, null, null, Arrays.asList(creator).toArray(new String[0]));
|
|
79 | 79 |
if (orcid != null) { |
80 | 80 |
matches.put(orcid, creator); |
81 | 81 |
count++; |
Also available in: Unified diff
all full-text queries for ORCID, but it isn't that great because we might have a"PISCO" creator that shows us in may different orcid profiles...false matches.