Skip to content

Commit

Permalink
Admin::API - Add Date Accessioned to advanced search page
Browse files Browse the repository at this point in the history
  • Loading branch information
ewlarson committed Dec 7, 2023
1 parent 2f5e6ac commit 8353259
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/controllers/admin/api_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,9 @@ 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
1 change: 1 addition & 0 deletions config/settings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ FIELDS:
:WXS_IDENTIFIER: 'gbl_wxsIdentifier_s'
# B1G Custom Fields Geoportal / GEOMG
:B1G_ACCESS: 'b1g_access_s'
:B1G_DATE_ACCESSIONED: 'b1g_dateAccessioned_sm'
:B1G_ACCRUAL_METHOD: 'b1g_dct_accrualMethod_s'
:B1G_CHILD_RECORD: 'b1g_child_record_b'
:B1G_CODE: 'b1g_code_s'
Expand Down

0 comments on commit 8353259

Please sign in to comment.