Skip to content

Commit 0cbd700

Browse files
committed
Add patent decision specialist document configuration
[JIRA](https://gov-uk.atlassian.net/browse/WHIT-3027)
1 parent 4c6d923 commit 0cbd700

5 files changed

Lines changed: 9 additions & 0 deletions

File tree

config/govuk_index/mapped_document_types.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ oral_statement: edition # Whitehall
9090
organisation: edition # Whitehall
9191
our_energy_use: edition
9292
our_governance: edition
93+
patent_decision: patent_decision # Specialist Publisher
9394
person: person
9495
personal_information_charter: edition
9596
petitions_and_campaigns: edition

config/govuk_index/migrated_formats.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ migrated:
4444
- marine_equipment_approved_recommendation
4545
- marine_notice
4646
- medical_safety_alert
47+
- patent_decision
4748
- product_safety_alert_report_recall
4849
- protected_food_drink_name
4950
- raib_report

config/schema/indexes/govuk.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
"marine_equipment_approved_recommendation",
3535
"marine_notice",
3636
"medical_safety_alert",
37+
"patent_decision",
3738
"person",
3839
"policy",
3940
"product_safety_alert_report_recall",

lib/govuk_index/presenters/elasticsearch_presenter.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,9 @@ def document
173173
parent_organisations: expanded_links.parent_organisations,
174174
part_of_taxonomy_tree: expanded_links.part_of_taxonomy_tree,
175175
parts: parts.presented_parts,
176+
patent_decision_british_library_number: specialist.patent_decision_british_library_number,
177+
patent_decision_hearing_officer: specialist.patent_decision_hearing_officer,
178+
patent_decision_type_of_hearing: specialist.patent_decision_type_of_hearing,
176179
people: expanded_links.people,
177180
policy_groups: expanded_links.policy_groups,
178181
popularity: common_fields.popularity,

lib/govuk_index/presenters/specialist_presenter.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,9 @@ class SpecialistPresenter
113113
delegate_to_payload :opened_date
114114
delegate_to_payload :outcome_type
115115
delegate_to_payload :farming_grant_type
116+
delegate_to_payload :patent_decision_british_library_number
117+
delegate_to_payload :patent_decision_hearing_officer
118+
delegate_to_payload :patent_decision_type_of_hearing
116119
delegate_to_payload :principle, convert_to_array: true
117120
delegate_to_payload :product_alert_type
118121
delegate_to_payload :product_category

0 commit comments

Comments
 (0)