In order to mitigate against the brute force attacks against Gitlab accounts, we are moving to all edu-ID Logins. We would like to remind you to link your account with your edu-id. Login will be possible only by edu-ID after November 30, 2021. Here you can find the instructions for linking your account.

If you don't have a SWITCH edu-ID, you can create one with this guide here

kind regards

This Server has been upgraded to GitLab release 14.2.6

Commit 08277c00 authored by Jonas Waeber's avatar Jonas Waeber
Browse files

Add record set sort fields for period of time.

parent bdefbd5b
Pipeline #27865 passed with stages
in 4 minutes and 59 seconds
......@@ -175,6 +175,8 @@ class RecordSetSearchDocBuilder(private val elasticSearchWrapper: ElasticSearchW
}
},
periodOfTimeAsYear = date,
periodOfTimeAsYearFrom = date?.lte.toString(),
periodOfTimeAsYearTo = date?.gte.toString(),
institution = institutionIds.map { elasticSearchWrapper.getInstitutionName(it) },
supportedByMemoriav = recordSet[Constants.sponsoredBy] != null,
name = name,
......
......@@ -37,6 +37,8 @@ data class RecordSetSearchDoc(
// Facets
val documentType: List<FacetContainer>,
val periodOfTimeAsYear: IntegerRange?,
val periodOfTimeAsYearFrom: String?,
val periodOfTimeAsYearTo: String?,
val supportedByMemoriav: Boolean,
val languageOfMetadata: List<FacetContainer>,
val institution: List<FacetContainer>,
......@@ -94,6 +96,8 @@ data class RecordSetSearchDoc(
),
institution = emptyList(),
periodOfTimeAsYear = IntegerRange(2000, 2020),
periodOfTimeAsYearFrom = "2000",
periodOfTimeAsYearTo = "2020",
lastUpdatedDate = "2020-11-20T10:29:01.128",
keyVisualLink = "https://mb-wf1.memobase.unibas.ch/sites/default/files/styles/teaser/public/2020-10/1.jpg?itok=5ncVBnVQ",
numberOfDocuments = 100,
......
{"published":false,"name":{"de":["New Name (DE)"],"fr":["New Name (FR)"],"it":["New Name (IT)"],"un":[]},"keyVisualLink":"NoKeyVisualLinkDefined","numberOfDocuments":100,"numberOfDocumentsPublished":90,"teaserTest":{"de":[""],"fr":[""],"it":[""],"un":[""]},"documentType":[{"name":{"de":["Foto"],"fr":["Foto"],"it":["Foto"],"un":[]},"filter":"Foto"}],"supportedByMemoriav":true,"institution":[{"name":{"de":["Hold Institution 1"],"fr":["Hold Institution 1"],"it":["Hold Institution 1"],"un":["Hold Institution 1"]},"filter":"holdInstitution1"},{"name":{"de":["Hold Institution 2"],"fr":["Hold Institution 2"],"it":["Hold Institution 2"],"un":["Hold Institution 2"]},"filter":"holdInstitution2"}],"lastUpdatedDate":"2020","scopeAndContent":{"de":[""],"fr":[""],"it":[""],"un":[""]},"accessMemobase":{"de":[""],"fr":[""],"it":[""],"un":[""]},"context":{"de":[""],"fr":[""],"it":[""],"un":[""]},"originalTitle":{"de":[],"fr":[],"it":[],"un":[]},"extent":{"de":[""],"fr":[""],"it":[""],"un":[""]},"selection":{"de":[""],"fr":[""],"it":[""],"un":[""]},"indexing":{"de":[""],"fr":[""],"it":[""],"un":[""]},"rights":{"de":[""],"fr":[""],"it":[""],"un":[""]},"description":{"de":[""],"fr":[""],"it":[""],"un":[""]},"access":{"de":[""],"fr":[""],"it":[""],"un":[""]},"project":{"de":[],"fr":[],"it":[],"un":[]},"relatedRecordSets":{"de":[],"fr":[],"it":[],"un":[]},"relatedPublications":{"de":[],"fr":[],"it":[],"un":[]},"relatedDocuments":{"de":[],"fr":[],"it":[],"un":[]},"dataImport":{"de":[""],"fr":[""],"it":[""],"un":[""]},"originalInstitution":[{"name":{"de":["Complete Institution"],"fr":["Complete Institution"],"it":["Complete Institution"],"un":["Complete Institution"]},"filter":"completeInstitution"}],"masterInstitution":[{"name":{"de":["Complete Institution"],"fr":["Complete Institution"],"it":["Complete Institution"],"un":["Complete Institution"]},"filter":"completeInstitution"}],"accessInstitution":[{"name":{"de":["Complete Institution"],"fr":["Complete Institution"],"it":["Complete Institution"],"un":["Complete Institution"]},"filter":"completeInstitution"}],"id":"testComplete"}
\ No newline at end of file
{"published":false,"name":{"de":["New Name (DE)"],"fr":["New Name (FR)"],"it":["New Name (IT)"],"un":[]},"keyVisualLink":"NoKeyVisualLinkDefined","numberOfDocuments":100,"numberOfDocumentsPublished":90,"teaserTest":{"de":[""],"fr":[""],"it":[""],"un":[""]},"documentType":[{"name":{"de":["Foto"],"fr":["Foto"],"it":["Foto"],"un":[]},"filter":"Foto"}],"periodOfTimeAsYearFrom":"null","periodOfTimeAsYearTo":"null","supportedByMemoriav":true,"institution":[{"name":{"de":["Hold Institution 1"],"fr":["Hold Institution 1"],"it":["Hold Institution 1"],"un":["Hold Institution 1"]},"filter":"holdInstitution1"},{"name":{"de":["Hold Institution 2"],"fr":["Hold Institution 2"],"it":["Hold Institution 2"],"un":["Hold Institution 2"]},"filter":"holdInstitution2"}],"lastUpdatedDate":"2020","scopeAndContent":{"de":[""],"fr":[""],"it":[""],"un":[""]},"accessMemobase":{"de":[""],"fr":[""],"it":[""],"un":[""]},"context":{"de":[""],"fr":[""],"it":[""],"un":[""]},"originalTitle":{"de":[],"fr":[],"it":[],"un":[]},"extent":{"de":[""],"fr":[""],"it":[""],"un":[""]},"selection":{"de":[""],"fr":[""],"it":[""],"un":[""]},"indexing":{"de":[""],"fr":[""],"it":[""],"un":[""]},"rights":{"de":[""],"fr":[""],"it":[""],"un":[""]},"description":{"de":[""],"fr":[""],"it":[""],"un":[""]},"access":{"de":[""],"fr":[""],"it":[""],"un":[""]},"project":{"de":[],"fr":[],"it":[],"un":[]},"relatedRecordSets":{"de":[],"fr":[],"it":[],"un":[]},"relatedPublications":{"de":[],"fr":[],"it":[],"un":[]},"relatedDocuments":{"de":[],"fr":[],"it":[],"un":[]},"dataImport":{"de":[""],"fr":[""],"it":[""],"un":[""]},"originalInstitution":[{"name":{"de":["Complete Institution"],"fr":["Complete Institution"],"it":["Complete Institution"],"un":["Complete Institution"]},"filter":"completeInstitution"}],"masterInstitution":[{"name":{"de":["Complete Institution"],"fr":["Complete Institution"],"it":["Complete Institution"],"un":["Complete Institution"]},"filter":"completeInstitution"}],"accessInstitution":[{"name":{"de":["Complete Institution"],"fr":["Complete Institution"],"it":["Complete Institution"],"un":["Complete Institution"]},"filter":"completeInstitution"}],"id":"testComplete"}
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment