Skip to content

Commit

Permalink
Merge pull request #73 from abes-esr/develop
Browse files Browse the repository at this point in the history
FIX : Ajout vérification onlineIdentifier non vide dans mapping notic…
  • Loading branch information
SamuelQuetin authored Sep 23, 2024
2 parents c87176c + fcadec9 commit 0afde38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/fr/abes/kafkatosudoc/utils/NoticeMapper.java
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ public NoticeConcrete convert(MappingContext<KbartAndImprimeDto, NoticeConcrete>

Biblio noticeElec = new Biblio();
noticeElec.addZone("008", "$a", "Oax3");
if (kbart.getOnlineIdentifier() != null) {
if (kbart.getOnlineIdentifier() != null && !kbart.getOnlineIdentifier().isEmpty()) {
if ((Utils.getIsbnType(kbart.getOnlineIdentifier().toString()).equals(ISBN_TYPE.ISBN10))) {
noticeElec.addZone("010", "$a", Utils.addHyphensToIsbn(kbart.getOnlineIdentifier().toString()));
} else {
Expand Down

0 comments on commit 0afde38

Please sign in to comment.