Skip to content

Commit

Permalink
ajout title id
Browse files Browse the repository at this point in the history
  • Loading branch information
SamuelQuetin committed May 17, 2024
1 parent 3db40fe commit 240d222
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -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;
Expand Down Expand Up @@ -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 {
Expand All @@ -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 : "");
Expand Down

0 comments on commit 240d222

Please sign in to comment.