From 6446a16a6697c3195910bad9060bb2411d60a442 Mon Sep 17 00:00:00 2001 From: Kolea PLESCO Date: Tue, 9 Apr 2024 12:22:23 +0300 Subject: [PATCH] updates xpath validator --- ted_sws/notice_packager/services/metadata_transformer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ted_sws/notice_packager/services/metadata_transformer.py b/ted_sws/notice_packager/services/metadata_transformer.py index cf08db01..59d87f52 100644 --- a/ted_sws/notice_packager/services/metadata_transformer.py +++ b/ted_sws/notice_packager/services/metadata_transformer.py @@ -144,4 +144,4 @@ def publication_work_oj_identifier(notice_id, notice_metadata): def filled_ojs_issue_number(ojs_issue_number: str) -> str: # just return the number without any preceding 0 (leaved the formula as it is in case of revert) - return ojs_issue_number.zfill(0) + return ojs_issue_number.split('/')[0].zfill(0)