Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
cleaning-portalmec
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Richard Fernando Heise Ferreira
cleaning-portalmec
Commits
b690a062
Commit
b690a062
authored
6 years ago
by
Israel Barreto Sant'Anna
Browse files
Options
Downloads
Plain Diff
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
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
app/models/learning_object.rb
+1
-1
1 addition, 1 deletion
app/models/learning_object.rb
app/services/search_service/learning_object.rb
+1
-1
1 addition, 1 deletion
app/services/search_service/learning_object.rb
with
2 additions
and
2 deletions
app/models/learning_object.rb
+
1
−
1
View file @
b690a062
...
...
@@ -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
,
...
...
This diff is collapsed.
Click to expand it.
app/services/search_service/learning_object.rb
+
1
−
1
View file @
b690a062
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment