Browse | The "Type of heading" facet option doesn't display zero in the hit count when no results are returned.

Description

Overview: according to work which was made in scope of https://folio-org.atlassian.net/browse/UIMARCAUTH-191 we need to have constancy in behavior of all filters when browsing for "MARC Authority" records when no results are returned to result list.
Steps to Reproduce:

  1. Log into Snapshot FOLIO environment as User with the following permissions:
    MARC Authority: View MARC authority record

  2. Go to "MARC Authority" app

  3. Select "Browse" toggle

  4. Select at least one "Type of heading" facet value.

  5. Select any "Browse option" (e.g.: "Genre")

  6. Enter a browse query that will return zero results (e.g.: "Test")

  7. Click on the "Search" button.

  8. Check the selected "Type of heading" facet value in multiselect element titled "Type of heading".

Expected Results: The selected facet value name with a hit count of zero is displayed.
Actual Results: All facet options with hit count of all existing records in the "MARC Authority" app are displayed.
Additional Information: see attached screencast
Interested parties: ,  

CSP Request Details

None

CSP Rejection Details

None

Potential Workaround

None

Attachments

2

Checklist

hide

TestRail: Results

Activity

Show:

Pavlo Smahin December 12, 2022 at 11:48 AM

I think we should refine how browse should work with facets.
1. There is no sense to have facets available until the query is provided. The browse is based on a query around lookup and not just searching it by some parameters (we have a search tab for it). So facets should be used only for filtering browse results.
2. There is no sense to have a Heading type facet available on any option but Name-title because only Name-title can have different values for the Heading type.

cc:

Dmytro Melnyshyn December 10, 2022 at 9:57 AM

Hi more details in the attached video

Is it correct behavior that the headingType facet returns records even though the authority request doesn't return records?

Pavlo Smahin December 9, 2022 at 10:17 PM

Hi , I didn't get it. Could you please provide more details, maybe with responses and examples?

Dmytro Melnyshyn December 9, 2022 at 3:41 PM

Hi, headingType facet returns records when there are no authority records. For the sourceFileId facet, it returns the total records as 0. Is this a BE issue?

Won't Do

Details

Assignee

Reporter

Priority

Story Points

Development Team

Spitfire

Release

Ramsons (R2 2024)

RCA Group

TBD

TestRail: Cases

Open TestRail: Cases

TestRail: Runs

Open TestRail: Runs
Created October 26, 2022 at 1:57 PM
Updated January 10, 2024 at 12:00 AM
Resolved January 10, 2024 at 12:00 AM
TestRail: Cases
TestRail: Runs