Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions config/govuk_index/mapped_document_types.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ oral_statement: edition # Whitehall
organisation: edition # Whitehall
our_energy_use: edition
our_governance: edition
patent_decision: patent_decision # Specialist Publisher
person: person
personal_information_charter: edition
petitions_and_campaigns: edition
Expand Down
1 change: 1 addition & 0 deletions config/govuk_index/migrated_formats.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ migrated:
- marine_equipment_approved_recommendation
- marine_notice
- medical_safety_alert
- patent_decision
- product_safety_alert_report_recall
- protected_food_drink_name
- raib_report
Expand Down
1 change: 1 addition & 0 deletions config/schema/indexes/govuk.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
"marine_equipment_approved_recommendation",
"marine_notice",
"medical_safety_alert",
"patent_decision",
"person",
"policy",
"product_safety_alert_report_recall",
Expand Down
3 changes: 3 additions & 0 deletions lib/govuk_index/presenters/elasticsearch_presenter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,9 @@ def document
parent_organisations: expanded_links.parent_organisations,
part_of_taxonomy_tree: expanded_links.part_of_taxonomy_tree,
parts: parts.presented_parts,
patent_decision_british_library_number: specialist.patent_decision_british_library_number,
patent_decision_hearing_officer: specialist.patent_decision_hearing_officer,
patent_decision_type_of_hearing: specialist.patent_decision_type_of_hearing,
people: expanded_links.people,
policy_groups: expanded_links.policy_groups,
popularity: common_fields.popularity,
Expand Down
3 changes: 3 additions & 0 deletions lib/govuk_index/presenters/specialist_presenter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,9 @@ class SpecialistPresenter
delegate_to_payload :opened_date
delegate_to_payload :outcome_type
delegate_to_payload :farming_grant_type
delegate_to_payload :patent_decision_british_library_number
delegate_to_payload :patent_decision_hearing_officer
delegate_to_payload :patent_decision_type_of_hearing
delegate_to_payload :principle, convert_to_array: true
delegate_to_payload :product_alert_type
delegate_to_payload :product_category
Expand Down
Loading