@@ -14,7 +14,7 @@ Vue.component('ESPDdownload',{
1414
1515 methods :{
1616 exportExample ( ) {
17- let schemeVersionID = window . espd_doc . espd_version . substring ( 1 )
17+ let schemeVersionID = window . espd_doc . espd_version . substring ( 1 )
1818 //ESPD Request
1919 if ( window . espd_doc . role == 'ca' ) {
2020 window . espd_request = xmlbuilder2 . create ( {
@@ -49,7 +49,7 @@ Vue.component('ESPDdownload',{
4949 . com ( ' The version of the content of this document. If the document is modified the element cbc:PreviousVersionID should be instantiated ' )
5050 . ele ( '@cbc' , 'VersionID' , { 'schemeAgencyID' : 'OP' , 'schemeVersionID' : schemeVersionID } ) . txt ( schemeVersionID ) . up ( )
5151 . com ( ' The type of the procurement procedure; this information is provided by eForms and the concret notice per procedure. e.g. open = In open procedures any interested economic operator may submit a tender in response to a call for competition. ' )
52- . ele ( '@cbc' , 'ProcedureCode' , { "listID" : "Dummy_procurement-procedure-type" , "listAgencyID" : "OP" , "listVersionID" : "yyyymmdd-0" } ) . txt ( 'Open' ) . up ( )
52+ . ele ( '@cbc' , 'ProcedureCode' , code_list_version [ schemeVersionID ] . procedure_code ) . txt ( 'Open' ) . up ( )
5353
5454 window . espd_request . ele ( '@cac' , 'ContractingParty' )
5555 . ele ( '@cbc' , 'BuyerProfileURI' ) . txt ( window . espd_doc . publication . OJS_URL ?? 'DV' ) . up ( )
@@ -67,7 +67,7 @@ Vue.component('ESPDdownload',{
6767 . ele ( '@cbc' , 'CityName' ) . txt ( window . espd_doc . procurer . city ?? 'DV' ) . up ( )
6868 . ele ( '@cbc' , 'PostalZone' ) . txt ( window . espd_doc . procurer . postcode ?? 'DV' ) . up ( )
6969 . ele ( '@cac' , 'Country' )
70- . ele ( '@cbc' , 'IdentificationCode' , { 'listID' : "http://publications.europa.eu/resource/authority/ country" , 'listAgencyID' : "ISO" , 'listVersionID' : "20220928-0" } ) . txt ( window . espd_doc . procurer . country ?? 'EU' ) . up ( )
70+ . ele ( '@cbc' , 'IdentificationCode' , code_list_version [ schemeVersionID ] . country ) . txt ( window . espd_doc . procurer . country ?? 'EU' ) . up ( )
7171 . up ( )
7272 . up ( )
7373 . ele ( '@cac' , 'Contact' )
@@ -85,13 +85,13 @@ Vue.component('ESPDdownload',{
8585 //add lots here cac:ProcurementProjectLot
8686 for ( let index = 1 ; index <= window . espd_doc . procedure . number_of_lots ; index ++ ) {
8787 window . espd_request . ele ( '@cac' , 'ProcurementProjectLot' )
88- . ele ( '@cbc' , 'ID' , { 'schemeID' : "Criterion" , 'schemeAgencyID' :"OP" , 'schemeVersionID' :schemeVersionID } ) . txt ( `LOT-${ index . toString ( ) . padStart ( 4 , "0" ) } ` ) . up ( )
88+ . ele ( '@cbc' , 'ID' , { 'schemeID' :"Criterion" , 'schemeAgencyID' :"OP" , 'schemeVersionID' :schemeVersionID } ) . txt ( `LOT-${ index . toString ( ) . padStart ( 4 , "0" ) } ` ) . up ( )
8989 . up ( )
9090 }
9191
9292 render_request ( window . espd_model )
9393
94- download ( 'ESPD_Request .xml' , window . espd_request . end ( { prettyPrint : true } ) )
94+ download ( `ESPD_Request_v ${ schemeVersionID } .xml` , window . espd_request . end ( { prettyPrint : true } ) )
9595
9696 }
9797
@@ -129,7 +129,7 @@ Vue.component('ESPDdownload',{
129129 . com ( ' The version of the content of this document. If the document is modified the element cbc:PreviousVersionID should be instantiated ' )
130130 . ele ( '@cbc' , 'VersionID' , { 'schemeAgencyID' : 'OP' , 'schemeVersionID' : schemeVersionID } ) . txt ( schemeVersionID ) . up ( )
131131 . com ( ' The type of the procurement procedure; this information is provided by eForms and the concret notice per procedure. e.g. open = In open procedures any interested economic operator may submit a tender in response to a call for competition. ' )
132- . ele ( '@cbc' , 'ProcedureCode' , { "listID" : "Dummy_procurement-procedure-type" , "listAgencyID" : "OP" , "listVersionID" : "yyyymmdd-0" } ) . txt ( 'Open' ) . up ( )
132+ . ele ( '@cbc' , 'ProcedureCode' , code_list_version [ schemeVersionID ] . procedure_code ) . txt ( 'Open' ) . up ( )
133133
134134 window . espd_response . ele ( '@cac' , 'ContractingParty' )
135135 . ele ( '@cbc' , 'BuyerProfileURI' ) . txt ( window . espd_doc . publication . OJS_URL ?? 'DV' ) . up ( )
@@ -147,7 +147,7 @@ Vue.component('ESPDdownload',{
147147 . ele ( '@cbc' , 'CityName' ) . txt ( window . espd_doc . procurer . city ?? 'DV' ) . up ( )
148148 . ele ( '@cbc' , 'PostalZone' ) . txt ( window . espd_doc . procurer . postcode ?? 'DV' ) . up ( )
149149 . ele ( '@cac' , 'Country' )
150- . ele ( '@cbc' , 'IdentificationCode' , { 'listID' : "http://publications.europa.eu/resource/authority/ country" , 'listAgencyID' : "ISO" , 'listVersionID' : "20220928-0" } ) . txt ( window . espd_doc . procurer . country ?? 'EU' ) . up ( )
150+ . ele ( '@cbc' , 'IdentificationCode' , code_list_version [ schemeVersionID ] . country ) . txt ( window . espd_doc . procurer . country ?? 'EU' ) . up ( )
151151 . up ( )
152152 . up ( )
153153 . ele ( '@cac' , 'Contact' )
@@ -160,11 +160,11 @@ Vue.component('ESPDdownload',{
160160
161161 window . espd_response . ele ( '@cac' , 'EconomicOperatorParty' )
162162 . ele ( '@cac' , 'EconomicOperatorRole' )
163- . ele ( '@cbc' , 'RoleCode' , { 'listID' : "http://publications.europa.eu/resource/authority/eo-role-type" , 'listAgencyID' : "OP" , 'listVersionID' : "20211208-0" } ) . txt ( 'group-mem' ) . up ( )
163+ . ele ( '@cbc' , 'RoleCode' , code_list_version [ schemeVersionID ] . eo_role_type ) . txt ( 'group-mem' ) . up ( )
164164 . up ( )
165165 . ele ( '@cac' , 'Party' )
166166 . ele ( '@cbc' , 'WebsiteURI' ) . txt ( 'https://www.ProcurerWebsite.eu' ) . up ( )
167- . ele ( '@cbc' , 'IndustryClassificationCode' , { 'listID' : "http://publications.europa.eu/resource/authority/economic-operator-size" , 'listAgencyID' : "OP" , 'listVersionID' : "20220316-0" } ) . txt ( 'sme' ) . up ( )
167+ . ele ( '@cbc' , 'IndustryClassificationCode' , code_list_version [ schemeVersionID ] . economic_operator_size ) . txt ( 'sme' ) . up ( )
168168 . ele ( '@cac' , 'PartyIdentification' )
169169 . ele ( '@cbc' , 'ID' , { 'schemeAgencyID' : "OP" } ) . txt ( 'AD123456789' ) . up ( )
170170 . up ( )
@@ -176,7 +176,7 @@ Vue.component('ESPDdownload',{
176176 . ele ( '@cbc' , 'CityName' ) . txt ( '__ProcurerCity__' ) . up ( )
177177 . ele ( '@cbc' , 'PostalZone' ) . txt ( '12345' ) . up ( )
178178 . ele ( '@cac' , 'Country' )
179- . ele ( '@cbc' , 'IdentificationCode' , { 'listID' : "http://publications.europa.eu/resource/authority/ country" , 'listAgencyID' : "ISO" , 'listName' : "country" , 'listVersionID' : "20220928-0" } ) . txt ( 'BEL' ) . up ( )
179+ . ele ( '@cbc' , 'IdentificationCode' , code_list_version [ schemeVersionID ] . country ) . txt ( 'BEL' ) . up ( )
180180 . up ( )
181181 . up ( )
182182 . ele ( '@cac' , 'Contact' )
@@ -211,7 +211,7 @@ Vue.component('ESPDdownload',{
211211 //Create evidence
212212 window . espd_response . ele ( '@cac' , 'Evidence' )
213213 . ele ( '@cbc' , 'ID' , { 'schemeAgencyID' : "XXXAGENCYXXX" } ) . txt ( 'EVIDENCE-001' ) . up ( )
214- . ele ( '@cbc' , 'ConfidentialityLevelCode' , { 'listID' : "http://publications.europa.eu/resource/authority/access-right" , 'listAgencyID' : "OP" , 'listVersionID' : "20220316-0" } ) . txt ( 'CONFIDENTIAL' ) . up ( )
214+ . ele ( '@cbc' , 'ConfidentialityLevelCode' , code_list_version [ schemeVersionID ] . access_right ) . txt ( 'CONFIDENTIAL' ) . up ( )
215215 . ele ( '@cac' , 'DocumentReference' )
216216 . ele ( '@cbc' , 'ID' , { 'schemeAgencyID' : "XXXAGENCYXXX" } ) . txt ( 'SAT-11121233' ) . up ( )
217217 . ele ( '@cac' , 'Attachment' )
@@ -229,7 +229,7 @@ Vue.component('ESPDdownload',{
229229 . up ( )
230230 . up ( )
231231
232- download ( 'ESPD_Response .xml' , window . espd_response . end ( { prettyPrint : true } ) )
232+ download ( `ESPD_Response_v ${ schemeVersionID } .xml` , window . espd_response . end ( { prettyPrint : true } ) )
233233 }
234234 }
235235 } ,
0 commit comments