Skip to content
Snippets Groups Projects
Commit b690a062 authored by Israel Barreto Sant'Anna's avatar Israel Barreto Sant'Anna
Browse files

Merge branch 'master' of gitlab.c3sl.ufpr.br:portalmec/portalmec

parents 8d16fc1d e8243a8c
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