Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
RDMS
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
researchdata
RDMS
Commits
3cb8346d
Commit
3cb8346d
authored
1 year ago
by
Anusha Ranganathan
Browse files
Options
Downloads
Patches
Plain Diff
Add Dataset and CrcDataset search fields to all search fields
parent
ae2e670f
Branches
feature/search_modifications
Branches containing commit
Tags
Tags containing commit
1 merge request
!273
Add Dataset and CrcDataset search fields to all search fields
Pipeline
#12709
failed
1 year ago
Stage: build
Stage: test
Stage: deploy
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
hyrax/app/controllers/catalog_controller.rb
+5
-2
5 additions, 2 deletions
hyrax/app/controllers/catalog_controller.rb
hyrax/config/locales/hyrax.en.yml
+2
-0
2 additions, 0 deletions
hyrax/config/locales/hyrax.en.yml
with
7 additions
and
2 deletions
hyrax/app/controllers/catalog_controller.rb
+
5
−
2
View file @
3cb8346d
...
...
@@ -161,8 +161,11 @@ class CatalogController < ApplicationController
# solr request handler? The one set in config[:default_solr_parameters][:qt],
# since we aren't specifying it otherwise.
config
.
add_search_field
(
'all_fields'
,
label:
'All Fields'
)
do
|
field
|
all_names
=
config
.
show_fields
.
values
.
map
(
&
:field
).
join
(
" "
)
title_name
=
"title_tesim"
all_names
=
(
config
.
show_fields
.
values
.
map
(
&
:field
)
+
DatasetIndexer
.
search_fields
+
CrcDatasetIndexer
.
search_fields
).
uniq
.
join
(
" "
)
title_name
=
solr_name
(
"title"
,
:stored_searchable
)
field
.
solr_parameters
=
{
qf:
"
#{
all_names
}
file_format_tesim all_text_timv"
,
pf:
title_name
.
to_s
...
...
This diff is collapsed.
Click to expand it.
hyrax/config/locales/hyrax.en.yml
+
2
−
0
View file @
3cb8346d
...
...
@@ -17,6 +17,8 @@ en:
complex_year_itsi
:
Year
complex_date_accepted_dtsim
:
Date accepted
complex_year_accepted_itsi
:
Year accepted
complex_date_archived_dtsim
:
Date archived
complex_year_archived_itsi
:
Year archived
complex_date_available_dtsim
:
Date available
complex_year_available_itsi
:
Year available
complex_date_copyrighted_dtsim
:
Date copyrighted
...
...
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