project-lux / lux-marklogic

Code, issues, and resources related to LUX MarkLogic
Other
3 stars 2 forks source link

Add Facet for Event Class Data Type #139

Open roamye opened 1 month ago

roamye commented 1 month ago

Problem Description: A facet to filter for Event data types (activity or period) in Simple Search or Advanced Search does not currently exist.

Expected Behavior/Solution: Create facet/results for the Event scope and all its values in both Simple and Advanced Search. These results will pull from the "Type" listed in each JSON event record.

Example of record with Period Type:

{
"id": "https://lux-front-tst.collections.yale.edu/data/activity/85d48e7c-32af-4809-9c69-fa8e49fe51bc",
"type": "Period",
"_label": "War and intervention, 1950-",

Help text will also be added for each value.

Requirements: The following values will be pulled from the Type value in the JSON record:

Needed for promotion: If an item on the list is not needed, it should be crossed off but not removed.

UAT/LUX Examples:

Dependencies/Blocks: Blocking/dependency: https://github.com/project-lux/lux-frontend/issues/175

Related Github Issues:

Related links:

~Wireframe/Mockup:~ ~Place wireframe/mockup for the proposed solution at end of ticket.~

clarkepeterf commented 1 week ago

@prowns @jffcamp @roamye

I have the following for the advanced search label and the help text:

  label: 'Event Class',
  helpText:
    'Search only records that are either a "Period" or an "Activity"',

Is this correct?

roamye commented 1 week ago

@clarkepeterf

the tix has been updated within the issue to include the help text for Event Class. Help txt: Search for records categorized as either a "Period" or an "Activity"

roamye commented 4 days ago

Approved by UAT - however this tix will be closed on the 07/08 cycle when the FE can be tested.