From 680f8c7a7295ef5f3d05ef4cea18bff2a2969811 Mon Sep 17 00:00:00 2001 From: Jerome Villiseck Date: Tue, 22 Oct 2024 16:51:06 +0200 Subject: [PATCH] =?UTF-8?q?-=20Modification=20utilisation=20accescbs=20pou?= =?UTF-8?q?r=20r=C3=A9cup=C3=A9ration=20correcte=20du=20type=20de=20docume?= =?UTF-8?q?nt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/fr/abes/item/core/service/impl/DemandeSuppService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/fr/abes/item/core/service/impl/DemandeSuppService.java b/core/src/main/java/fr/abes/item/core/service/impl/DemandeSuppService.java index e0f24570..0e94d0df 100644 --- a/core/src/main/java/fr/abes/item/core/service/impl/DemandeSuppService.java +++ b/core/src/main/java/fr/abes/item/core/service/impl/DemandeSuppService.java @@ -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()); };