Pre-populate search/browse box with bib subfield values

Description

Requirement : If user clicks the link icon that displays the MARC authority plug-in then populate the Search or Browse based on the following table 

Populate search rules order

bib subfield 

Default tab: Search/Browse

bib subfield value

MARC authority plug-in populates

Example records will be provided

1

$0 (just one) 

Search 

id.loc.gov/authorities/names//n91065740

  • Search tab selected 

  • Search option selected = Identifier (all)

  • Search box populate = n91065740

  • Authority source facet default: no selection

  • See Example 1 screenshot

Yes

2

$0 (multiples) 

Search 

id.loc.gov/authorities/names//n91065740
id.loc.gov/authorities/names//n91065739

  • Search tab selected 

  • Search option selected = Advanced search

  • Search box populate = identifiers.value==n91065740 or identifiers.value==n91065739

  • Authority source facet default: no selection

  • See Example 2 screenshot

Yes

3

No subfield $0 but has $a , or $d , or $t (whatever is present) 

Browse

$a Chin, Staceyann $d1972- $t Crossfire 

  • Browse tab selected 

  • Browse option selected based on bib field number 

  • Browse box populate = Chin, Staceyann 1972 crossfire

  • Authority source facet default: No selection 

Yes

4

If no $0,  $a, $d, or $t is present 

Browse

Field only has $e 

  • Browse tab selected 

  • Browse option selected based on bib field number 

  • Browse box populate = nothing 

  • Authority source facet default: No selection

No

5

No subfields (in other words empty MARC field)

Browse

Field is empty

  • Browse tab selected 

  • Browse option selected based on bib field number 

  • Browse box populate = nothing 

  • Authority source facet default: No selection 

No

 

 
 
 
 

Example 1 screenshot 

Example 2 screenshot

 

Additional requirement: Authority source file facet: Do not default select Authority source file.

Search/Browse toggle handling requirements:

Scenario 1

Given the MARC bib field contains one $0 

And the user clicks on the link icon

AND Select a MARC authority record plug-in displays

AND Identifier (all) search is run 

When they select Browse tab 

Then set the Browse option to the MARC bib field number 

AND do not set the Authority source file facet 

 

Scenario 2

Given the MARC bib field contains multiple $0 

And the user clicks on the link icon

AND Select a MARC authority record plug-in displays

AND Advanced search is run 

When they select Browse tab 

Then set the Browse option to the MARC bib field number 

AND do not set the Authority source file facet 

 

Scenario 3 

Given I clicked on a the link icon next to a MARC bib field 

AND that MARC bib field does not have a $0 

AND Select a MARC authority record plug-in displays 

AND Browse tab is selected 

AND Browse list displays 

When I click on the Search tab 

Then set the Search option to the MARC bib field number 

AND do not set the Authority source file facet 

 

Scenario 4

Given I clicked on a the link icon next to a MARC bib field 

AND that MARC bib field has no subfield values 

AND Select a MARC authority record plug-in displays 

AND Browse tab is selected 

When I click on the Search tab 

Then set the Search option to the MARC bib field number 

AND do not set the Authority source file facet 

 

Scenario 5

Given I clicked on a the link icon next to a MARC bib field 

AND Select a MARC authority record plug-in displays 

AND Browse tab is selected 

AND user clicks on Search 

When user clicks Browse again  

Then retain the last selected Browse option/Browse query/Browse results/Browse facet/filter selections

AND only clear when user hits Reset.
 

Scenario 6

Given I clicked on a the link icon next to a MARC bib field 

AND Select a MARC authority record plug-in displays 

AND Search tab is selected 

AND user clicks on Browse

When user clicks Search again  

Then retain the last selected Search option/Search query/Search results/Search facet/filter selections

AND only clear when user hits Reset.

Note for QA:
According to the comments from 
Scenarios 5 and 6 should be applied to the "MARC authority" app in the scope of this story.
See screenshot:

 

 

Environment

None

Potential Workaround

None

Attachments

12

Checklist

hide

TestRail: Results

Activity

Show:

Valery_Pilko April 21, 2023 at 7:01 AM

Verified for plugin "Select MARC authority" - works as expected, see comment here:

Note: Issues found in "MARC authority" app will be fixed in scope of this story:

Yauhen Viazau April 19, 2023 at 11:54 AM

Tested in "MARC authority" app only on Snapshot-1.

Issues found when switching between Search/Browse and then switching back:

  • search/browse option not retained

  • results page not retained (e.g., if user goes to second page of results)

  • opened detail view of a record not retained (only retained when it is opened automatically in search - when only one record found)

Reset seems to working as expected (but has to be re-tested after fixes)

Please see attached screencasts:

  •  

- please review

Done

Details

Assignee

Reporter

Labels

Priority

Story Points

Sprint

Development Team

Spitfire

Fix versions

Release

Poppy (R2 2023)

TestRail: Cases

Open TestRail: Cases

TestRail: Runs

Open TestRail: Runs

Created April 11, 2023 at 11:46 AM
Updated December 21, 2023 at 5:45 PM
Resolved April 26, 2023 at 9:24 PM
TestRail: Cases
TestRail: Runs