wipo-gbd-transformation 1.1.47__py3-none-any.whl → 1.1.59__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.
- gbdtransformation/brands/attm/template.yml +1 -2
- gbdtransformation/brands/bgtm/template.yml +1 -1
- gbdtransformation/brands/catm/filters.py +2 -1
- gbdtransformation/brands/catm/template.yml +10 -6
- gbdtransformation/brands/chtm/filters.py +159 -181
- gbdtransformation/brands/chtm/schema +79 -91
- gbdtransformation/brands/chtm/template.yml +97 -106
- gbdtransformation/brands/eetm/template.yml +1 -1
- gbdtransformation/brands/emtm/template.yml +1 -1
- gbdtransformation/brands/estm/template.yml +1 -1
- gbdtransformation/brands/frtm/template.yml +1 -1
- gbdtransformation/brands/gdtm/__init__.py +5 -0
- gbdtransformation/brands/gdtm/filters.py +61 -0
- gbdtransformation/brands/gdtm/schema +87 -0
- gbdtransformation/brands/gdtm/template.yml +1 -0
- gbdtransformation/brands/gdtm/tests/__init__.py +0 -0
- gbdtransformation/brands/istm/filters.py +21 -14
- gbdtransformation/brands/istm/template.yml +1 -1
- gbdtransformation/brands/krtm/template.yml +1 -1
- gbdtransformation/brands/lktm/__init__.py +5 -0
- gbdtransformation/brands/lktm/filters.py +83 -0
- gbdtransformation/brands/lktm/schema +87 -0
- gbdtransformation/brands/lktm/template.yml +1 -0
- gbdtransformation/brands/lktm/tests/__init__.py +0 -0
- gbdtransformation/brands/natm/__init__.py +2 -3
- gbdtransformation/brands/natm/filters.py +8 -2
- gbdtransformation/brands/notm/__init__.py +5 -0
- gbdtransformation/brands/notm/filters.py +113 -0
- gbdtransformation/brands/notm/template.yml +152 -0
- gbdtransformation/brands/nztm/template.yml +1 -1
- gbdtransformation/brands/phtm/schema +79 -50
- gbdtransformation/brands/phtm/schema.classic +50 -0
- gbdtransformation/brands/phtm/template.classic.yml +102 -0
- gbdtransformation/brands/phtm/template.yml +1 -102
- gbdtransformation/brands/qatm/__init__.py +5 -0
- gbdtransformation/brands/qatm/filters.py +81 -0
- gbdtransformation/brands/qatm/schema +87 -0
- gbdtransformation/brands/qatm/template.yml +1 -0
- gbdtransformation/brands/qatm/tests/__init__.py +0 -0
- gbdtransformation/brands/sgtm/filters.py +1 -1
- gbdtransformation/brands/sgtm/template.trademark.yml +2 -2
- gbdtransformation/brands/ustm/template.yml +1 -1
- gbdtransformation/brands/vctm/__init__.py +5 -0
- gbdtransformation/brands/vctm/filters.py +75 -0
- gbdtransformation/brands/vctm/schema +87 -0
- gbdtransformation/brands/vctm/template.yml +1 -0
- gbdtransformation/brands/vctm/tests/__init__.py +0 -0
- gbdtransformation/brands/vntm/filters.py +1 -3
- gbdtransformation/brands/xxxx/template.yml +1 -1
- gbdtransformation/designs/__init__.py +8 -0
- gbdtransformation/designs/alid/__init__.py +1 -1
- gbdtransformation/designs/alid/filters.py +14 -1
- gbdtransformation/designs/bnid/__init__.py +5 -0
- gbdtransformation/designs/bnid/filters.py +61 -0
- gbdtransformation/designs/bnid/schema +80 -0
- gbdtransformation/designs/bnid/template.yml +1 -0
- gbdtransformation/designs/bwid/__init__.py +6 -0
- gbdtransformation/designs/bwid/filters.py +64 -0
- gbdtransformation/designs/bwid/schema +101 -0
- gbdtransformation/designs/bwid/template.yml +1 -0
- gbdtransformation/designs/crid/__init__.py +5 -0
- gbdtransformation/designs/crid/filters.py +63 -0
- gbdtransformation/designs/crid/schema +94 -0
- gbdtransformation/designs/crid/template.yml +1 -0
- gbdtransformation/designs/cuid/__init__.py +5 -0
- gbdtransformation/designs/cuid/filters.py +60 -0
- gbdtransformation/designs/cuid/schema +98 -0
- gbdtransformation/designs/cuid/template.yml +1 -0
- gbdtransformation/designs/egid/__init__.py +5 -0
- gbdtransformation/designs/egid/filters.py +62 -0
- gbdtransformation/designs/egid/schema +82 -0
- gbdtransformation/designs/egid/template.yml +1 -0
- gbdtransformation/designs/filters.py +73 -0
- gbdtransformation/designs/idid/__init__.py +5 -0
- gbdtransformation/designs/idid/filters.py +67 -0
- gbdtransformation/designs/idid/schema +102 -0
- gbdtransformation/designs/idid/template.yml +1 -0
- gbdtransformation/designs/ipas/filters.py +84 -2
- gbdtransformation/designs/ipas/template.yml +90 -79
- gbdtransformation/designs/joid/__init__.py +6 -0
- gbdtransformation/designs/joid/filters.py +62 -0
- gbdtransformation/designs/joid/schema +97 -0
- gbdtransformation/designs/joid/template.yml +1 -0
- gbdtransformation/designs/keid/__init__.py +5 -0
- gbdtransformation/designs/keid/filters.py +62 -0
- gbdtransformation/designs/keid/schema +99 -0
- gbdtransformation/designs/keid/template.yml +1 -0
- gbdtransformation/designs/khid/__init__.py +5 -0
- gbdtransformation/designs/khid/filters.py +63 -0
- gbdtransformation/designs/khid/schema +100 -0
- gbdtransformation/designs/khid/template.yml +1 -0
- gbdtransformation/designs/laid/__init__.py +5 -0
- gbdtransformation/designs/laid/filters.py +61 -0
- gbdtransformation/designs/laid/schema +94 -0
- gbdtransformation/designs/laid/template.yml +1 -0
- gbdtransformation/designs/mnid/__init__.py +6 -0
- gbdtransformation/designs/mnid/filters.py +62 -0
- gbdtransformation/designs/mnid/schema +98 -0
- gbdtransformation/designs/mnid/template.yml +1 -0
- gbdtransformation/designs/myid/__init__.py +5 -0
- gbdtransformation/designs/myid/filters.py +60 -0
- gbdtransformation/designs/myid/schema +95 -0
- gbdtransformation/designs/myid/template.yml +1 -0
- gbdtransformation/designs/phid/__init__.py +5 -0
- gbdtransformation/designs/phid/filters.py +70 -0
- gbdtransformation/designs/phid/schema +95 -0
- gbdtransformation/designs/phid/template.yml +1 -0
- gbdtransformation/designs/sgid/__init__.py +6 -0
- gbdtransformation/designs/sgid/filters.py +66 -0
- gbdtransformation/designs/sgid/schema +115 -0
- gbdtransformation/designs/sgid/template.yml +1 -0
- gbdtransformation/designs/thid/__init__.py +4 -0
- gbdtransformation/designs/thid/filters.py +64 -0
- gbdtransformation/designs/thid/schema +98 -0
- gbdtransformation/designs/thid/template.yml +1 -0
- gbdtransformation/designs/tnid/__init__.py +5 -0
- gbdtransformation/designs/tnid/filters.py +66 -0
- gbdtransformation/designs/tnid/schema +96 -0
- gbdtransformation/designs/tnid/template.yml +1 -0
- gbdtransformation/designs/vnid/__init__.py +5 -0
- gbdtransformation/designs/vnid/filters.py +62 -0
- gbdtransformation/designs/vnid/schema +97 -0
- gbdtransformation/designs/vnid/template.yml +1 -0
- gbdtransformation/designs/woid/__init__.py +2 -0
- gbdtransformation/designs/woid/filters.py +372 -0
- gbdtransformation/designs/woid/schema +592 -0
- gbdtransformation/designs/woid/template.yml +516 -0
- gbdtransformation/designs/xxid/template.yml +331 -119
- gbdtransformation/execs-nico.py +709 -0
- gbdtransformation/execs.py +55 -4
- gbdtransformation/gbd-transform.exec.tgz +0 -0
- {wipo_gbd_transformation-1.1.47.dist-info → wipo_gbd_transformation-1.1.59.dist-info}/METADATA +4 -1
- {wipo_gbd_transformation-1.1.47.dist-info → wipo_gbd_transformation-1.1.59.dist-info}/RECORD +138 -38
- wipo_gbd_transformation-1.1.59.dist-info/SOURCES_Stefans-Mac-Studio.local_Sep-18-063455-2024_Conflict.txt +690 -0
- {wipo_gbd_transformation-1.1.47.dist-info → wipo_gbd_transformation-1.1.59.dist-info}/entry_points.txt +1 -0
- {wipo_gbd_transformation-1.1.47.dist-info → wipo_gbd_transformation-1.1.59.dist-info}/LICENSE.md +0 -0
- {wipo_gbd_transformation-1.1.47.dist-info → wipo_gbd_transformation-1.1.59.dist-info}/WHEEL +0 -0
- {wipo_gbd_transformation-1.1.47.dist-info → wipo_gbd_transformation-1.1.59.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,516 @@
|
|
|
1
|
+
{% from 'navigation.tmpl' import match %}
|
|
2
|
+
|
|
3
|
+
type: 'DESIGN'
|
|
4
|
+
subtype: {{ HagueExpressTransaction | detectSealedDepositIndicator }}
|
|
5
|
+
designGrouping: 'MULTIPLE'
|
|
6
|
+
designsCount: {{ HagueExpressTransaction.HagueCurrent.HagueRegistration.DesignTotalQuantity }}
|
|
7
|
+
kind:
|
|
8
|
+
- 'Industrial Design'
|
|
9
|
+
registrationOfficeCode: 'WO'
|
|
10
|
+
designatedCountries:
|
|
11
|
+
{% call(designation) match('DesignatedCountry', HagueExpressTransaction.HagueCurrent.HagueRegistration.DesignatedCountryBag) %}
|
|
12
|
+
- {{ designation.DesignatedCountryCode }}
|
|
13
|
+
{% endcall %}
|
|
14
|
+
|
|
15
|
+
{% set ApplicationNumber = HagueExpressTransaction.HagueCurrent.HagueRegistration.ApplicationNumber.ApplicationNumberText %}
|
|
16
|
+
|
|
17
|
+
# in Hague records, there is no application date, sometimes an international filing date, otherwise just the internatioal registration date
|
|
18
|
+
{% set filingDate = HagueExpressTransaction.HagueCurrent.HagueRegistration.InternationalFilingDate %}
|
|
19
|
+
{% set registrationDate = HagueExpressTransaction.HagueCurrent.HagueRegistration.InternationalRegistrationDate %}
|
|
20
|
+
{% set appdate = filingDate if filingDate else registrationDate %}
|
|
21
|
+
|
|
22
|
+
# can be deduced from appnum given office cc and (optional) appdate
|
|
23
|
+
# note: we pass registration date when we don't have application or filing date, not rare with with Hague records
|
|
24
|
+
st13: {{ ApplicationNumber | st13(HagueExpressTransaction.HagueCurrent.HagueRegistration.InternationalRegistrationNumber, 'WO', 0, appdate=appdate) }}
|
|
25
|
+
|
|
26
|
+
applicationNumber: {{ ApplicationNumber }}
|
|
27
|
+
|
|
28
|
+
# assuming application date is the same as filing date (valid with Hague data)
|
|
29
|
+
applicationDate: {{ HagueExpressTransaction.HagueCurrent.HagueRegistration.InternationalFilingDate }}
|
|
30
|
+
|
|
31
|
+
# some collections have registration number
|
|
32
|
+
# equals application number when registered
|
|
33
|
+
registrationNumber: {{ HagueExpressTransaction.HagueCurrent.HagueRegistration.InternationalRegistrationNumber }}
|
|
34
|
+
# some collections we can guess registration date
|
|
35
|
+
# from event list
|
|
36
|
+
registrationDate: {{ HagueExpressTransaction.HagueCurrent.HagueRegistration.InternationalRegistrationDate }}
|
|
37
|
+
|
|
38
|
+
{% if HagueExpressTransaction.HagueCurrent.HagueRegistration.PublicationDate %}
|
|
39
|
+
publicationDates:
|
|
40
|
+
- {{ HagueExpressTransaction.HagueCurrent.HagueRegistration.PublicationDate }}
|
|
41
|
+
earliestPublicationDate: {{ HagueExpressTransaction.HagueCurrent.HagueRegistration.PublicationDate }}
|
|
42
|
+
{% else %}
|
|
43
|
+
publicationDates:
|
|
44
|
+
- {{ HagueExpressTransaction.HagueHistory[0].PublicationDate }}
|
|
45
|
+
earliestPublicationDate: {{ HagueExpressTransaction.HagueHistory[0].PublicationDate }}
|
|
46
|
+
{% endif %}
|
|
47
|
+
|
|
48
|
+
# In Hague, default deferment period is 30 months after priority date or application date,
|
|
49
|
+
# but it can be lower for some Hague contracting parties, so deferment expiry date is a good
|
|
50
|
+
# way to give this information, rather than period
|
|
51
|
+
defermentExpiryDate: {{ HagueExpressTransaction.HagueCurrent.HagueRegistration.DefermentExpiryDate }}
|
|
52
|
+
|
|
53
|
+
# a safety fix for expiry date not propagate to current
|
|
54
|
+
{% set hagueHistories = HagueExpressTransaction.HagueHistory %}
|
|
55
|
+
|
|
56
|
+
applicationLanguageCode: {{ HagueExpressTransaction.HagueCurrent.HagueRegistration.FilingLanguageCode }}
|
|
57
|
+
|
|
58
|
+
# include fix of expiry date not updated in the current
|
|
59
|
+
# expiry dates should normally be at the level of design, not whole application, because
|
|
60
|
+
# renewals are applied to affected designs, but at current level it would mean the latest expiry date of
|
|
61
|
+
# at least one design of the application
|
|
62
|
+
expiryDate: {{ HagueExpressTransaction.HagueCurrent.HagueRegistration.ExpiryDate | getExpiryDate(hagueHistories) }}
|
|
63
|
+
|
|
64
|
+
reference:
|
|
65
|
+
# officeReferenceIdentifier in Hague ST96 schema
|
|
66
|
+
office: {{ HagueExpressTransaction.HagueCurrent.HagueRegistration.OfficeReferenceIdentifier }}
|
|
67
|
+
|
|
68
|
+
applicants:
|
|
69
|
+
{% call(holder) match('Holder', HagueExpressTransaction.HagueCurrent.HagueRegistration.HolderBag) %}
|
|
70
|
+
- identifier:
|
|
71
|
+
|
|
72
|
+
{% if holder.Contact.Name.PersonName %}
|
|
73
|
+
kind: 'person'
|
|
74
|
+
fullName:
|
|
75
|
+
- languageCode: {{ HagueExpressTransaction.HagueCurrent.HagueRegistration.FilingLanguageCode }}
|
|
76
|
+
text: {{ holder.Contact.Name.PersonName.PersonStructuredName | build_person_name() }}
|
|
77
|
+
firstName:
|
|
78
|
+
- languageCode: {{ HagueExpressTransaction.HagueCurrent.HagueRegistration.FilingLanguageCode | should_display_language(holder.Contact.Name.PersonName.PersonStructuredName.FirstName) }}
|
|
79
|
+
text: {{ holder.Contact.Name.PersonName.PersonStructuredName.FirstName }}
|
|
80
|
+
lastName:
|
|
81
|
+
- languageCode: {{ HagueExpressTransaction.HagueCurrent.HagueRegistration.FilingLanguageCode | should_display_language(holder.Contact.Name.PersonName.PersonStructuredName.LastName) }}
|
|
82
|
+
text: {{ holder.Contact.Name.PersonName.PersonStructuredName.LastName }}
|
|
83
|
+
middleName:
|
|
84
|
+
- languageCode:
|
|
85
|
+
text:
|
|
86
|
+
{% endif %}
|
|
87
|
+
|
|
88
|
+
{% if holder.Contact.Name.OrganizationName %}
|
|
89
|
+
kind: 'organization'
|
|
90
|
+
fullName:
|
|
91
|
+
- languageCode: {{ HagueExpressTransaction.HagueCurrent.HagueRegistration.FilingLanguageCode }}
|
|
92
|
+
text: {{ holder.Contact.Name.OrganizationName.OrganizationStandardName }}
|
|
93
|
+
{% endif %}
|
|
94
|
+
fullAddress:
|
|
95
|
+
{% call(postalAddress) match('PostalAddress', holder.Contact.PostalAddressBag) %}
|
|
96
|
+
- languageCode: {{ HagueExpressTransaction.HagueCurrent.HagueRegistration.FilingLanguageCode }}
|
|
97
|
+
text: {{ postalAddress.PostalStructuredAddress | format_complete_address }}
|
|
98
|
+
addressLines: {{ postalAddress.PostalStructuredAddress.AddressLineText | format_address }}
|
|
99
|
+
cityName: {{ postalAddress.PostalStructuredAddress.CityName }}
|
|
100
|
+
geographicRegionName: {{ postalAddress.PostalStructuredAddress.GeographicRegionName }}
|
|
101
|
+
postalCode: {{ postalAddress.PostalStructuredAddress.PostalCode }}
|
|
102
|
+
countryCode: {{ postalAddress.PostalStructuredAddress.CountryCode }}
|
|
103
|
+
{% endcall %}
|
|
104
|
+
# new, addition
|
|
105
|
+
entitlement:
|
|
106
|
+
entitlementNationalityCode: {{ holder.Entitlement.EntitlementNationalityCode }}
|
|
107
|
+
entitlementEstablishment: {{ holder.Entitlement.EntitlementEstablishment.EntitlementEstablishmentCode }}
|
|
108
|
+
entitlementDomiciled: {{ holder.Entitlement.EntitlementDomiciled.EntitlementDomiciledCode }}
|
|
109
|
+
{% endcall %}
|
|
110
|
+
|
|
111
|
+
applicantsNormalized:
|
|
112
|
+
{% call(holder) match('HolderNormalized', HagueExpressTransaction.HagueCurrent.HagueRegistration.HolderBag) %}
|
|
113
|
+
- identifier:
|
|
114
|
+
|
|
115
|
+
{% set ns = namespace(kind='organization') %}
|
|
116
|
+
{% call(name) match('Name', holder.Contact) %}
|
|
117
|
+
{% if name.PersonName %}
|
|
118
|
+
{% set ns.kind = 'person' %}
|
|
119
|
+
{% endif %}
|
|
120
|
+
{% endcall %}
|
|
121
|
+
kind: {{ ns.kind }}
|
|
122
|
+
|
|
123
|
+
{% call(name) match('Name', holder.Contact) %}
|
|
124
|
+
{% if name.PersonName %}
|
|
125
|
+
firstName:
|
|
126
|
+
- languageCode: {{ HagueExpressTransaction.HagueCurrent.HagueRegistration.FilingLanguageCode | should_display_language(name.PersonName.PersonStructuredName.FirstName) }}
|
|
127
|
+
text: {{ name.PersonName.PersonStructuredName.FirstName }}
|
|
128
|
+
lastName:
|
|
129
|
+
- languageCode: {{ HagueExpressTransaction.HagueCurrent.HagueRegistration.FilingLanguageCode | should_display_language(name.PersonName.PersonStructuredName.LastName) }}
|
|
130
|
+
text: {{ name.PersonName.PersonStructuredName.LastName }}
|
|
131
|
+
middleName:
|
|
132
|
+
- languageCode: {{ HagueExpressTransaction.HagueCurrent.HagueRegistration.FilingLanguageCode | should_display_language(name.PersonName.PersonStructuredName.MiddleName) }}
|
|
133
|
+
text: {{ name.PersonName.PersonStructuredName.MiddleName }}
|
|
134
|
+
{% endif %}
|
|
135
|
+
|
|
136
|
+
{% if name.OrganizationName %}
|
|
137
|
+
orgName:
|
|
138
|
+
- languageCode: {{ HagueExpressTransaction.HagueCurrent.HagueRegistration.FilingLanguageCode }}
|
|
139
|
+
text: {{ name.OrganizationName.OrganizationStandardName }}
|
|
140
|
+
{% endif %}
|
|
141
|
+
{% endcall %}
|
|
142
|
+
|
|
143
|
+
fullAddress:
|
|
144
|
+
{% call(postalAddress) match('PostalAddress', holder.Contact.PostalAddressBag) %}
|
|
145
|
+
- languageCode: {{ HagueExpressTransaction.HagueCurrent.HagueRegistration.FilingLanguageCode }}
|
|
146
|
+
#text: {{ postalAddress.PostalStructuredAddress | format_complete_address }}
|
|
147
|
+
addressLine: {{ postalAddress.PostalStructuredAddress.AddressLineText }}
|
|
148
|
+
cityName: {{ postalAddress.PostalStructuredAddress.CityName }}
|
|
149
|
+
geographicRegionName: {{ postalAddress.PostalStructuredAddress.GeographicRegionName }}
|
|
150
|
+
postalCode: {{ postalAddress.PostalStructuredAddress.PostalCode }}
|
|
151
|
+
postalBox: {{ postalAddress.PostalStructuredAddress.PostalBox }}
|
|
152
|
+
countryCode: {{ postalAddress.PostalStructuredAddress.CountryCode }}
|
|
153
|
+
{% endcall %}
|
|
154
|
+
|
|
155
|
+
processingTool:
|
|
156
|
+
name: {{ holder.Contact._type }}
|
|
157
|
+
version: {{ holder.Contact._subtype }}
|
|
158
|
+
processingDate: {{ holder.Contact._when }}
|
|
159
|
+
|
|
160
|
+
entitlement:
|
|
161
|
+
entitlementNationalityCode: {{ holder.Entitlement.EntitlementNationalityCode }}
|
|
162
|
+
entitlementEstablishment: {{ holder.Entitlement.EntitlementEstablishment.EntitlementEstablishmentCode }}
|
|
163
|
+
entitlementDomiciled: {{ holder.Entitlement.EntitlementDomiciled.EntitlementDomiciledCode }}
|
|
164
|
+
{% endcall %}
|
|
165
|
+
|
|
166
|
+
representatives:
|
|
167
|
+
{% call(representative) match('Representative', HagueExpressTransaction.HagueCurrent.HagueRegistration.RepresentativeBag) %}
|
|
168
|
+
- identifier:
|
|
169
|
+
{% if representative.Contact.Name.PersonName %}
|
|
170
|
+
kind: 'person'
|
|
171
|
+
fullName:
|
|
172
|
+
- languageCode: {{ HagueExpressTransaction.HagueCurrent.HagueRegistration.FilingLanguageCode }}
|
|
173
|
+
text: {{ representative.Contact.Name.PersonName.PersonStructuredName | build_person_name() }}
|
|
174
|
+
firstName:
|
|
175
|
+
- languageCode: {{ HagueExpressTransaction.HagueCurrent.HagueRegistration.FilingLanguageCode | should_display_language(representative.Contact.Name.PersonName.PersonStructuredName.FirstName) }}
|
|
176
|
+
text: {{ representative.Contact.Name.PersonName.PersonStructuredName.FirstName }}
|
|
177
|
+
lastName:
|
|
178
|
+
- languageCode: {{ HagueExpressTransaction.HagueCurrent.HagueRegistration.FilingLanguageCode | should_display_language(representative.Contact.Name.PersonName.PersonStructuredName.LastName) }}
|
|
179
|
+
text: {{ representative.Contact.Name.PersonName.PersonStructuredName.LastName }}
|
|
180
|
+
middleName:
|
|
181
|
+
- languageCode:
|
|
182
|
+
text:
|
|
183
|
+
{% endif %}
|
|
184
|
+
|
|
185
|
+
{% if representative.Contact.Name.OrganizationName %}
|
|
186
|
+
kind: 'organization'
|
|
187
|
+
fullName:
|
|
188
|
+
- languageCode: {{ HagueExpressTransaction.HagueCurrent.HagueRegistration.FilingLanguageCode }}
|
|
189
|
+
text: {{ representative.Contact.Name.OrganizationName.OrganizationStandardName }}
|
|
190
|
+
{% endif %}
|
|
191
|
+
fullAddress:
|
|
192
|
+
{% call(postalAddress) match('PostalAddress', representative.Contact.PostalAddressBag) %}
|
|
193
|
+
- languageCode: {{ HagueExpressTransaction.HagueCurrent.HagueRegistration.FilingLanguageCode }}
|
|
194
|
+
text: {{ postalAddress.PostalStructuredAddress | format_complete_address }}
|
|
195
|
+
addressLines: {{ postalAddress.PostalStructuredAddress.AddressLineText | format_address }}
|
|
196
|
+
cityName: {{ postalAddress.PostalStructuredAddress.CityName }}
|
|
197
|
+
geographicRegionName: {{ postalAddress.PostalStructuredAddress.GeographicRegionName }}
|
|
198
|
+
countryCode: {{ postalAddress.PostalStructuredAddress.CountryCode }}
|
|
199
|
+
postalCode: {{ postalAddress.PostalStructuredAddress.PostalCode }}
|
|
200
|
+
{% endcall %}
|
|
201
|
+
{% endcall %}
|
|
202
|
+
|
|
203
|
+
representativesNormalized:
|
|
204
|
+
{% call(representative) match('RepresentativeNormalized', HagueExpressTransaction.HagueCurrent.HagueRegistration.RepresentativeBag) %}
|
|
205
|
+
- identifier:
|
|
206
|
+
|
|
207
|
+
{% set ns = namespace(kind='organization') %}
|
|
208
|
+
{% call(name) match('Name', representative.Contact) %}
|
|
209
|
+
{% if name.PersonName %}
|
|
210
|
+
{% set ns.kind = 'person' %}
|
|
211
|
+
{% endif %}
|
|
212
|
+
{% endcall %}
|
|
213
|
+
kind: {{ ns.kind }}
|
|
214
|
+
|
|
215
|
+
{% call(name) match('Name', representative.Contact) %}
|
|
216
|
+
{% if name.PersonName %}
|
|
217
|
+
firstName:
|
|
218
|
+
- languageCode: {{ HagueExpressTransaction.HagueCurrent.HagueRegistration.FilingLanguageCode | should_display_language(name.PersonName.PersonStructuredName.FirstName) }}
|
|
219
|
+
text: {{ name.PersonName.PersonStructuredName.FirstName }}
|
|
220
|
+
lastName:
|
|
221
|
+
- languageCode: {{ HagueExpressTransaction.HagueCurrent.HagueRegistration.FilingLanguageCode | should_display_language(name.PersonName.PersonStructuredName.LastName) }}
|
|
222
|
+
text: {{ name.PersonName.PersonStructuredName.LastName }}
|
|
223
|
+
middleName:
|
|
224
|
+
- languageCode: {{ HagueExpressTransaction.HagueCurrent.HagueRegistration.FilingLanguageCode | should_display_language(name.PersonName.PersonStructuredName.MiddleName) }}
|
|
225
|
+
text: {{ name.PersonName.PersonStructuredName.MiddleName }}
|
|
226
|
+
{% endif %}
|
|
227
|
+
|
|
228
|
+
{% if name.OrganizationName %}
|
|
229
|
+
orgName:
|
|
230
|
+
- languageCode: {{ HagueExpressTransaction.HagueCurrent.HagueRegistration.FilingLanguageCode }}
|
|
231
|
+
text: {{ name.OrganizationName.OrganizationStandardName }}
|
|
232
|
+
{% endif %}
|
|
233
|
+
{% endcall %}
|
|
234
|
+
|
|
235
|
+
fullAddress:
|
|
236
|
+
{% call(postalAddress) match('PostalAddress', representative.Contact.PostalAddressBag) %}
|
|
237
|
+
- languageCode: {{ HagueExpressTransaction.HagueCurrent.HagueRegistration.FilingLanguageCode }}
|
|
238
|
+
#text: {{ postalAddress.PostalStructuredAddress | format_complete_address }}
|
|
239
|
+
addressLine: {{ postalAddress.PostalStructuredAddress.AddressLineText }}
|
|
240
|
+
cityName: {{ postalAddress.PostalStructuredAddress.CityName }}
|
|
241
|
+
geographicRegionName: {{ postalAddress.PostalStructuredAddress.GeographicRegionName }}
|
|
242
|
+
postalCode: {{ postalAddress.PostalStructuredAddress.PostalCode }}
|
|
243
|
+
postalBox: {{ postalAddress.PostalStructuredAddress.PostalBox }}
|
|
244
|
+
countryCode: {{ postalAddress.PostalStructuredAddress.CountryCode }}
|
|
245
|
+
{% endcall %}
|
|
246
|
+
|
|
247
|
+
processingTool:
|
|
248
|
+
name: {{ representative.Contact._type }}
|
|
249
|
+
version: {{ representative.Contact._subtype }}
|
|
250
|
+
processingDate: {{ representative.Contact._when }}
|
|
251
|
+
{% endcall %}
|
|
252
|
+
|
|
253
|
+
designClaim:
|
|
254
|
+
# updated for supporting Hague data
|
|
255
|
+
{% if HagueExpressTransaction.HagueCurrent.HagueRegistration.DesignClaimBag.DesignClaim.DesignClaimTextBag %}
|
|
256
|
+
claims:
|
|
257
|
+
{% call(designClaimText) match('DesignClaimText', HagueExpressTransaction.HagueCurrent.HagueRegistration.DesignClaimBag.DesignClaim.DesignClaimTextBag) %}
|
|
258
|
+
- languageCode: {{ designClaimText._languageCode }}
|
|
259
|
+
claim: {{ designClaimText.__value }}
|
|
260
|
+
{% endcall %}
|
|
261
|
+
designatedCountries:
|
|
262
|
+
{% call(claimDesignation) match('DesignatedCountry', HagueExpressTransaction.HagueCurrent.HagueRegistration.DesignClaimBag.DesignClaim.DesignatedCountryBag) %}
|
|
263
|
+
- {{ claimDesignation.DesignatedCountryCode }}
|
|
264
|
+
{% endcall %}
|
|
265
|
+
- {{ HagueExpressTransaction.HagueCurrent.HagueRegistration.DesignClaimBag.DesignClaim.DesignatedCountryCode }}
|
|
266
|
+
affectedDesigns:
|
|
267
|
+
allDesignsIndicator: {{ HagueExpressTransaction.HagueCurrent.HagueRegistration.DesignClaimBag.DesignClaim.AffectedDesign.AllDesignsIndicator }}
|
|
268
|
+
{% else %}
|
|
269
|
+
claims:
|
|
270
|
+
{% call(designClaim) match('DesignClaim', HagueExpressTransaction.HagueCurrent.HagueRegistration.DesignClaimBag) %}
|
|
271
|
+
- languageCode: {{ designClaim._languageCode }}
|
|
272
|
+
claim: {{ designClaim.__value }}
|
|
273
|
+
{% endcall %}
|
|
274
|
+
designatedCountries:
|
|
275
|
+
{% call(claimDesignation) match('DesignatedCountry', HagueExpressTransaction.HagueCurrent.HagueRegistration.DesignClaimBag.DesignatedCountryBag) %}
|
|
276
|
+
- {{ claimDesignation.DesignatedCountryCode }}
|
|
277
|
+
{% endcall %}
|
|
278
|
+
- {{ HagueExpressTransaction.HagueCurrent.HagueRegistration.DesignClaimBag.DesignatedCountryCode }}
|
|
279
|
+
# Although affectedDesigns is present under DesignClaim, it is always applied to all the designs in our data (always AllDesignsIndicator=True)
|
|
280
|
+
# so designClaim can stay at the level of the application, and not under design
|
|
281
|
+
affectedDesigns:
|
|
282
|
+
allDesignsIndicator: {{ HagueExpressTransaction.HagueCurrent.HagueRegistration.DesignClaimBag.AffectedDesign.AllDesignsIndicator }}
|
|
283
|
+
{% endif %}
|
|
284
|
+
|
|
285
|
+
businessEntityStatusClaim:
|
|
286
|
+
{% if HagueExpressTransaction.HagueCurrent.HagueRegistration.BusinessEntityStatusCategory %}
|
|
287
|
+
- BusinessEntityStatusCategory: {{ HagueExpressTransaction.HagueCurrent.HagueRegistration.BusinessEntityStatusCategory }}
|
|
288
|
+
{% endif %}
|
|
289
|
+
{% if HagueExpressTransaction.HagueHistory[0].HagueRegistration.BusinessEntityStatusClaimBag %}
|
|
290
|
+
{% call(businessEntity) match('BusinessEntityStatusClaim', HagueExpressTransaction.HagueHistory[0].HagueRegistration.BusinessEntityStatusClaimBag) %}
|
|
291
|
+
- BusinessEntityStatusCategory: {{ businessEntity.BusinessEntityStatusCategory }}
|
|
292
|
+
DesignatedCountryCode: {{ businessEntity.DesignatedCountryCode }}
|
|
293
|
+
{% endcall %}
|
|
294
|
+
{% endif %}
|
|
295
|
+
|
|
296
|
+
designs:
|
|
297
|
+
{% call(design) match('HagueDesign', HagueExpressTransaction.HagueCurrent.HagueRegistration.HagueDesignBag) %}
|
|
298
|
+
|
|
299
|
+
- designPos: {{ design.DesignIdentifier }}
|
|
300
|
+
|
|
301
|
+
# status as is in the document
|
|
302
|
+
officeStatus: # afaik Hague data do not provide an explicit status
|
|
303
|
+
# status as translated to gbdFormat
|
|
304
|
+
gbdStatus: {{ registrationDate | getGbdStatus(expiryDate, hagueHistories, design.DesignIdentifier) }}
|
|
305
|
+
#(Ended|Expired|Pending|Registered|Unknown)
|
|
306
|
+
# in the case of Hague, it would be the latest of registration date or renewal dates
|
|
307
|
+
statusDate: {{ registrationDate | getOfficeStatusDate(expiryDate, hagueHistories, design.DesignIdentifier) }}
|
|
308
|
+
|
|
309
|
+
productIndication:
|
|
310
|
+
{% call(productText) match('ProductDescriptionText', design.ProductDescriptionTextBag) %}
|
|
311
|
+
- languageCode: {{ productText._languageCode }}
|
|
312
|
+
text: {{ productText.__value }}
|
|
313
|
+
{% endcall %}
|
|
314
|
+
|
|
315
|
+
designDescription:
|
|
316
|
+
{% call(designText) match('DesignDescriptionText', design.DesignDescriptionTextBag) %}
|
|
317
|
+
- languageCode: {{ designText._languageCode }}
|
|
318
|
+
text: {{ designText.__value }}
|
|
319
|
+
{% endcall %}
|
|
320
|
+
|
|
321
|
+
designImageDetails:
|
|
322
|
+
# Hague image substructures are not sorted, ViewIdentifier must be used to get the image rank
|
|
323
|
+
{% call(view) match('View', design.ViewBag) %}
|
|
324
|
+
- name: {{ view.FileName }}
|
|
325
|
+
rank: {{ view.ViewIdentifier }}
|
|
326
|
+
# type is a useful information to normalise the kind of view corresponding to this picture
|
|
327
|
+
type: {{ view.ViewTypeCategory }}
|
|
328
|
+
# new, more than one legend per picture, in 3 different languages
|
|
329
|
+
legends:
|
|
330
|
+
{% call(viewTypeText) match('ViewTypeText', view.ViewTypeTextBag) %}
|
|
331
|
+
- languageCode: {{ viewTypeText._languageCode }}
|
|
332
|
+
legend: {{ viewTypeText.__value }}
|
|
333
|
+
{% endcall %}
|
|
334
|
+
{% endcall %}
|
|
335
|
+
|
|
336
|
+
designer:
|
|
337
|
+
{% call(designer) match('Designer', design.DesignerBag) %}
|
|
338
|
+
- identifier:
|
|
339
|
+
{% if designer.Contact.Name.PersonName %}
|
|
340
|
+
kind: 'person'
|
|
341
|
+
fullName:
|
|
342
|
+
- languageCode:
|
|
343
|
+
text: {{ designer.Contact.Name.PersonName.PersonStructuredName | build_person_name() }}
|
|
344
|
+
firstName:
|
|
345
|
+
- languageCode: {{ HagueExpressTransaction.HagueCurrent.HagueRegistration.FilingLanguageCode | should_display_language(designer.Contact.Name.PersonName.PersonStructuredName.FirstName) }}
|
|
346
|
+
text: {{ designer.Contact.Name.PersonName.PersonStructuredName.FirstName }}
|
|
347
|
+
lastName:
|
|
348
|
+
- languageCode: {{ HagueExpressTransaction.HagueCurrent.HagueRegistration.FilingLanguageCode | should_display_language(designer.Contact.Name.PersonName.PersonStructuredName.LastName) }}
|
|
349
|
+
text: {{ designer.Contact.Name.PersonName.PersonStructuredName.LastName }}
|
|
350
|
+
middleName:
|
|
351
|
+
- languageCode:
|
|
352
|
+
text:
|
|
353
|
+
{% endif %}
|
|
354
|
+
{% if designer.Contact.Name.OrganizationName %}
|
|
355
|
+
kind: 'organization'
|
|
356
|
+
fullName:
|
|
357
|
+
- languageCode:
|
|
358
|
+
text: {{ designer.Contact.Name.OrganizationName.OrganizationStandardName }}
|
|
359
|
+
{% endif %}
|
|
360
|
+
fullAddress:
|
|
361
|
+
{% call(postalAddress) match('PostalAddress', designer.Contact.PostalAddressBag) %}
|
|
362
|
+
- languageCode: {{ HagueExpressTransaction.HagueCurrent.HagueRegistration.FilingLanguageCode }}
|
|
363
|
+
text: {{ postalAddress.PostalStructuredAddress | format_complete_address }}
|
|
364
|
+
addressLines: {{ postalAddress.PostalStructuredAddress.AddressLineText | format_address }}
|
|
365
|
+
cityName: {{ postalAddress.PostalStructuredAddress.CityName }}
|
|
366
|
+
geographicRegionName: {{ postalAddress.PostalStructuredAddress.GeographicRegionName }}
|
|
367
|
+
countryCode: {{ postalAddress.PostalStructuredAddress.CountryCode }}
|
|
368
|
+
postalCode: {{ postalAddress.PostalStructuredAddress.PostalCode }}
|
|
369
|
+
{% endcall %}
|
|
370
|
+
{% endcall %}
|
|
371
|
+
|
|
372
|
+
designerNormalized:
|
|
373
|
+
{% call(designer) match('DesignerNormalized', design.DesignerBag) %}
|
|
374
|
+
- identifier:
|
|
375
|
+
|
|
376
|
+
{% set ns = namespace(kind='organization') %}
|
|
377
|
+
{% call(name) match('Name', designer.Contact) %}
|
|
378
|
+
{% if name.PersonName %}
|
|
379
|
+
{% set ns.kind = 'person' %}
|
|
380
|
+
{% endif %}
|
|
381
|
+
{% endcall %}
|
|
382
|
+
kind: {{ ns.kind }}
|
|
383
|
+
|
|
384
|
+
{% call(name) match('Name', designer.Contact) %}
|
|
385
|
+
{% if name.PersonName %}
|
|
386
|
+
firstName:
|
|
387
|
+
- languageCode: {{ HagueExpressTransaction.HagueCurrent.HagueRegistration.FilingLanguageCode | should_display_language(name.PersonName.PersonStructuredName.FirstName) }}
|
|
388
|
+
text: {{ name.PersonName.PersonStructuredName.FirstName }}
|
|
389
|
+
lastName:
|
|
390
|
+
- languageCode: {{ HagueExpressTransaction.HagueCurrent.HagueRegistration.FilingLanguageCode | should_display_language(name.PersonName.PersonStructuredName.LastName) }}
|
|
391
|
+
text: {{ name.PersonName.PersonStructuredName.LastName }}
|
|
392
|
+
middleName:
|
|
393
|
+
- languageCode: {{ HagueExpressTransaction.HagueCurrent.HagueRegistration.FilingLanguageCode | should_display_language(name.PersonName.PersonStructuredName.MiddleName) }}
|
|
394
|
+
text: {{ name.PersonName.PersonStructuredName.MiddleName }}
|
|
395
|
+
{% endif %}
|
|
396
|
+
|
|
397
|
+
{% if name.OrganizationName %}
|
|
398
|
+
orgName:
|
|
399
|
+
- languageCode: {{ HagueExpressTransaction.HagueCurrent.HagueRegistration.FilingLanguageCode }}
|
|
400
|
+
text: {{ name.OrganizationName.OrganizationStandardName }}
|
|
401
|
+
{% endif %}
|
|
402
|
+
{% endcall %}
|
|
403
|
+
|
|
404
|
+
fullAddress:
|
|
405
|
+
{% call(postalAddress) match('PostalAddress', designer.Contact.PostalAddressBag) %}
|
|
406
|
+
- languageCode: {{ HagueExpressTransaction.HagueCurrent.HagueRegistration.FilingLanguageCode }}
|
|
407
|
+
#text: {{ postalAddress.PostalStructuredAddress | format_complete_address }}
|
|
408
|
+
addressLine: {{ postalAddress.PostalStructuredAddress.AddressLineText }}
|
|
409
|
+
cityName: {{ postalAddress.PostalStructuredAddress.CityName }}
|
|
410
|
+
geographicRegionName: {{ postalAddress.PostalStructuredAddress.GeographicRegionName }}
|
|
411
|
+
postalCode: {{ postalAddress.PostalStructuredAddress.PostalCode }}
|
|
412
|
+
postalBox: {{ postalAddress.PostalStructuredAddress.PostalBox }}
|
|
413
|
+
countryCode: {{ postalAddress.PostalStructuredAddress.CountryCode }}
|
|
414
|
+
{% endcall %}
|
|
415
|
+
|
|
416
|
+
processingTool:
|
|
417
|
+
name: {{ designer.Contact._type }}
|
|
418
|
+
version: {{ designer.Contact._subtype }}
|
|
419
|
+
processingDate: {{ designer.Contact._when }}
|
|
420
|
+
{% endcall %}
|
|
421
|
+
|
|
422
|
+
productIndicationClasses:
|
|
423
|
+
kind: "Locarno"
|
|
424
|
+
version: {{ design.LocarnoClassificationBag.LocarnoClassificationEdition }}
|
|
425
|
+
classes:
|
|
426
|
+
{% call(classification) match('LocarnoClassification', design.LocarnoClassificationBag) %}
|
|
427
|
+
{% call(subClassification) match('LocarnoSubclass', classification.LocarnoSubclassBag) %}
|
|
428
|
+
- code: {{ (classification.LocarnoClass ~ '-' ~ subClassification) | pad_locarno}}
|
|
429
|
+
{% endcall %}
|
|
430
|
+
{% endcall %}
|
|
431
|
+
|
|
432
|
+
# unfortunately, ExhibitionPriorityBag present in the registratioon history event is not propagated to the current,
|
|
433
|
+
# so we need a fix
|
|
434
|
+
{% call(design2) match('HagueDesign', HagueExpressTransaction.HagueHistory[0].HagueRegistration.HagueDesignBag) %}
|
|
435
|
+
{% if design.DesignIdentifier == design2.DesignIdentifier %}
|
|
436
|
+
exhibition:
|
|
437
|
+
{% call(exhibition) match('ExhibitionPriority', design2.ExhibitionPriorityBag) %}
|
|
438
|
+
- date: {{ exhibition.ExhibitionDate }}
|
|
439
|
+
name: {{ exhibition.ExhibitionName | replace_quotes() }}
|
|
440
|
+
location: {{ exhibition.ExhibitionCityName }}
|
|
441
|
+
{% endcall %}
|
|
442
|
+
{% endif%}
|
|
443
|
+
{% endcall %}
|
|
444
|
+
|
|
445
|
+
priorities:
|
|
446
|
+
{% call(priority) match('Priority', design.PriorityBag) %}
|
|
447
|
+
- countryCode: {{ priority.PriorityCountryCode }}
|
|
448
|
+
number: {{ priority.ApplicationNumber.ApplicationNumberText }}
|
|
449
|
+
date: {{ priority.PriorityApplicationFilingDate }}
|
|
450
|
+
# the following seems Hague specific
|
|
451
|
+
DASAccessCode: {{ priority.DASAccessCode }}
|
|
452
|
+
{% endcall %}
|
|
453
|
+
|
|
454
|
+
# only Hague, but attached to individual design
|
|
455
|
+
exceptionLackNoveltyDeclaration:
|
|
456
|
+
{% call(lackNoveltyDeclaration) match('ExceptionLackNoveltyDeclaration', design.ExceptionLackNoveltyDeclarationBag) %}
|
|
457
|
+
{% call(designation) match('DesignatedCountry', lackNoveltyDeclaration.DesignatedCountryBag) %}
|
|
458
|
+
- country: {{ designation.DesignatedCountryCode }}
|
|
459
|
+
legalBasis: {{ designation.HagueAgreementActCategory | cleanHagueAgreementActCategory() }}
|
|
460
|
+
{% endcall %}
|
|
461
|
+
{% endcall %}
|
|
462
|
+
|
|
463
|
+
# only Hague, but attached to individual design
|
|
464
|
+
principalDesignRelations:
|
|
465
|
+
{% call(principalDesignRelation) match('PrincipalDesignRelation', design.PrincipalDesignRelationBag) %}
|
|
466
|
+
|
|
467
|
+
- principalDesignCategory: {{ principalDesignRelation.PrincipalDesignCategory }}
|
|
468
|
+
documentIdentifier: {{ principalDesignRelation.DocumentIdentifier }}
|
|
469
|
+
principalDesignReference: {{ principalDesignRelation.PrincipalDesignReference }}
|
|
470
|
+
designatedCountries:
|
|
471
|
+
{% call(designation) match('DesignatedCountry', principalDesignRelation.DesignatedCountryBag) %}
|
|
472
|
+
- country: {{ designation.DesignatedCountryCode }}
|
|
473
|
+
legalBasis: {{ designation.HagueAgreementActCategory | cleanHagueAgreementActCategory() }}
|
|
474
|
+
{% endcall %}
|
|
475
|
+
|
|
476
|
+
{% endcall %}
|
|
477
|
+
|
|
478
|
+
{% endcall %}
|
|
479
|
+
|
|
480
|
+
# here goes extra information that is office specific and that is pertinent for us to retain.
|
|
481
|
+
extra:
|
|
482
|
+
feeCalculationDate: {{ HagueExpressTransaction.HagueCurrent.HagueRegistration.FeeCalculationDate }}
|
|
483
|
+
|
|
484
|
+
fullyDesignatedCountries:
|
|
485
|
+
{% call(designation) match('DesignatedCountry', HagueExpressTransaction.HagueCurrent.HagueRegistration.DesignatedCountryBag) %}
|
|
486
|
+
# new, replace simple country field
|
|
487
|
+
- country: {{ designation.DesignatedCountryCode }}
|
|
488
|
+
legalBasis: {{ designation.HagueAgreementActCategory | cleanHagueAgreementActCategory() }}
|
|
489
|
+
{% endcall %}
|
|
490
|
+
|
|
491
|
+
statusByCountry:
|
|
492
|
+
# list the status for designated country when known, for each design
|
|
493
|
+
designs:
|
|
494
|
+
{% call(design) match('HagueDesign', HagueExpressTransaction.HagueCurrent.HagueRegistration.HagueDesignBag) %}
|
|
495
|
+
|
|
496
|
+
- designPos: {{ design.DesignIdentifier }}
|
|
497
|
+
status:
|
|
498
|
+
{% call(designation) match('DesignatedCountry', HagueExpressTransaction.HagueCurrent.HagueRegistration.DesignatedCountryBag) %}
|
|
499
|
+
- country: {{ designation.DesignatedCountryCode }}
|
|
500
|
+
# status as translated to gbdFormat (Ended|Expired|Pending|Registered|Unknown)
|
|
501
|
+
gbdStatus: {{ registrationDate | getGbdStatus(expiryDate, hagueHistories, design.DesignIdentifier, designation.DesignatedCountryCode) }}
|
|
502
|
+
statusDate: {{ registrationDate | getOfficeStatusDate(expiryDate, hagueHistories, design.DesignIdentifier, designation.DesignatedCountryCode) }}
|
|
503
|
+
{% endcall %}
|
|
504
|
+
|
|
505
|
+
{% endcall %}
|
|
506
|
+
|
|
507
|
+
history:
|
|
508
|
+
{% call(history) match('HagueHistory', HagueExpressTransaction) %}
|
|
509
|
+
|
|
510
|
+
- sequenceNumber: {{ history._sequenceNumber }}
|
|
511
|
+
hagueBulletinNumber: {{ history.HagueBulletinNumber }}
|
|
512
|
+
publicationDate: {{ history.PublicationDate }}
|
|
513
|
+
eventType: {{ history | get_event_type() }}
|
|
514
|
+
content: {{ history | serialize() }}
|
|
515
|
+
|
|
516
|
+
{% endcall %}
|