Skip to content

Commit

Permalink
Update api_controller.rb
Browse files Browse the repository at this point in the history
Move Accession Date to preferred location.
  • Loading branch information
ewlarson committed Dec 7, 2023
1 parent efeca2d commit 3215e92
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/controllers/admin/api_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,9 @@ class ApiController < ApplicationController
# Publication State
config.add_facet_field Settings.FIELDS.B1G_PUBLICATION_STATE, :label => 'Publication State', :limit => 8, collapse: false

# Accession Date
config.add_facet_field Settings.FIELDS.B1G_DATE_ACCESSIONED, :label => 'Date Accessioned', :limit => 8, collapse: false

# Import ID
config.add_facet_field Settings.FIELDS.B1G_IMPORT_ID, label: "Import ID", show: false

Expand All @@ -144,8 +147,6 @@ class ApiController < ApplicationController

# ADVANCED SEARCH
#
# Accession Date
config.add_facet_field Settings.FIELDS.B1G_DATE_ACCESSIONED, :label => 'Date Accessioned', :limit => 8, collapse: false, sort: "index"

# Code
config.add_facet_field Settings.FIELDS.B1G_CODE, label: 'Code', show: false
Expand Down

0 comments on commit 3215e92

Please sign in to comment.