Skip to content
Snippets Groups Projects
Commit e8243a8c authored by Marcela Ribeiro de Oliveira's avatar Marcela Ribeiro de Oliveira
Browse files

Merge branch 'publisher-search' into 'master'

Publisher search

See merge request portalmec/portalmec!492
parents 714c191f c9eeb7e8
No related branches found
No related tags found
No related merge requests found
......@@ -92,7 +92,7 @@ class LearningObject < ApplicationRecord
scope :search_import, -> { includes(:object_type, :tags, :subjects, :educational_stages, :publisher) }
def search_data
source = !publisher.nil? && publisher.is_a?(Institution) ? publisher.name : nil
source = !publisher.nil? ? publisher.name : ""
type = object_type.try(:id)
{
name: name,
......
......@@ -37,7 +37,7 @@ module SearchService
private
def search_fields
[:name, :description, :author, :object_type]
[:name, :description, :author, :object_type, :source]
end
def mount_filter
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment