From 240d222aab86a8a8431e4daf35d8aeafbf94646e Mon Sep 17 00:00:00 2001 From: SamuelQuetin Date: Fri, 17 May 2024 08:26:19 +0200 Subject: [PATCH] ajout title id --- .../fr/abes/bestppn/controller/BestPpnController.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/main/java/fr/abes/bestppn/controller/BestPpnController.java b/src/main/java/fr/abes/bestppn/controller/BestPpnController.java index 79f8185..664d4a6 100644 --- a/src/main/java/fr/abes/bestppn/controller/BestPpnController.java +++ b/src/main/java/fr/abes/bestppn/controller/BestPpnController.java @@ -1,10 +1,10 @@ package fr.abes.bestppn.controller; -import fr.abes.bestppn.model.dto.BestPpnDto; -import fr.abes.bestppn.model.dto.kafka.LigneKbartDto; -import fr.abes.bestppn.model.BestPpn; import fr.abes.bestppn.exception.BestPpnException; import fr.abes.bestppn.exception.IllegalDoiException; +import fr.abes.bestppn.model.BestPpn; +import fr.abes.bestppn.model.dto.BestPpnDto; +import fr.abes.bestppn.model.dto.kafka.LigneKbartDto; import fr.abes.bestppn.service.BestPpnService; import io.swagger.v3.oas.annotations.Operation; import io.swagger.v3.oas.annotations.media.Content; @@ -44,6 +44,7 @@ public BestPpnController(BestPpnService service) { public BestPpnDto bestPpn(@RequestParam(name = "provider") String provider, @RequestParam(name = "publication_title", required = false) String publicationTitle, @RequestParam(name = "publication_type") String publicationType, @RequestParam(name = "online_identifier", required = false) String onlineIdentifier, @RequestParam(name = "print_identifier", required = false) String printIdentifier, @RequestParam(name = "title_url", required = false) String titleUrl, + @RequestParam(name = "title_id", required = false) String titleId, @RequestParam(name = "date_monograph_published_online", required = false) String dateMonographPublishedOnline, @RequestParam(name = "date_monograph_published_print", required = false) String dateMonographPublishedPrint, @RequestParam(name = "first_author", required = false) String firstAuthor, @RequestParam(name = "log", required = false) Boolean log) throws IOException { @@ -54,6 +55,7 @@ public BestPpnDto bestPpn(@RequestParam(name = "provider") String provider, @Req ligneKbartDto.setOnlineIdentifier((onlineIdentifier != null) ? onlineIdentifier : ""); ligneKbartDto.setPrintIdentifier((printIdentifier != null) ? printIdentifier : ""); ligneKbartDto.setTitleUrl((titleUrl != null) ? titleUrl : ""); + ligneKbartDto.setTitleId((titleId != null) ? titleId : ""); ligneKbartDto.setDateMonographPublishedPrint((dateMonographPublishedPrint != null) ? dateMonographPublishedPrint : ""); ligneKbartDto.setDateMonographPublishedOnline((dateMonographPublishedOnline != null) ? dateMonographPublishedOnline : ""); ligneKbartDto.setFirstAuthor((firstAuthor != null) ? firstAuthor : "");