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:
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: