Skip to content

Commit

Permalink
Merge pull request #196 from ukparliament/development
Browse files Browse the repository at this point in the history
Development merge
  • Loading branch information
j-corry authored Nov 25, 2024
2 parents fd159e3 + 3c81fee commit d304f53
Show file tree
Hide file tree
Showing 6 changed files with 1,051 additions and 987 deletions.
2 changes: 1 addition & 1 deletion app/models/content_object.rb
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ def notes
end

def related_item_ids
get_all_ids_from('relation_t')
combine_fields(get_all_ids_from('relation_t'), get_all_ids_from('relation_uri'))
end

def contribution_text
Expand Down
5 changes: 3 additions & 2 deletions app/models/european_material.rb
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ def ec_documents
def related_item_ids
doc_text = get_all_ids_from('referencingDD_t')
doc_uri = get_all_ids_from('referencingDD_uri')
relation_uris = get_all_ids_from('relation_t')
[doc_text, doc_uri, relation_uris].flatten.compact
relation_text_uris = get_all_ids_from('relation_t')
relation_uris = get_all_ids_from('relation_uri')
[doc_text, doc_uri, relation_text_uris, relation_uris].flatten.compact
end
end
Original file line number Diff line number Diff line change
@@ -1,29 +1,20 @@
- unless category.blank?
%div.item-details
- if category.is_a?(Array)
%div.item-details
%div.item-details-label= "Type"
= render 'search/fragments/simple_list', items: category, separator: ';', terminator: ';', singular: false
%div.item-details-label= "Type"
%span>= render 'search/fragments/simple_list', items: category, separator: ';', terminator: ';', singular: false
- else
%div.item-details
%div.item-details-label= "Type"
= object_display_name(category, singular: true)
%div.item-details-label= "Type"
%span>= object_display_name(category, singular: true)
- unless subtype.blank?
- unless category.blank?
%span>= "; "
- if subtype.is_a?(Array)
%div.item-details
%div.item-details-label= "Type"
= render 'search/fragments/simple_list', items: subtype, separator: ';', terminator: ';', singular: false
= render 'search/fragments/simple_list', items: subtype, separator: ';', terminator: ';', singular: false
- else
%div.item-details
%div.item-details-label= "Type"
= object_display_name(subtype, singular: true)
= object_display_name(subtype, singular: true)
- if subtype.blank? && category.blank?
- if type.is_a?(Array)
%div.item-details
%div.item-details-label= "Type"
= render 'search/fragments/simple_list', items: type, separator: ';', terminator: ';', singular: false
= render 'search/fragments/simple_list', items: type, separator: ';', terminator: ';', singular: false
- else
%div.item-details
%div.item-details-label= "Type"
= object_display_name(type, singular: true)
= object_display_name(type, singular: true)
2 changes: 1 addition & 1 deletion coverage/.last_run.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"result": {
"line": 80.25
"line": 80.17
}
}
Loading

0 comments on commit d304f53

Please sign in to comment.