Skip to content

Commit cb08d66

Browse files
authored
Merge branch 'main' into _ogcapi_records_geojson
2 parents c5d22dd + 58dd370 commit cb08d66

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

modules/services/ogc-api-records/src/main/java/org/fao/geonet/ogcapi/records/controller/ItemApiController.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -288,13 +288,12 @@ public ResponseEntity<Void> collectionsCollectionIdItemsGet(
288288

289289
boolean allSourceFields =
290290
mediaType.equals(GnMediaType.APPLICATION_DCAT2_XML)
291-
292291
|| mediaType.equals(GnMediaType.APPLICATION_RDF_XML)
293292
|| mediaType.equals(GnMediaType.APPLICATION_GEOJSON)
294293
|| mediaType.equals(GnMediaType.APPLICATION_JSON_LD)
295294
|| mediaType.equals(MediaType.APPLICATION_JSON)
296295
|| mediaType.equals(GnMediaType.APPLICATION_RDF_XML);
297-
296+
|| mediaType.equals(GnMediaType.APPLICATION_RDF_XML);
298297

299298
return collectionsCollectionIdItemsGetInternal(
300299
query,
@@ -504,6 +503,7 @@ private String search(
504503
Query requestQuery,
505504
HttpServletRequest request,
506505
boolean allSourceFields) {
506+
HttpServletRequest request, boolean allSourceFields) {
507507

508508
Source source = collectionService.retrieveSourceForCollection(requestQuery.getCollectionId());
509509

modules/services/ogc-api-records/src/main/java/org/fao/geonet/ogcapi/records/util/RecordsEsQueryBuilder.java

+2-3
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@
3232
@Slf4j(topic = "org.fao.geonet.ogcapi")
3333
public class RecordsEsQueryBuilder {
3434

35+
36+
private static final String SORT_BY_SEPARATOR = ",";
3537
// TODO: Sources depends on output type
3638
private static final List<String> defaultSources = Arrays.asList(
3739
"resourceTitleObject", "resourceAbstractObject",
@@ -44,9 +46,6 @@ public class RecordsEsQueryBuilder {
4446
"createDate", "mainLanguage", "geom", "formats",
4547
"resourceTemporalDateRange","resourceTemporalExtentDateRange");
4648

47-
private static final String SORT_BY_SEPARATOR = ",";
48-
49-
5049
private static final String defaultSpatialOperation = "intersects";
5150
@Autowired
5251
QueryToElastic queryToElastic;

0 commit comments

Comments
 (0)