Skip to content

Commit

Permalink
Include entries without hits when running SpatialToSkos (RPB-173)
Browse files Browse the repository at this point in the history
  • Loading branch information
fsteeg committed Jul 3, 2024
1 parent 746d448 commit 126b4fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/nwbib/Classification.java
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ public static Pair<List<JsonNode>, Map<String, List<JsonNode>>> buildHierarchyCs
if(broader == null || broader.trim().isEmpty()) {
// directly under n6
topClasses.add(Json.toJson(ImmutableMap.of("value", id, "label", label)));
} else if (hits > 0) {
} else if (hits > 0 || Play.isTest()) { /* SpatialToSkos uses Play test server */
String broaderId = RPB_SPATIAL + "n" + broader;
if (!subClasses.containsKey(broaderId))
subClasses.put(broaderId, new ArrayList<JsonNode>());
Expand Down

0 comments on commit 126b4fa

Please sign in to comment.