Skip to content

Commit

Permalink
Adjust EBI Search exporter
Browse files Browse the repository at this point in the history
  • Loading branch information
renatocjn committed Dec 13, 2024
1 parent 175f567 commit ff2aea6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.5.0
2.5.1
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

<groupId>org.identifiers.cloud.hq.ws</groupId>
<artifactId>registry</artifactId>
<version>2.5.0</version>
<version>2.5.1</version>
<packaging>jar</packaging>

<name>registry</name>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ private List<Field> getFieldsOf(Namespace namespace) {
fields.add(new Field("prefix", namespace.getPrefix()));
fields.add(new Field("mir_id", namespace.getMirId()));
fields.add(new Field("lui_pattern", namespace.getPattern()));
fields.add(new Field("sample_id", namespace.getSampleId()));

fields.add(new Field("creation_date", format(namespace.getCreated())));
fields.add(new Field("modification_date", format(namespace.getModified())));
Expand All @@ -88,13 +89,13 @@ private List<Field> getFieldsOf(Namespace namespace) {
fields.add(new Field("landing_page", genLandingPageUrl(namespace)));

for (var resource : namespace.getResources()) {
fields.add(new Field("resource_name", resource.getName()));
fields.add(new Field("mir_id", resource.getMirId()));
fields.add(new Field("resource_name", resource.getName()));
fields.add(new Field("resource_description", resource.getDescription()));
fields.add(new Field("institution_name", resource.getInstitution().getName()));
fields.add(new Field("description", resource.getDescription()));
fields.add(new Field("description", resource.getInstitution().getDescription()));
fields.add(new Field("institution_description", resource.getInstitution().getDescription()));
}

return fields;
return fields.stream().filter(f -> !f.getValue().equals("CURATOR_REVIEW")).toList();
}
}

0 comments on commit ff2aea6

Please sign in to comment.