wipo-gbd-transformation 1.1.79__py3-none-any.whl → 1.1.80__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.

@@ -137,3 +137,22 @@ def clean_app_reg_number(app_num):
137
137
  if not app_num[:1].isdigit():
138
138
  app_num = app_num[1:]
139
139
  return app_num
140
+
141
+ def get_publication_date(publications):
142
+ # in the publication information, in case:
143
+ # PublicationSection == "Registration"
144
+ # the associated PublicationDate is the publicationDate
145
+ if publications == None:
146
+ return None
147
+ if isinstance(publications, list):
148
+ for publication in publications:
149
+ if 'PublicationSection' in publication and publication['PublicationSection'] == 'Registration':
150
+ if 'PublicationDate' in publication:
151
+ return publication['PublicationDate']
152
+ else:
153
+ if "Publication" in publications:
154
+ publication = publications["Publication"]
155
+ if 'PublicationSection' in publication and publication['PublicationSection'] == 'Registration':
156
+ if 'PublicationDate' in publication:
157
+ return publication['PublicationDate']
158
+ return None
@@ -21,6 +21,8 @@ applicationLanguageCode: {{ TradeMark.ApplicationLanguageCode }}
21
21
  officeStatus: {{ TradeMark.MarkCurrentStatusCode }}
22
22
  statusDate: {{ TradeMark.MarkCurrentStatusDate | convertdate('%Y-%m-%d') }}
23
23
 
24
+ publicationDate: {{ TradeMark.PublicationDetails | get_publication_date | convertdate('%Y-%m-%d')}}
25
+
24
26
  expiryDate: {{ TradeMark.ExpiryDate | convertdate('%Y-%m-%d') }}
25
27
 
26
28
  markDisclaimerDetails:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: wipo-gbd-transformation
3
- Version: 1.1.79
3
+ Version: 1.1.80
4
4
  Summary: GBD XML ETL package
5
5
  Home-page: https://github.com/GBD-Wipo/xmlE
6
6
  Author: WIPO GDB team
@@ -150,9 +150,9 @@ gbdtransformation/brands/gstm/filters.py,sha256=QGOXTX5HsoOoxfY9a31adtujzOS7C0KQ
150
150
  gbdtransformation/brands/gstm/template.gs.yml,sha256=tQOXTIpmurgytddfqyWvKuCx-7K6ZxALMGXLn0mjg0s,1711
151
151
  gbdtransformation/brands/gstm/template.yml,sha256=INQBe908BttDal83tMEXkpAOTasJ0vo5Myl_kFuatR8,1000
152
152
  gbdtransformation/brands/hrtm/__init__.py,sha256=UHmbQDIPDdApISBKfO9tKOX6LgUQ_Ib-IVMR5kCVMTY,86
153
- gbdtransformation/brands/hrtm/filters.py,sha256=jFQvK41R17Rdl5xBzGXmK-M0u0EVp81AhrfJSicMrkY,4340
153
+ gbdtransformation/brands/hrtm/filters.py,sha256=QYkXkWS4F-Hvs1JgMUBDD69pe6OBCdft04dOGH8O5Rk,5220
154
154
  gbdtransformation/brands/hrtm/schema,sha256=7jQ-PC0VTx5NZ79Qf8xAZEX8sqFSUtjPwsvVYV8XZAs,1376
155
- gbdtransformation/brands/hrtm/template.yml,sha256=pMwur5_WPSWtQQb6-nhu9MjtF47sxvvaA36a2VDLsEY,9543
155
+ gbdtransformation/brands/hrtm/template.yml,sha256=dzgqIyM9tKHEiVJswxbw2eWyDo4nNRnN2Aj8awKsg9U,9644
156
156
  gbdtransformation/brands/idtm/__init__.py,sha256=MBVFGkMlqAi-s2ur7pCLYe2uxtjIxx9n9wo2bpESvxU,311
157
157
  gbdtransformation/brands/idtm/filters.py,sha256=HbcLmB9KTBFjLwHJdkJmM-u5wdE2JmxlqJvlSz1cTKk,3018
158
158
  gbdtransformation/brands/idtm/schema,sha256=TFrF4FR76cytcbtQkDWxtF74I0tCPRDIvWRFeqaJt6Q,3242
@@ -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.79.dist-info/LICENSE.md,sha256=6r2dL13EwZqSt2ellLbJRFTA-6ECIDOer4YthCfkac0,35654
589
- wipo_gbd_transformation-1.1.79.dist-info/METADATA,sha256=M538k3cZRwBsMXVlKEKGUZJ6AZ8pUKao5BRFboF7DAk,577
590
- wipo_gbd_transformation-1.1.79.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
591
- wipo_gbd_transformation-1.1.79.dist-info/entry_points.txt,sha256=NFLtlP3mPHUi-hEoUcz4CXa7vcpP8bbwd18HS4arbEk,223
592
- wipo_gbd_transformation-1.1.79.dist-info/top_level.txt,sha256=oU1j-JNLga18Fd-EV6Xl9wM8zxYoNVEzb7P8MDhTPJg,26
593
- wipo_gbd_transformation-1.1.79.dist-info/RECORD,,
588
+ wipo_gbd_transformation-1.1.80.dist-info/LICENSE.md,sha256=6r2dL13EwZqSt2ellLbJRFTA-6ECIDOer4YthCfkac0,35654
589
+ wipo_gbd_transformation-1.1.80.dist-info/METADATA,sha256=tP8Dr_GU9q6qN5vSQjK_uctibxLasvZTiUrmTJjxQO8,577
590
+ wipo_gbd_transformation-1.1.80.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
591
+ wipo_gbd_transformation-1.1.80.dist-info/entry_points.txt,sha256=NFLtlP3mPHUi-hEoUcz4CXa7vcpP8bbwd18HS4arbEk,223
592
+ wipo_gbd_transformation-1.1.80.dist-info/top_level.txt,sha256=oU1j-JNLga18Fd-EV6Xl9wM8zxYoNVEzb7P8MDhTPJg,26
593
+ wipo_gbd_transformation-1.1.80.dist-info/RECORD,,