scientist-softserv / west-virginia-university

West Virginia University
0 stars 0 forks source link

🐛 Export identifier without congress archives URL #148

Closed kirkkwang closed 10 months ago

kirkkwang commented 10 months ago

Story

This commit will strip the congress archives URL from the identifier when exporting catalog results to CSV or XML format.

Also, fixed specs that were failing due to some changes.

Ref:

Expected Behavior Before Changes

CSV and XML exports had the Congress Archives URL prepended to the actual identifier. This was used in the mailer but it shouldn't be the case in the exports.

Expected Behavior After Changes

CSV and XML exports now strip the Congress Archives URL off in the final result.

search-results-2023-10-31_12_47_27.csv

XML export ```xml Robert J. Dole Institute of Politics Congressman Dole's Introduction Of Senator Barry Goldwater 1964 May 12 1964-05-12 Dole, Robert J., 1923-2021 http://rightsstatements.org/vocab/NoC-US/1.0/ eng 88th (1963-1964) Robert J. Dole Speeches Collection, 1958-1996 Collection 019, Box 1, Folder 40 https://dolearchivecollections.ku.edu/index.php?p=collections/controlcard&id=52&q= c019_001_040_all https://dolearchives.omeka.net/exhibits/show/voices-from-the-big-first/item/279 https://dolearchives.omeka.net/exhibits/show/voices-from-the-big-first/item/279 speech (document) Government Operations and Politics Goldwater, Barry M. (Barry Morris), 1909-1998; Dole, Robert J., 1923-2021 Speech given by Congressman Robert J. Dole to introduce Senator Barry Goldwater at a rally in Madison Square Garden in New York City. Text Robert J. Dole Institute of Politics Dole and Goldwater shake hands 1964 1964 Unknown http://rightsstatements.org/vocab/NKC/1.0/ zxx 88th (1963-1964) Dole Photograph Collection, 1900-2011 Collection 012, Box 6, Folder 15 https://dolearchivecollections.ku.edu/index.php?p=collections/controlcard&id=47&q= ph_006_015_002 https://dolearchives.omeka.net/exhibits/show/voices-from-the-big-first/item/323 https://dolearchives.omeka.net/exhibits/show/voices-from-the-big-first/item/323 black-and-white photograph Government Operations and Politics Test topic Goldwater, Barry M. (Barry Morris), 1909-1998; Dole, Robert J., 1923-2021 Congressman Bob Dole and Senator Barry Goldwater shaking hands with an American flag in the background. StillImage Robert J. Dole Institute of Politics Buffalo NY: Rockefeller and Dole Speeches 1976 September 16 1976-09-16 Unknown http://rightsstatements.org/vocab/CNE/1.0/ eng 94th (1975-1976) Robert J. Dole Audio Cassette Collection, 1966-1997 Collection 016, Cassette k001, Side A https://dolearchivecollections.ku.edu/index.php?p=collections/controlcard&id=50&q= c016_k001_a.mp3 https://dolearchivecollections.ku.edu/collections/1976/assets/c016_k001_a.mp3 https://dolearchivecollections.ku.edu/collections/1976/resources/ audio recording; speech (communication function) Government Operations and Politics Dole, Robert J., 1923-2021; Rockefeller, Nelson A. (Nelson Aldrich), 1908-1979 Large crowd, Rally for Republican ticket, Stump Speech on Ford & Rockefeller, NY State GOP leaders Text Robert J. Dole Institute of Politics Folder 6: D.C. Republican Women - Washington, D.C., 7 February 1977 1977 February 7 1977-02-07 Dole, Robert J., 1923-2021 http://rightsstatements.org/vocab/NoC-US/1.0/ eng 95th (1977-1978) Robert J. Dole Speeches Collection, 1958-1996 Collection 019, Box 17, Folder 6 https://dolearchivecollections.ku.edu/index.php?p=collections/controlcard&id=52&q= c019_017_006_all https://dolearchivecollections.ku.edu/collections/speeches/017/c019_017_006_all.pdf https://dolearchivecollections.ku.edu/index.php?p=collections/findingaid&id=52&q= speech (document) Economics and Public Finance Dole, Robert J., 1923-2021 Folder 6: D.C. Republican Women - Washington, D.C., 7 February 1977 Text Robert J. Dole Institute of Politics Senator Bob Dole addressing farmers at Senate Agriculture Committee Hearings, 1979 1979 1979 Unknown https://creativecommons.org/publicdomain/mark/1.0/ zxx 96th (1979–1981) Dole Photograph Collection (Old Arrangement - For Reference Only), 1880-1996 Collection 36719, Box 45: A [1], Folder 704 https://dolearchivecollections.ku.edu/index.php?p=collections/controlcard&id=9 pla_1_102 https://dolearchivecollections.ku.edu/index.php?p=digitallibrary/digitalcontent&id=1607 black-and-white photograph StillImage Robert J. Dole Institute of Politics Ronald Reagan to Bob Dole, 1981-12-23 1981 December 23 1981-12-23 Reagan, Ronald http://rightsstatements.org/vocab/CNE/1.0/ eng 97th (1981–1983) VIP Letters, 1960-2008 Collection 020, Box 12, Item 22 https://dolearchivecollections.ku.edu/index.php?p=collections/findingaid&id=55&q= c020_012_000_022 https://dolearchivecollections.ku.edu/collections/vip_letters/c020_012_000_022.pdf https://dolearchivecollections.ku.edu/index.php?p=collections/findingaid&id=55&q=&rootcontentid=162379#id162379 correspondence Reagan, Ronald; Dole, Robert J., 1923-2021 Letter from President of the United States Ronald Reagan to Senator Bob Dole thanking him for agreeing to serve on the new National Commission on Social Security Reform. Text Robert J. Dole Institute of Politics "Social Security Rescued" Press Release and Newsletter 1983 June 1983-06 Dole, Robert J., 1923-2021 https://creativecommons.org/publicdomain/mark/1.0/ eng 98th (1983-1985) Digitized Press Releases, 1961-1996 Collection 015, Box 26, Folder 2 https://dolearchivecollections.ku.edu/index.php?p=collections/controlcard&id=40&q= s-press_026_002_001 https://dolearchivecollections.ku.edu/collections/press_releases/s-press_026_002_001.pdf https://dolearchivecollections.ku.edu/index.php?p=collections/findingaid&id=40&q= newsletter; press release Social Welfare Dole, Robert J., 1923-2021 Text Robert J. Dole Institute of Politics Ronald Reagan Signing Social Security Act Outside 1983 April 18 1983-04-18 Unknown http://rightsstatements.org/vocab/CNE/1.0/ zxx 98th (1983–1985) Dole Photograph Collection, 1900-2011 Collection 012, Box 54, Folder 2 https://dolearchivecollections.ku.edu/index.php?p=collections/findingaid&id=47&q= ph_054_012_002 https://dolearchivecollections.ku.edu/index.php?p=digitallibrary/digitalcontent&id=286 https://dolearchivecollections.ku.edu/index.php?p=collections/findingaid&id=47&q= color photograph Kansas Senator Bob Dole, Representative Claude Pepper, Senator Daniel P. Moynihan, Representative Barber Conable, and House Speaker "Tip" O'Neill watch as President Reagan signs the "Social Security Amendments of 1983" into law. StillImage Robert J. Dole Institute of Politics Dole at White House Social Security Signing Session Hails Bipartisan Package, 4/20/1983 1983 April 20 1983-04-20 Dole, Robert J., 1923-2021 http://rightsstatements.org/vocab/CNE/1.0/ eng 97th (1981–1983) Digitized Press Releases, 1961-1996 Collection 015, Box 25, Folder 16 https://dolearchivecollections.ku.edu/index.php?p=collections/findingaid&id=40&q= s-press_025_016_020 https://dolearchivecollections.ku.edu/collections/press_releases/s-press_025_016_020.pdf https://dolearchivecollections.ku.edu/index.php?p=collections/findingaid&id=40&rootcontentid=191544&q=social+security#id191639 press release Text Robert J. Dole Institute of Politics Statement of Senator Dole on S. 1 "the Social Security Amendments of 1983" 1983 January 26 1983-01-26 Dole, Robert J., 1923-2021 http://rightsstatements.org/vocab/CNE/1.0/ eng 97th (1981–1983) Digitized Press Releases, 1961-1996 Collection 015, Box 25, Folder 13 https://dolearchivecollections.ku.edu/index.php?p=collections/findingaid&id=40&q= s-press_025_013_018 https://dolearchivecollections.ku.edu/collections/press_releases/s-press_025_013_018.pdf https://dolearchivecollections.ku.edu/index.php?p=collections/findingaid&id=40&rootcontentid=191544&q=social+security#id191567 press release Text Robert J. Dole Institute of Politics Social Security Rescued, 1983 1983 1983 Dole, Robert J., 1923-2021 http://rightsstatements.org/vocab/CNE/1.0/ eng 97th (1981–1983) Digitized Press Releases, 1961-1996 Collection 015, Box 25, Folder 15 https://dolearchivecollections.ku.edu/index.php?p=collections/findingaid&id=40&q= s-press_025_015_002 https://dolearchivecollections.ku.edu/collections/press_releases/s-press_025_015_002.pdf https://dolearchivecollections.ku.edu/index.php?p=collections/findingaid&id=40&rootcontentid=191544&q=social+security#id191549 newsletter; press release Text Robert J. Dole Institute of Politics Ronald Reagan to Bob Dole, 1983-03-05 1983 March 5 1983-03-05 Reagan, Ronald http://rightsstatements.org/vocab/CNE/1.0/ eng 97th (1981–1983) VIP Letters, 1960-2008 Collection 020, Box 12, Item 42 https://dolearchivecollections.ku.edu/index.php?p=collections/findingaid&id=55&q= c020_012_000_042 https://dolearchivecollections.ku.edu/collections/vip_letters/c020_012_000_042.pdf https://dolearchivecollections.ku.edu/index.php?p=collections/findingaid&id=55&q=&rootcontentid=162379#id162379 correspondence Reagan, Ronald; Dole, Robert J., 1923-2021 Letter from President of the United States Ronald Reagan to Senator Bob Dole giving Dole the signing pen from H.R. 1900, the Social Security Amendments of 1983. Text Robert J. Dole Institute of Politics Ronald Reagan to Bob Dole, 1983-04-26 1983 April 26 1983-04-26 Reagan, Ronald http://rightsstatements.org/vocab/CNE/1.0/ eng 97th (1981–1983) VIP Letters, 1960-2008 Collection 020, Box 12, Item 43 https://dolearchivecollections.ku.edu/index.php?p=collections/findingaid&id=55&q= c020_012_000_043 https://dolearchivecollections.ku.edu/collections/vip_letters/c020_012_000_043.pdf https://dolearchivecollections.ku.edu/index.php?p=collections/findingaid&id=55&q=&rootcontentid=162379#id162379 correspondence Reagan, Ronald; Dole, Robert J., 1923-2021 Letter from President of the United States Ronald Reagan to Senator Bob Dole thanking him for support of the Senate Concurrent Resolution 26, to deploy 100 peacekeepers missiles and develop a new single-warhead ICBM. Text Hawaiʻi Congressional Papers Collection, University of Hawaiʻi at Mānoa Library, Honolulu, HI S. 1988, Native American Diabetes Bill April 15, 1986 1986-04-15 Inouye, Daniel K., 1924-2012 http://rightsstatements.org/vocab/NKC/1.0/ eng 99th (1985-1987) Senator Daniel K. Inouye Papers MANUSCRIPT-HCPC00011, Speeches, Box SP7, Folder 56 https://archivesspace.library.manoa.hawaii.edu/repositories/4/resources/15 http://hdl.handle.net/10524/63351 https://evols.library.manoa.hawaii.edu/bitstreams/afaa1edc-a6e3-4cd4-98ff-47c7ee6ab88a/download https:/evols.library.manoa.hawaii.edu/items/02535087-4cb7-4841-8749-e1bf3508020f speeches (documents) Native Americans; Health 4 Pages Text Robert J. Dole Institute of Politics Senator Bob Dole welcoming Queen Elizabeth II to the Capitol 1991 1991 United States. Congress. Senate. https://creativecommons.org/publicdomain/mark/1.0/ zxx 102nd (1991-1993) Dole Photograph Collection, 1900-2011 Collection 012, Box 35, Folder 31 https://dolearchivecollections.ku.edu/index.php?p=collections/findingaid&id=47&q= ph_035_041_001 https://dolearchivecollections.ku.edu/index.php?p=digitallibrary/digitalcontent&id=1648 https://dolearchivecollections.ku.edu/index.php?p=digitallibrary/digitalcontent&id=1648 color photograph International Affairs Elizabeth II, Queen of Great Britain, 1926-2022; Dole, Robert J., 1923-2021 Senator Bob Dole shakes hands with Queen Elizabeth II as she arrives at the U.S. Capitol. StillImage Robert J. Dole Institute of Politics Senator Bob Dole Oral History, 2007-10-16 2007 October 16 2007-10-16 Richard Norton Smith http://rightsstatements.org/vocab/CNE/1.0/ eng 110th (2007–2009) Dole Institute Oral History Project, 2002-2009 Collection 018, Bob Dole Oral History from 2007-10-16 https://dolearchivecollections.ku.edu/index.php?p=collections/findingaid&id=51&q= dole_bob_2007-10-16 https://dolearchivecollections.ku.edu/collections/oral_history/mp3/dole_bob_2007-10-16.mp3 https://dolearchives.omeka.net/items/show/335 oral history (discipline) In this 2007 oral history interview with Richard Norton Smith, Dole talks about Reagan-era issues, including supply-side economics, Social Security reform, the White House staff, Dole's role as Majority Leader in the Senate, and other topics. Sound Robert J. Dole Institute of Politics Kassebaum-Baker, Sen. Nancy, 4/16/2009 2009 April 16 2009-04-16 Williams, Brien R. http://rightsstatements.org/vocab/CNE/1.0/ eng 111th (2009-2010) Dole Institute Oral History Project, 2002-2009 Collection 018, Nancy Kassebaum-Baker Oral History from 2009-04-16 https://dolearchivecollections.ku.edu/index.php?p=collections/findingaid&id=51&q= kassebaum-baker_nancy_2009-04-16 https://dolearchivecollections.ku.edu/collections/oral_history/mp3/kassebaum-baker_nancy_2009-04-16.mp3 https://dolearchives.omeka.net/items/show/234 sound Agriculture and Food, Health, International Affairs Dole, Robert J., 1923-2021; Baker, Nancy Kassebaum, 1932- In this 2009 oral history interview with Brien R. Williams, Kassebaum-Baker talks about Senator Dole's work ethic and the issues of abortion, the Panama Canal, and wheat subsidies on the campaign trail. Baker represented Kansas in the U.S. Senate (1978-1997). She was the first female senator not elected to a seat held by her husband nor appointed to fill out a deceased husband’s term. Sound Robert J. Dole Institute of Politics Kassebaum-Baker, Sen. Nancy, 4/16/2009 2009 April 16 2009-04-16 Williams, Brien R. http://rightsstatements.org/vocab/CNE/1.0/ eng 111th (2009-2010) Dole Institute Oral History Project, 2002-2009 Collection 018, Nancy Kassebaum-Baker Oral History from 2009-04-16 https://dolearchivecollections.ku.edu/index.php?p=collections/findingaid&id=51&q= LSqyFpjhe3g https://www.youtube.com/watch?v=LSqyFpjhe3g https://dolearchives.omeka.net/items/show/234 moving image Agriculture and Food, Health, International Affairs Dole, Robert J., 1923-2021; Baker, Nancy Kassebaum, 1932- In this 2009 oral history interview with Brien R. Williams, Kassebaum-Baker talks about Senator Dole's work ethic and the issues of abortion, the Panama Canal, and wheat subsidies on the campaign trail. Baker represented Kansas in the U.S. Senate (1978-1997). She was the first female senator not elected to a seat held by her husband nor appointed to fill out a deceased husband’s term. MovingImage ```