Skip to content

Commit

Permalink
Test failing for the right reason
Browse files Browse the repository at this point in the history
  • Loading branch information
maxkadel committed Jul 27, 2023
1 parent 4a89134 commit ed015d1
Show file tree
Hide file tree
Showing 4 changed files with 460 additions and 0 deletions.
16 changes: 16 additions & 0 deletions spec/features/browsables_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,22 @@
it 'has the library name if it exists' do
expect(page).to have_xpath('//*[@id="content"]/table/tbody/tr[3]//td[2]', text: 'Firestone Library - Near East Collections')
end

context 'with oversize CDs' do
before do
visit '/browse/call_numbers?search_field=browse_cn&q=CD-+40056q'
end

it 'sorts Oversize CDs with other CDs' do
pending("Fixing CD oversize sorting")
within(:xpath, '//*[@id="content"]/table/tbody') do
expect(page.find('tr[2]/td[1]/a').text).to eq("CD- 40055")
expect(page.find('tr[3]/td[1]').text).to eq('Your query "CD- 40056q" would be here.')
expect(page.find('tr[4]/td[1]/a').text).to eq("CD- 40056q Oversize")
expect(page.find('tr[5]/td[1]/a').text).to eq("CD- 40057")
end
end
end
end

describe 'Browse by author-title heading' do
Expand Down
148 changes: 148 additions & 0 deletions spec/fixtures/alma/9961023373506421.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,148 @@
{
"id": "9961023373506421",
"numeric_id_b": true,
"author_display": [
"Peterson, Oscar, 1925-2007"
],
"author_citation_display": [
"Peterson, Oscar"
],
"author_roles_1display": "{\"secondary_authors\":[],\"translators\":[],\"editors\":[],\"compilers\":[],\"primary_author\":\"Peterson, Oscar\"}",
"author_s": [
"Peterson, Oscar, 1925-2007"
],
"marc_relator_display": [
"Author"
],
"title_display": "Paris jazz concert [sound recording] / Oscar Peterson.",
"title_t": [
"Paris jazz concert [sound recording] / Oscar Peterson."
],
"title_citation_display": [
"Paris jazz concert"
],
"compiled_created_t": [
"Paris jazz concert [sound recording] / Oscar Peterson."
],
"pub_created_display": [
"[France] : Europe 1, p1993."
],
"pub_created_s": [
"[France] : Europe 1, p1993."
],
"pub_citation_display": [
"France: Europe 1"
],
"pub_date_display": [
"1993"
],
"pub_date_start_sort": 1993,
"pub_date_end_sort": 1957,
"cataloged_tdt": "2010-04-19T00:00:00Z",
"format": [
"Audio"
],
"description_display": [
"6 sound discs : digital ; 4³/₄ in."
],
"description_t": [
"6 sound discs : digital ; 4³/₄ in."
],
"number_of_pages_citation_display": [
"6 sound discs"
],
"notes_display": [
"Europe 1: 710443--710448.",
"Title on container label: Oscar Peterson in concert with Europe 1 : Pour ceux qui aiment le jazz.",
"\"Jazz concerts ... organized in Paris and broadcast as part of [the Europe 1] radio program For those who love jazz\"--program notes (p. [2]).",
"Compact discs.",
"Program notes (51 p. : ill., ports) inserted."
],
"date_place_event_notes_display": [
"Recorded in Paris between 1957 and 1969."
],
"participant_performer_display": [
"Oscar Peterson, piano ; with various performers."
],
"language_name_display": [
"No linguistic content"
],
"language_iana_s": [
"en"
],
"contents_display": [
"CD1. Man I love (3:54) ; Schooldays (4:36) ; Bugle call rag (2:49) ; Daahoud (7:20) ; Stockholm sweetenin' (5:47) ; Soft winds (6:26) ; After hours (7:57) ; On Green Dolphin Street (7:34) ; Band call (7:15) ; I remember Clifford (8:11) ; Where do I go from here (3:48) ; Satin doll (6:43) --",
"CD2. Six and four (7:58) ; But notfFor me (3:23) ; Mainstemg(4:28) ; I've got a crush on you, Little girl blue (5:35) ; Bonzo blues (4:58) ; Reunion blues (5:21) ; Wheatland (7:49) ; Nightingale (3:35) ; Hymn to freedom (6:07) ; Yours is my heart alone, Blues for big Scottia (9:46) --",
"CD3. I could write a book (4:04) ; Jordu (5:13) ; Bye bye blackbird (6:43) ; Jeru (5 52) ; llwind (6:06) ; Soon (3:43) ; Hallelujah trail (7:05) ; Yesterdays (4:52) ; Keyboard blues (5:20) ; Lill Darlin' (6:43) ; Tangerine (4:53) ; My foolish heart (7:44).",
"CD4. Mack the Knife (6:43) ; Blues for Smedley (5:32) ; Misty (5:50) ; Mumble (1:52) ; Blues etude (concert opening) (5:43) ; You look good to me (7:30) ; Stella by starlight (4:46) ; Moanin' (6:24) ; Shelley's world (9:03) ; Autumn leaves (6:35)",
"CD5. Hogtown blues (7:38) ; Waltz for Debby (8:41) ; Between the devil & the deep blue sea (8:23) ; My one and only love (7:58) ; In a mellotone (5:35) ; Lamp is low (7:16) ; On a clear day (4:40) ; Triste (6:19) ; Down here on the ground (8:46) --",
"CD6. Tristeza (4:13) ; By the time I get to Phoenix, I concentrate on you (9:55) ; Let's fall in love (3:36) ; Someday my Prince will come (4:26) ; Lined with a groove (4:48) ; Billie's bounce (5:04) ; Fly me to the moon (4:19) ; Squeaky's blues (5:04) ; The days of wine & roses (7:22) ; Waltzing is hip (7:42) ; Blues etude (concert closing) (4:56)."
],
"source_acquisition_display": [
"Bob Rickles Jazz Collection donated by Doris Rickles"
],
"lc_subject_display": [
"Piano music (Jazz)",
"Jazz—1951-1960",
"Jazz—1961-1970"
],
"subject_facet": [
"Piano music (Jazz)",
"Jazz—1951-1960",
"Jazz—1961-1970",
"Jazz"
],
"lcgft_s": [
"Jazz"
],
"other_title_display": [
"Oscar Peterson in concert with Europe 1"
],
"alt_title_246_display": [
"Oscar Peterson in concert with Europe 1"
],
"publisher_no_display": [
"710443",
"710444",
"710445",
"710446",
"710447",
"710448"
],
"oclc_s": [
"82001924"
],
"other_version_s": [
"ocm82001924"
],
"subject_era_facet": [
"1951-1960",
"1961-1970"
],
"holdings_1display": "{\"22515372400006421\":{\"location_code\":\"mendel$stacks\",\"location\":\"Stacks\",\"library\":\"Mendel Music Library\",\"call_number\":\"CD- 40056q Oversize\",\"call_number_browse\":\"CD- 40056q Oversize\",\"sub_location\":[\"Oversize\"],\"items\":[{\"holding_id\":\"22515372400006421\",\"enumeration\":\"Disc 3\",\"id\":\"23515372370006421\",\"status_at_load\":\"1\",\"barcode\":\"32101052361548\",\"copy_number\":\"1\"},{\"holding_id\":\"22515372400006421\",\"enumeration\":\"Disc 2\",\"id\":\"23515372380006421\",\"status_at_load\":\"1\",\"barcode\":\"32101052361530\",\"copy_number\":\"1\"},{\"holding_id\":\"22515372400006421\",\"enumeration\":\"Disc 1\",\"id\":\"23515372390006421\",\"status_at_load\":\"1\",\"barcode\":\"32101052361522\",\"copy_number\":\"1\"},{\"holding_id\":\"22515372400006421\",\"enumeration\":\"Disc 5\",\"id\":\"23515372350006421\",\"status_at_load\":\"1\",\"barcode\":\"32101052361563\",\"copy_number\":\"1\"},{\"holding_id\":\"22515372400006421\",\"enumeration\":\"Disc 6\",\"id\":\"23515372340006421\",\"status_at_load\":\"1\",\"barcode\":\"32101052361571\",\"copy_number\":\"1\"},{\"holding_id\":\"22515372400006421\",\"enumeration\":\"Disc 4\",\"id\":\"23515372360006421\",\"status_at_load\":\"1\",\"barcode\":\"32101052361555\",\"copy_number\":\"1\"},{\"holding_id\":\"22515372400006421\",\"enumeration\":\"booklet\",\"id\":\"23515372330006421\",\"status_at_load\":\"1\",\"barcode\":\"32101070835291\",\"copy_number\":\"1\"}],\"location_has\":[\"Disc 1-disc 6; booklet\"],\"supplements\":[null],\"indexes\":[null]}}",
"location_code_s": [
"mendel$stacks"
],
"location": [
"Mendel Music Library"
],
"location_display": [
"Stacks"
],
"advanced_location_s": [
"mendel$stacks",
"Mendel Music Library"
],
"name_title_browse_s": [
"Peterson, Oscar, 1925-2007. Paris jazz concert"
],
"call_number_display": [
"Oversize CD- 40056q"
],
"call_number_browse_s": [
"CD- 40056q Oversize"
],
"call_number_locator_display": [
"CD- 40056q"
]
}
151 changes: 151 additions & 0 deletions spec/fixtures/alma/9969113523506421.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,151 @@
{
"id": "9969113523506421",
"numeric_id_b": true,
"author_display": [
"Paisiello, Giovanni, 1740-1816"
],
"author_citation_display": [
"Paisiello, Giovanni",
"Petrosellini, Giuseppe",
"Ivanova, Marina",
"Saudelli, Patrizio",
"Ruggeri, Gianpiero",
"Tisi, Ezio Maria",
"Tosi, Gian Carlo",
"Keitel, Wilhelm",
"Beaumarchais, Pierre Augustin Caron de",
"Putbus Festival Chorus",
"Putbus Festival Orchestra"
],
"author_roles_1display": "{\"secondary_authors\":[\"Petrosellini, Giuseppe\",\"Ivanova, Marina\",\"Saudelli, Patrizio\",\"Ruggeri, Gianpiero\",\"Tisi, Ezio Maria\",\"Tosi, Gian Carlo\",\"Keitel, Wilhelm\",\"Beaumarchais, Pierre Augustin Caron de\",\"Putbus Festival Chorus\",\"Putbus Festival Orchestra\"],\"translators\":[],\"editors\":[],\"compilers\":[],\"primary_author\":\"Paisiello, Giovanni\"}",
"author_s": [
"Paisiello, Giovanni, 1740-1816",
"Petrosellini, Giuseppe",
"Ivanova, Marina, 1964-",
"Saudelli, Patrizio",
"Ruggeri, Gianpiero",
"Tisi, Ezio Maria",
"Tosi, Gian Carlo",
"Keitel, Wilhelm",
"Beaumarchais, Pierre Augustin Caron de, 1732-1799",
"Putbus Festival Chorus",
"Putbus Festival Orchestra"
],
"marc_relator_display": [
"Author"
],
"title_display": "Il barbiere di Siviglia [sound recording] / Giovanni Paisiello.",
"title_t": [
"Il barbiere di Siviglia [sound recording] / Giovanni Paisiello."
],
"title_citation_display": [
"Il barbiere di Siviglia"
],
"compiled_created_t": [
"Il barbiere di Siviglia [sound recording] / Giovanni Paisiello."
],
"pub_created_display": [
"[Germany] : Arte Nova Classics : Distributed by the Local BMG Co., p1997."
],
"pub_created_s": [
"[Germany] : Arte Nova Classics : Distributed by the Local BMG Co., p1997."
],
"pub_citation_display": [
"Germany: Distributed by the Local BMG Co."
],
"pub_date_display": [
"1997"
],
"pub_date_start_sort": 1997,
"cataloged_tdt": "2011-12-02T00:00:00Z",
"format": [
"Audio"
],
"description_display": [
"2 sound discs (104 min.) : digital ; 4 3/4 in."
],
"description_t": [
"2 sound discs (104 min.) : digital ; 4 3/4 in."
],
"number_of_pages_citation_display": [
"2 sound discs (104 min.)"
],
"series_display": [
"Putbus Edition"
],
"notes_display": [
"Comic opera in 2 acts.",
"Libretto by Giuseppe Petrosellini, based on: Barbier de Séville / Pierre Augustin Caron de Beaumarchais.",
"Compact discs.",
"Program notes by Daniel Brandenburg, synopsis, and notes on the performers in English, French, and German, and Italian libretto inserted in container (47 p.)."
],
"date_place_event_notes_display": [
"Recorded May 17, 21, 28, 1997 in Marstall zu Putbus, Rügen."
],
"participant_performer_display": [
"Marina Ivanova, soprano ; Patrizio Saudelli, tenor ; Gianpiero Ruggeri, baritone ; Ezio Maria Tisi, Giancarlo Tosi, basses ; supporting soloists ; Putbus Festival Orchestra ; Putbus Festival Chorus ; Wilhelm Keitel, conductor."
],
"language_display": [
"Sung in Italian."
],
"language_name_display": [
"Italian"
],
"language_facet": [
"Italian"
],
"language_iana_s": [
"it"
],
"source_acquisition_display": [
"Gift of Princeton music professor emeritus Kenneth Levy."
],
"lc_subject_display": [
"Operas"
],
"subject_facet": [
"Operas"
],
"lcgft_s": [
"Operas"
],
"related_name_json_1display": "{\"Related name\":[\"Petrosellini, Giuseppe\",\"Ivanova, Marina, 1964-\",\"Saudelli, Patrizio\",\"Ruggeri, Gianpiero\",\"Tisi, Ezio Maria\",\"Tosi, Gian Carlo\",\"Keitel, Wilhelm\",\"Putbus Festival Chorus\",\"Putbus Festival Orchestra\"]}",
"related_works_1display": "[[\"Beaumarchais, Pierre Augustin Caron de, 1732-1799.\",\"Barbier de Séville.\"]]",
"publisher_no_display": [
"74321 49702 2"
],
"standard_no_1display": "{\"Universal Product Code\":[\"4321497022\"]}",
"oclc_s": [
"40810988"
],
"other_version_s": [
"ocm40810988"
],
"holdings_1display": "{\"22714856460006421\":{\"location_code\":\"mendel$stacks\",\"location\":\"Stacks\",\"library\":\"Mendel Music Library\",\"call_number\":\"CD- 40055\",\"call_number_browse\":\"CD- 40055\",\"items\":[{\"holding_id\":\"22714856460006421\",\"id\":\"23714856450006421\",\"status_at_load\":\"1\",\"barcode\":\"32101053024632\",\"copy_number\":\"1\"}]}}",
"location_code_s": [
"mendel$stacks"
],
"location": [
"Mendel Music Library"
],
"location_display": [
"Stacks"
],
"advanced_location_s": [
"mendel$stacks",
"Mendel Music Library"
],
"name_title_browse_s": [
"Beaumarchais, Pierre Augustin Caron de, 1732-1799. Barbier de Séville",
"Paisiello, Giovanni, 1740-1816. Il barbiere di Siviglia"
],
"call_number_display": [
"CD- 40055"
],
"call_number_browse_s": [
"CD- 40055"
],
"call_number_locator_display": [
"CD- 40055"
]
}
Loading

0 comments on commit ed015d1

Please sign in to comment.