-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into NP-48081/tickets
- Loading branch information
Showing
11 changed files
with
194 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,9 @@ | ||
{ | ||
"mapping": { | ||
"total_fields": { | ||
"limit": "1100" | ||
} | ||
}, | ||
"analysis": { | ||
"char_filter": { | ||
"quote": { | ||
|
12 changes: 12 additions & 0 deletions
12
search-commons/src/main/java/no/unit/nva/search/resource/response/Affiliation.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package no.unit.nva.search.resource.response; | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
|
||
class Affiliation { | ||
|
||
@JsonProperty("id") | ||
private String id; | ||
|
||
@JsonProperty("type") | ||
private String type; | ||
} |
25 changes: 25 additions & 0 deletions
25
search-commons/src/main/java/no/unit/nva/search/resource/response/Contributor.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package no.unit.nva.search.resource.response; | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
import java.util.List; | ||
|
||
class Contributor { | ||
|
||
@JsonProperty("affiliations") | ||
private List<Affiliation> affiliations; | ||
|
||
@JsonProperty("correspondingAuthor") | ||
private boolean correspondingAuthor; | ||
|
||
@JsonProperty("identity") | ||
private Identity identity; | ||
|
||
@JsonProperty("role") | ||
private String role; | ||
|
||
@JsonProperty("sequence") | ||
private int sequence; | ||
|
||
@JsonProperty("type") | ||
private String type; | ||
} |
15 changes: 15 additions & 0 deletions
15
search-commons/src/main/java/no/unit/nva/search/resource/response/Identity.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package no.unit.nva.search.resource.response; | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
|
||
class Identity { | ||
|
||
@JsonProperty("id") | ||
private String id; | ||
|
||
@JsonProperty("type") | ||
private String type; | ||
|
||
@JsonProperty("name") | ||
private String name; | ||
} |
23 changes: 23 additions & 0 deletions
23
search-commons/src/main/java/no/unit/nva/search/resource/response/OtherIdentifiers.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package no.unit.nva.search.resource.response; | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
import java.util.List; | ||
|
||
public class OtherIdentifiers { | ||
|
||
@JsonProperty("scopus") | ||
private List<String> scopus; | ||
|
||
@JsonProperty("cristin") | ||
private List<String> cristin; | ||
|
||
@JsonProperty("handle") | ||
private List<String> handle; | ||
|
||
@JsonProperty("issn") | ||
private List<String> issn; | ||
|
||
@JsonProperty("isbn") | ||
private List<String> isbn; | ||
|
||
} |
15 changes: 15 additions & 0 deletions
15
search-commons/src/main/java/no/unit/nva/search/resource/response/PublicationDate.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package no.unit.nva.search.resource.response; | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
|
||
public class PublicationDate { | ||
|
||
@JsonProperty("year") | ||
private String year; | ||
@JsonProperty("month") | ||
private String month; | ||
|
||
@JsonProperty("day") | ||
private String day; | ||
|
||
} |
21 changes: 21 additions & 0 deletions
21
search-commons/src/main/java/no/unit/nva/search/resource/response/PublishingDetails.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package no.unit.nva.search.resource.response; | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
|
||
class PublishingDetails { | ||
|
||
@JsonProperty("id") | ||
private String id; | ||
|
||
@JsonProperty("type") | ||
private String type; | ||
|
||
@JsonProperty("series") | ||
private Series series; | ||
|
||
@JsonProperty("name") | ||
private String name; | ||
|
||
@JsonProperty("doi") | ||
private String doi; | ||
} |
18 changes: 18 additions & 0 deletions
18
search-commons/src/main/java/no/unit/nva/search/resource/response/RecordMetadata.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package no.unit.nva.search.resource.response; | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
|
||
class RecordMetadata { | ||
|
||
@JsonProperty("status") | ||
private String status; | ||
|
||
@JsonProperty("createdDate") | ||
private String createdDate; | ||
|
||
@JsonProperty("modifiedDate") | ||
private String modifiedDate; | ||
|
||
@JsonProperty("publishedDate") | ||
private String publishedDate; | ||
} |
43 changes: 43 additions & 0 deletions
43
...ch-commons/src/main/java/no/unit/nva/search/resource/response/ResourceSearchResponse.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
package no.unit.nva.search.resource.response; | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
import java.util.List; | ||
|
||
public class ResourceSearchResponse { | ||
|
||
@JsonProperty("id") | ||
private String id; | ||
|
||
@JsonProperty("type") | ||
private String type; | ||
|
||
@JsonProperty("otherIdentifiers") | ||
private OtherIdentifiers otherIdentifiers; | ||
|
||
@JsonProperty("recordMetadata") | ||
private RecordMetadata recordMetadata; | ||
|
||
@JsonProperty("mainTitle") | ||
private String mainTitle; | ||
|
||
@JsonProperty("abstract") | ||
private String mainLanguageAbstract; | ||
|
||
@JsonProperty("description") | ||
private String description; | ||
|
||
@JsonProperty("alternativeTitles") | ||
private List<String> alternativeTitles; | ||
|
||
@JsonProperty("publicationDate") | ||
private PublicationDate publicationDate; | ||
|
||
@JsonProperty("contributorsPreview") | ||
private List<Contributor> contributorsPreview; | ||
|
||
@JsonProperty("contributorsCount") | ||
private int contributorsCount; | ||
|
||
@JsonProperty("publishingDetails") | ||
private PublishingDetails publishingDetails; | ||
} |
12 changes: 12 additions & 0 deletions
12
search-commons/src/main/java/no/unit/nva/search/resource/response/Series.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package no.unit.nva.search.resource.response; | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
|
||
class Series { | ||
|
||
@JsonProperty("id") | ||
private String id; | ||
|
||
@JsonProperty("name") | ||
private String name; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,9 @@ | ||
{ | ||
"mapping": { | ||
"total_fields": { | ||
"limit": "1100" | ||
} | ||
}, | ||
"analysis": { | ||
"char_filter": { | ||
"quote": { | ||
|