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

@@ -151,4 +151,16 @@ def translate_licence_status(status):
151
151
  if status.lower() == 'valid': return 'Valid'
152
152
 
153
153
  return 'Other'
154
- #raise Exception('licence status "%s" is not mapped.' % status)
154
+ #raise Exception('licence status "%s" is not mapped.' % status)
155
+
156
+ def clean_vienna_class(the_class):
157
+ if the_class == None:
158
+ return None
159
+ if len(the_class) == 0:
160
+ return None
161
+ # remove trailing dot
162
+ if the_class.endswith("."):
163
+ the_class = the_class[:-1]
164
+ if len(the_class) == 0:
165
+ return None
166
+ return the_class
@@ -94,7 +94,7 @@ markImageDetails:
94
94
  code:
95
95
  {% call(viennaClass) match('viennaClassificationBag', markImage.markImageClassification.figurativeElementClassificationBag) %}
96
96
  {% call(viennaValue) match('viennaClassification', viennaClass) %}
97
- - {{ viennaValue.viennaCategory }}
97
+ - {{ viennaValue.viennaCategory | clean_vienna_class }}
98
98
  {% endcall %}
99
99
  {% endcall %}
100
100
  {% endif %}
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: wipo-gbd-transformation
3
- Version: 1.1.77
3
+ Version: 1.1.78
4
4
  Summary: GBD XML ETL package
5
5
  Home-page: https://github.com/GBD-Wipo/xmlE
6
6
  Author: WIPO GDB team
@@ -297,8 +297,8 @@ gbdtransformation/brands/natm/schema,sha256=TFrF4FR76cytcbtQkDWxtF74I0tCPRDIvWRF
297
297
  gbdtransformation/brands/natm/template.yml,sha256=PO7s1HDQM9ushIJuIX3z_dfWO-f62YDzBG_sYKDlnG8,34
298
298
  gbdtransformation/brands/natm/tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
299
299
  gbdtransformation/brands/notm/__init__.py,sha256=YRZPymjJv7V5vqjphBN1UOHZ3RL1oeYYqaOI6AKInl0,88
300
- gbdtransformation/brands/notm/filters.py,sha256=hFVIsTFyO41QGS98JqVlg0J16A0mg9Hw5rH48kW7pYc,5518
301
- gbdtransformation/brands/notm/template.yml,sha256=SE9mcE3VxgOErmJPssTXkLeKuDRrajVMYG_Zvdef9sM,10135
300
+ gbdtransformation/brands/notm/filters.py,sha256=KNc0PXlUgKm3SRhKGn0SUHJ_Zg2YvIvfQZnP8qoARzc,5811
301
+ gbdtransformation/brands/notm/template.yml,sha256=iNPRI1DSe7LKzt-jFHNcd2DBeo-0yGd-xr1nZK9pYL0,10156
302
302
  gbdtransformation/brands/nztm/__init__.py,sha256=UHmbQDIPDdApISBKfO9tKOX6LgUQ_Ib-IVMR5kCVMTY,86
303
303
  gbdtransformation/brands/nztm/filters.py,sha256=dAjrg03Yq37H10oAM8rnAMNa71lZHuG1uMwHi25kIvA,4211
304
304
  gbdtransformation/brands/nztm/schema,sha256=tpcyNMtmiBQQ0FsxKKTASRSo4nbrw0j0_b1nhELyAzE,6355
@@ -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.77.dist-info/LICENSE.md,sha256=6r2dL13EwZqSt2ellLbJRFTA-6ECIDOer4YthCfkac0,35654
589
- wipo_gbd_transformation-1.1.77.dist-info/METADATA,sha256=UcDXShGJZ47hV1I4RKR52q6FvHP1wE2wc-tdS8diHNI,577
590
- wipo_gbd_transformation-1.1.77.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
591
- wipo_gbd_transformation-1.1.77.dist-info/entry_points.txt,sha256=NFLtlP3mPHUi-hEoUcz4CXa7vcpP8bbwd18HS4arbEk,223
592
- wipo_gbd_transformation-1.1.77.dist-info/top_level.txt,sha256=oU1j-JNLga18Fd-EV6Xl9wM8zxYoNVEzb7P8MDhTPJg,26
593
- wipo_gbd_transformation-1.1.77.dist-info/RECORD,,
588
+ wipo_gbd_transformation-1.1.78.dist-info/LICENSE.md,sha256=6r2dL13EwZqSt2ellLbJRFTA-6ECIDOer4YthCfkac0,35654
589
+ wipo_gbd_transformation-1.1.78.dist-info/METADATA,sha256=Wp9ill2T_9x9nSybXeWrIk4OUZP-z96JkI_E13Fgpns,577
590
+ wipo_gbd_transformation-1.1.78.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
591
+ wipo_gbd_transformation-1.1.78.dist-info/entry_points.txt,sha256=NFLtlP3mPHUi-hEoUcz4CXa7vcpP8bbwd18HS4arbEk,223
592
+ wipo_gbd_transformation-1.1.78.dist-info/top_level.txt,sha256=oU1j-JNLga18Fd-EV6Xl9wM8zxYoNVEzb7P8MDhTPJg,26
593
+ wipo_gbd_transformation-1.1.78.dist-info/RECORD,,