Skip to content

Commit

Permalink
- Modification utilisation accescbs pour récupération correcte du typ…
Browse files Browse the repository at this point in the history
…e de document
  • Loading branch information
jvk88511334 committed Oct 22, 2024
1 parent 523648b commit 680f8c7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ public String getTypeDocumentFromPpn(String ppn) throws CBSException, IOExceptio
case 0 -> throw new QueryToSudocException(Constant.ERR_FILE_NOTICE_NOT_FOUND);
case 1 -> {
NoticeConcrete notice = traitementService.getCbs().editerNoticeConcrete("1");
yield notice.findZone("008", 0).getValeur().substring(0,2);
yield notice.getNoticeBiblio().findZone("008", 0).findSubLabel("$a").substring(0,2);
}
default -> throw new QueryToSudocException(Constant.ERR_FILE_MULTIPLES_NOTICES_FOUND + traitementService.getCbs().getListePpn());
};
Expand Down

0 comments on commit 680f8c7

Please sign in to comment.