Skip to content

Commit

Permalink
Add DRIED as accepted recordBasis
Browse files Browse the repository at this point in the history
  • Loading branch information
samleeflang committed Oct 18, 2023
1 parent 184cd95 commit 4081818
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public class BioCaseService implements WebClientService {
private static final List<String> allowedBasisOfRecord = List.of("PRESERVEDSPECIMEN", "FOSSIL",
"OTHER", "ROCK", "MINERAL", "METEORITE", "FOSSILSPECIMEN", "LIVINGSPECIMEN", "MATERIALSAMPLE",
"FOSSIL SPECIMEN", "ROCKSPECIMEN", "ROCK SPECIMEN", "MINERALSPECIMEN", "MINERAL SPECIMEN",
"METEORITESPECIMEN", "METEORITE SPECIMEN", "HERBARIUM SHEET", "HERBARIUMSHEET");
"METEORITESPECIMEN", "METEORITE SPECIMEN", "HERBARIUM SHEET", "HERBARIUMSHEET", "DRIED");

private final ObjectMapper mapper;
private final WebClientProperties webClientProperties;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
public class BasisOfRecord extends Term {

public static final String TERM = DWC_PREFIX + "basisOfRecord";

private static final List<String> PRESERVED_SPECIMEN_ALTERNATIVES = List.of("HERBARIUM SHEET",
"HERBARIUMSHEET", "DRIED");
private final List<String> dwcaTerms = List.of(TERM);
private final List<String> abcdTerms = List.of("abcd:recordBasis");
private static final List<String> PRESERVED_SPECIMEN_ALTERNATIVES = List.of("HERBARIUM SHEET", "HERBARIUMSHEET");

@Override
public String retrieveFromDWCA(JsonNode unit) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ public static Stream<Arguments> prepareABCDRecordBasis() {
Arguments.of("PreservedSpecimen", "PreservedSpecimen"),
Arguments.of("RockSpecimen", "RockSpecimen"),
Arguments.of("HerbariumSheet", "Preserved specimen"),
Arguments.of("Dried", "Preserved specimen"),
Arguments.of(null, null)
);
}
Expand Down

0 comments on commit 4081818

Please sign in to comment.