wipo-gbd-transformation 1.1.84__py3-none-any.whl → 1.1.85__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of wipo-gbd-transformation might be problematic. Click here for more details.

@@ -176,16 +176,31 @@ def get_applicants(owners, status):
176
176
  if(owner.get('add%s' % i)):
177
177
  adrlines.append(owner['add%s' % i].replace(';', ''))
178
178
 
179
+ address_str = ', '.join(adrlines)
180
+ address_str = address_str.replace(",,", ",")
181
+ if address_str.endswith(","):
182
+ address_str = address_str[:-1]
183
+
184
+ if len(address_str.strip()) == 0:
185
+ address_str = None
186
+
179
187
  city = []
188
+ city_str = None
189
+ postCode_str = None
180
190
  if owner.postCode:
181
191
  city.append(owner.postCode)
192
+ postCode_str = owner.postCode
182
193
  if owner.city:
183
194
  city.append(owner.city)
195
+ city_str = owner.city
184
196
 
185
197
  if len(city):
186
198
  adrlines.append(' '.join(city))
199
+
200
+ state_str = None
187
201
  if owner.state:
188
202
  adrlines.append(owner.state)
203
+ state_str = owner.state
189
204
 
190
205
  address = '; '.join(adrlines)
191
206
 
@@ -197,7 +212,11 @@ def get_applicants(owners, status):
197
212
  'kind': 'Natural Person' if owner.entType == '01' else 'Legal Entity',
198
213
  'name': owner.partyName,
199
214
  'address': address,
200
- 'country': country
215
+ 'country': country,
216
+ 'city': city_str,
217
+ 'postCode': postCode_str,
218
+ 'addressLines': address_str,
219
+ 'state': state_str
201
220
  })
202
221
 
203
222
  return applicants
@@ -137,15 +137,40 @@ publications:
137
137
  {% set applicants = file.owners.owner | get_applicants(status['gbd']) %}
138
138
  applicants:
139
139
  {% for applicant in applicants %}
140
- - kind: {{ applicant.kind }}
140
+ - identifier:
141
+ kind: {{ applicant.kind }}
141
142
  fullName:
142
143
  - languageCode: en
143
144
  text: {{ applicant.name }}
145
+ firstName:
146
+ - languageCode:
147
+ text:
148
+ lastName:
149
+ - languageCode:
150
+ text:
151
+ middleName:
152
+ - languageCode:
153
+ text:
154
+ organizationName:
155
+ - languageCode:
156
+ text:
144
157
  fullAddress:
145
158
  - languageCode: en
146
159
  text: {{ applicant.address }}
160
+ detailedAddress:
161
+ - languageCode: en
162
+ text: {{ applicant.addressLines }}
163
+ cityName: {{ applicant.city }}
164
+ geographicRegionName: {{ applicant.state }}
165
+ postalCode: {{ applicant.postCode }}
166
+ countryCode: {{ applicant.country }}
167
+ contact:
168
+ phone:
169
+ fax:
170
+ email:
171
+ url:
147
172
  countryCode: {{ applicant.country }}
148
- {% endfor %}
173
+ {% endfor %}
149
174
 
150
175
  representatives:
151
176
  {% if file.head.attName %}
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: wipo-gbd-transformation
3
- Version: 1.1.84
3
+ Version: 1.1.85
4
4
  Summary: GBD XML ETL package
5
5
  Home-page: https://github.com/GBD-Wipo/xmlE
6
6
  Author: WIPO GDB team
@@ -408,9 +408,9 @@ gbdtransformation/brands/uatm/filters.py,sha256=Er8L7T5If-2s_oDZIhgIpUKBTHR9gN1Z
408
408
  gbdtransformation/brands/uatm/schema,sha256=xyi3dhfyhzwFzeNA4vl5CZ_3FGNm6kcePHQt4Nd_qWM,4318
409
409
  gbdtransformation/brands/uatm/template.yml,sha256=7E7Q9HUg8aFdiwzpYYqB0LIWbkG_zkRh8mGVpk7fL6k,5974
410
410
  gbdtransformation/brands/ustm/__init__.py,sha256=nAKYGg8pFwhesOakhSSbHADYx422ODF73hEIjbswwOw,9731
411
- gbdtransformation/brands/ustm/filters.py,sha256=_-Fk0jN3es5yr8AtRjYUXZ9ZTqmKMaJZrTAwQsPiJGw,5978
411
+ gbdtransformation/brands/ustm/filters.py,sha256=G6M2DHBnQUnBBK6gDYUXcTJ-dAe3AKILayaOXkFXfbA,6624
412
412
  gbdtransformation/brands/ustm/schema,sha256=7vcbDMFy76nAxZ5dRjssbOhHNFOqVIlVldrNssBB1Mc,133581
413
- gbdtransformation/brands/ustm/template.yml,sha256=btWlXhetvAFnng9IFMi264ZgXur2KRl_7er1GYGFt-8,5033
413
+ gbdtransformation/brands/ustm/template.yml,sha256=0stb2cq5WpWeeRwFO7o3cd1yq1KlQQiNI__ORcYPmt8,5592
414
414
  gbdtransformation/brands/uytm/__init__.py,sha256=UHmbQDIPDdApISBKfO9tKOX6LgUQ_Ib-IVMR5kCVMTY,86
415
415
  gbdtransformation/brands/uytm/filters.py,sha256=i7SBMVTF70OERVdsS3Dfv19S3-9kyxE-y4aYA59YxA4,1976
416
416
  gbdtransformation/brands/uytm/schema,sha256=uMd1E_XRVQ_wHVrGq5fqFH6Fyg8cWx2DTQbVvH8tmmA,3730
@@ -585,9 +585,9 @@ gbdtransformation/utilities/st66.xsd,sha256=co8aFN3a5TpudllRttWmfLeiZu8ulNipfeXm
585
585
  schemas/ShazamConfig.py,sha256=D67os5B11C41h_WZ7kk54Ss0Kk7tHh8W0d_1c_aX-lY,1191
586
586
  schemas/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
587
587
  schemas/schema_extractor.py,sha256=3-ImtnI777f6b3VA0A_w-NoXdlGz5VZMzK6MnPdQQAY,10294
588
- wipo_gbd_transformation-1.1.84.dist-info/LICENSE.md,sha256=6r2dL13EwZqSt2ellLbJRFTA-6ECIDOer4YthCfkac0,35654
589
- wipo_gbd_transformation-1.1.84.dist-info/METADATA,sha256=v0jD6sQSUrdlPctbdJPhaAyCEMHj5yAAVkWY3CwYKjM,577
590
- wipo_gbd_transformation-1.1.84.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
591
- wipo_gbd_transformation-1.1.84.dist-info/entry_points.txt,sha256=NFLtlP3mPHUi-hEoUcz4CXa7vcpP8bbwd18HS4arbEk,223
592
- wipo_gbd_transformation-1.1.84.dist-info/top_level.txt,sha256=oU1j-JNLga18Fd-EV6Xl9wM8zxYoNVEzb7P8MDhTPJg,26
593
- wipo_gbd_transformation-1.1.84.dist-info/RECORD,,
588
+ wipo_gbd_transformation-1.1.85.dist-info/LICENSE.md,sha256=6r2dL13EwZqSt2ellLbJRFTA-6ECIDOer4YthCfkac0,35654
589
+ wipo_gbd_transformation-1.1.85.dist-info/METADATA,sha256=kFsgOB9r1aCuM4Gz5hzWG3h7a6OlmX2cNuB0nZ67NYc,577
590
+ wipo_gbd_transformation-1.1.85.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
591
+ wipo_gbd_transformation-1.1.85.dist-info/entry_points.txt,sha256=NFLtlP3mPHUi-hEoUcz4CXa7vcpP8bbwd18HS4arbEk,223
592
+ wipo_gbd_transformation-1.1.85.dist-info/top_level.txt,sha256=oU1j-JNLga18Fd-EV6Xl9wM8zxYoNVEzb7P8MDhTPJg,26
593
+ wipo_gbd_transformation-1.1.85.dist-info/RECORD,,