Skip to content
Snippets Groups Projects
Commit 11cf2ed3 authored by Passam KASSEM's avatar Passam KASSEM
Browse files

[VAS] Bug 9352 : Filtre par modalité d'entrée de la recherche avancée du registre des fonds

parent f15b67c1
No related branches found
No related tags found
3 merge requests!65Retour vitamui pull request,!64Retour commentaires vitamui pull request,!62Ajout de l'application pastis dans le portail des application web de vitam
......@@ -111,9 +111,8 @@ public class VitamQueryHelper {
/* */
private static final String DATE_FORMAT = "dd/MM/yyyy";
public static final Collection<String> staticAcquisitionInformations = List.of("Versement", "Protocole", "Achat",
"Copie", "Dation", "Dépôt", "Dévolution", "Don", "Legs", "Réintégration", VitamQueryHelper.ACQUISITION_INFORMATION_AUTRES,
"Copie", "Dation", "Dépôt", "Dévolution", "Don", "Legs", "Réintégration", "Autres",
VitamQueryHelper.ACQUISITION_INFORMATION_NON_RENSEIGNE);
public static final String ACQUISITION_INFORMATION_AUTRES = "Autres";
public static final String ACQUISITION_INFORMATION_NON_RENSEIGNE = "Non renseigné";
private VitamQueryHelper() {
......@@ -274,7 +273,7 @@ public class VitamQueryHelper {
acquisitionInformations.removeAll(data);
if(!acquisitionInformations.isEmpty()) {
if(data.contains(ACQUISITION_INFORMATION_AUTRES) || data.contains(ACQUISITION_INFORMATION_NON_RENSEIGNE) ) {
if(data.contains(ACQUISITION_INFORMATION_NON_RENSEIGNE) ) {
query.add(nin(ACQUISITION_INFORMATION, acquisitionInformations.toArray(new String[] {})));
} else {
query.add(in(ACQUISITION_INFORMATION, data.toArray(new String[] {})));
......
......@@ -245,8 +245,7 @@ public class AccessionRegisterSummaryInternalService {
List<String> acquisitionInformations = new ArrayList<>(VitamQueryHelper.staticAcquisitionInformations);
acquisitionInformations.removeAll(acquisitionInformationsFromIhm);
if(!acquisitionInformations.isEmpty()) {
if(acquisitionInformationsFromIhm.contains(VitamQueryHelper.ACQUISITION_INFORMATION_AUTRES)
|| acquisitionInformationsFromIhm.contains(VitamQueryHelper.ACQUISITION_INFORMATION_NON_RENSEIGNE) ) {
if(acquisitionInformationsFromIhm.contains(VitamQueryHelper.ACQUISITION_INFORMATION_NON_RENSEIGNE) ) {
query.add(nin(ACQUISITION_INFORMATION, acquisitionInformations.toArray(new String[] {})));
} else {
query.add(in(ACQUISITION_INFORMATION, acquisitionInformationsFromIhm.toArray(new String[] {})));
......
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