Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ANW-1360: adding URI to list of fields that can be displayed in search/browse #2697

Merged
merged 2 commits into from
May 25, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
24 changes: 16 additions & 8 deletions common/config/search_browse_column_config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ module SearchAndBrowseColumnConfig
"processors" => {:field => "processors", :sortable => true},
"create_time" => {:field => "create_time", :sortable => true},
"user_mtime" => {:field => "user_mtime", :sortable => true},
"audit_info" => {:field => "audit_info", :sort_by => ["create_time", "user_mtime"]}
"audit_info" => {:field => "audit_info", :sort_by => ["create_time", "user_mtime"]},
"uri" => {:field => "uri", :sortable => true}
},
"resource" => {
"title" => {:field => "title", :sortable => true, :sort_by => "title_sort"},
Expand All @@ -77,7 +78,8 @@ module SearchAndBrowseColumnConfig
"processors" => {:field => "processors", :sortable => true},
"create_time" => {:field => "create_time", :sortable => true},
"user_mtime" => {:field => "user_mtime", :sortable => true},
"audit_info" => {:field => "audit_info", :sort_by => ["create_time", "user_mtime"]}
"audit_info" => {:field => "audit_info", :sort_by => ["create_time", "user_mtime"]},
"uri" => {:field => "uri", :sortable => true}
},
"digital_object" => {
"title" => {:field => "title", :sortable => true, :sort_by => "title_sort"},
Expand All @@ -91,7 +93,8 @@ module SearchAndBrowseColumnConfig
"langcode" => {:field => "langcode", :sortable => false},
"create_time" => {:field => "create_time", :sortable => true},
"user_mtime" => {:field => "user_mtime", :sortable => true},
"audit_info" => {:field => "audit_info", :sort_by => ["create_time", "user_mtime"]}
"audit_info" => {:field => "audit_info", :sort_by => ["create_time", "user_mtime"]},
"uri" => {:field => "uri", :sortable => true}
},
"multi" => {
"primary_type" => {:field => "primary_type", :sortable => true},
Expand Down Expand Up @@ -126,7 +129,8 @@ module SearchAndBrowseColumnConfig
"source" => {:field => "source", :sortable => true},
"rules" => {:field => "rules", :sortable => true},
"is_user" => {:field => "is_user", :sortable => true, :type => "boolean"},
"audit_info" => {:field => "audit_info", :sort_by => ["create_time", "user_mtime"]}
"audit_info" => {:field => "audit_info", :sort_by => ["create_time", "user_mtime"]},
"uri" => {:field => "uri", :sortable => true}
},
"archival_object" => {
"title" => {:field => "title", :sortable => true, :sort_by => "title_sort"},
Expand All @@ -138,7 +142,8 @@ module SearchAndBrowseColumnConfig
"dates" => {:field => "dates"},
"extents" => {:field => "extents"},
"langcode" => {:field => "langcode", :sortable => false},
"audit_info" => {:field => "audit_info", :sort_by => ["create_time", "user_mtime"]}
"audit_info" => {:field => "audit_info", :sort_by => ["create_time", "user_mtime"]},
"uri" => {:field => "uri", :sortable => true}
},
"assessment" => {
"assessment_id" => {:field => "assessment_id", :sortable => true},
Expand All @@ -161,7 +166,8 @@ module SearchAndBrowseColumnConfig
"title" => {:field => "title", :sortable => true, :sort_by => "title_sort"},
"has_classification_terms" => {:field => "has_classification_terms", :sortable => true, :type => "boolean"},
"identifier" => {:field => "identifier", :sortable => true, :sort_by => "identifier_sort"},
"audit_info" => {:field => "audit_info", :sort_by => ["create_time", "user_mtime"]}
"audit_info" => {:field => "audit_info", :sort_by => ["create_time", "user_mtime"]},
"uri" => {:field => "uri", :sortable => true}
},
"collection_management" => {
"parent_title" => {:field => "parent_title", :sortable => true, :sort_by => "title_sort"},
Expand All @@ -188,7 +194,8 @@ module SearchAndBrowseColumnConfig
"dates" => {:field => "dates"},
"extents" => {:field => "extents"},
"langcode" => {:field => "langcode", :sortable => false},
"audit_info" => {:field => "audit_info", :sort_by => ["create_time", "user_mtime"]}
"audit_info" => {:field => "audit_info", :sort_by => ["create_time", "user_mtime"]},
"uri" => {:field => "uri", :sortable => true}
},
"event" => {
"agents" => {:field => "agents"},
Expand All @@ -214,7 +221,8 @@ module SearchAndBrowseColumnConfig
"title" => {:field => "title", :sortable => true, :sort_by => "title_sort"},
"source" => {:field => "source", :sortable => true},
"first_term_type" => {:field => "first_term_type", :sortable => true},
"audit_info" => {:field => "audit_info", :sort_by => ["create_time", "user_mtime"]}
"audit_info" => {:field => "audit_info", :sort_by => ["create_time", "user_mtime"]},
"uri" => {:field => "uri", :sortable => true}
},
"top_container" => {
"title" => {:field => "title", :sortable => true, :sort_by => "title_sort"},
Expand Down
9 changes: 9 additions & 0 deletions frontend/config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,7 @@ en:
create_time: Created
asc: Ascending
desc: Descending
uri: URI
resource:
score: Relevance
title: Title
Expand All @@ -240,6 +241,7 @@ en:
create_time: Created
asc: Ascending
desc: Descending
uri: URI
archival_object:
score: Relevance
title: Title
Expand All @@ -256,6 +258,7 @@ en:
create_time: Created
asc: Ascending
desc: Descending
uri: URI
subject:
score: Relevance
source: Source
Expand All @@ -267,6 +270,7 @@ en:
create_time: Created
asc: Ascending
desc: Descending
uri: URI
digital_object:
score: Relevance
title: Title
Expand All @@ -284,6 +288,7 @@ en:
create_time: Created
asc: Ascending
desc: Descending
uri: URI
digital_object_component:
score: Relevance
title: Title
Expand All @@ -297,6 +302,7 @@ en:
create_time: Created
asc: Ascending
desc: Descending
uri: URI
agent:
score: Relevance
title: Name
Expand All @@ -311,6 +317,7 @@ en:
create_time: Created
asc: Ascending
desc: Descending
uri: URI
location:
score: Relevance
title: Location
Expand Down Expand Up @@ -368,6 +375,7 @@ en:
create_time: Created
asc: Ascending
desc: Descending
uri: URI
assessment:
score: Relevance
assessment_id: Assessment ID
Expand Down Expand Up @@ -399,6 +407,7 @@ en:
create_time: Created
asc: Ascending
desc: Descending
uri: URI
top_container:
score: Relevance
title: Title
Expand Down