From 3215e92d44c45b0f1cac7cc7e3f9192b132f800e Mon Sep 17 00:00:00 2001 From: Eric Larson Date: Thu, 7 Dec 2023 14:34:45 -0600 Subject: [PATCH] Update api_controller.rb Move Accession Date to preferred location. --- app/controllers/admin/api_controller.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/controllers/admin/api_controller.rb b/app/controllers/admin/api_controller.rb index 7f78e005f..a1021c316 100644 --- a/app/controllers/admin/api_controller.rb +++ b/app/controllers/admin/api_controller.rb @@ -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 @@ -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