From 70ebc0222fbf36401f2fd8ca828fac8279b4278d Mon Sep 17 00:00:00 2001 From: Kristina Spurgin Date: Thu, 6 Jun 2024 11:56:12 -0400 Subject: [PATCH 1/5] Correct subfields in default MARC config settings --- CHANGELOG.adoc | 1 + lib/kiba/extend/marc.rb | 4 ++-- lib/kiba/extend/transforms/marc/extract_meeting_name_data.rb | 5 +++-- spec/fixtures/harvard_open_data.mrc | 2 +- 4 files changed, 7 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.adoc b/CHANGELOG.adoc index 4c96cb3bd..71246d683 100644 --- a/CHANGELOG.adoc +++ b/CHANGELOG.adoc @@ -32,6 +32,7 @@ These changes are merged into the `main` branch, but have not been released. Aft === Bugfixes +* Role term and subordinate body subfields for meeting names fixed in default config. * `IterativeCleanup` now automatically extends its extending module with `Dry::Configurable` prior to defining settings that depend on `Dry::Configurable`. (PR#192) * `Kiba::Extend::Job.output?` no longer fails if given job returns Nil (PR#194) * `Reshape::FieldsToFieldGroupWithConstant` constant value is no longer added to rows with no values in the renamed/remapped value fields, when fieldmap length == 1. (PR#195) diff --git a/lib/kiba/extend/marc.rb b/lib/kiba/extend/marc.rb index e8dc5bc09..43ad2efbc 100644 --- a/lib/kiba/extend/marc.rb +++ b/lib/kiba/extend/marc.rb @@ -60,7 +60,7 @@ module Marc # @return [Array] subfields to be extracted as part of name values # from {meeting_data_tags} setting :meeting_name_part_subfields, - default: %w[a q b c d g n u], + default: %w[a q b c e d g n u], reader: true # @return [Array] subfields to be extracted as meeting role codes # from {meeting_data_tags} @@ -70,7 +70,7 @@ module Marc # @return [Array] subfields to be extracted as meeting role terms # from {meeting_data_tags} setting :meeting_role_term_subfields, - default: %w[e], + default: %w[j], reader: true # @return [Symbol] field in which to write the name value when # converting MARC data to CSV row when extracting names diff --git a/lib/kiba/extend/transforms/marc/extract_meeting_name_data.rb b/lib/kiba/extend/transforms/marc/extract_meeting_name_data.rb index 40ea33a61..788deeca1 100644 --- a/lib/kiba/extend/transforms/marc/extract_meeting_name_data.rb +++ b/lib/kiba/extend/transforms/marc/extract_meeting_name_data.rb @@ -12,14 +12,15 @@ module Marc # @example # # =001 008000714-7 # # =711 2\$aAssociation of Child Psychology Annual Conference. - # # $esponsor$evenue + # # $eSubcommittee.$jsponsor$jvenue # rec = get_marc_record(index: 6) # xform = Marc::ExtractMeetingNameData.new # results = [] # xform.process(rec){ |row| results << row } # expect(results.length).to eq(1) # row = {:sourcefield=>"711", - # :name=>"Association of Child Psychology Annual Conference", + # :name=>"Association of Child Psychology Annual "\ + # "Conference. Subcommittee", # :nametype=>"meeting", :role_code=>"", # :role_term=>"sponsor|venue", :marcid=>"008000714-7"} # expect(results.first).to eq(row) diff --git a/spec/fixtures/harvard_open_data.mrc b/spec/fixtures/harvard_open_data.mrc index c44263cfa..da36ab2d5 100644 --- a/spec/fixtures/harvard_open_data.mrc +++ b/spec/fixtures/harvard_open_data.mrc @@ -1 +1 @@ -00976aam a2200289 a 4500001001200000005001700012008004100029010001700070035005400087035002400141035004300165035003000208040001300238042001000251050002600261100002800287245010500315250001200420260005100432300002000483504004100503520006600544650002700610650002800637988001300665906000800678008000103-320020606104010.5990225s1996 pk b 000 0 eng  a 97930962  a(OCoLC)01484180z(OCoLC)35680312z(OCoLC)41668919 a(OCoLC)ocm01484180  a(EXLNZ-01GALI_NETWORK)9911119856302931 a(01GALI_KS)99705693902954 aDLCcDLC alcode00aBP166.14.D4bO37 19961 aOkarvi, Kaukab Noorani.10aDeoband to Bareilly :bthe truth /cby Allamah Kaukab Noorani Okarvi ; translated by S. G. Khawajah. aIst ed. aLahore :bZia-ul-Qurʾaan Publications,c1996. a75 p. ;c22 cm. aIncludes bibliographical references. aComparative study of Deoband and Bareilly schools of thought. 0aDeoband School (Islam) 0aBareilly School (Islam) a20020608 0DLC00811nam a2200241 a 4500001001200000005001700012008004100029035001600070041001100086100003200097245008000129246001500209246002300224250001600247260005000263300003300313500007000346500005700416600003200473752004400505988001300549906000700562008000204-820020606104010.5990211s1999 caua 000|0 per d0 aocm408738770 apereng1 aQāz̤īʹnūr, Aḥmad.10aĀrashʹnāmah :bmajmūʻah-ʾi ashʻār /cAḥmad Qāz̤īʹnūr.15aArash-name15aIn memory of Arash aChāp-i 1. aLus Ānjilis :bA. Qāz̤īʹnūr,c1999. a149, 15 p. :bill. ;c21 cm. aPoems in memory of author's son who was killed in a car accident. aPersian and English poems by author and other hands.10aQāz̤īʹnūr, Ārash. aUnited StatesbCaliforniadLos Angeles. a20020608 0MH00780nam a22002177a 4500001001200000005001700012008004100029035001600070100001800086245006600104246007600170260011300246300002100359650003200380650002400412650002000436710006400456752002200520988001300542906000700555008000307-920020606104010.5840726s1999 is |||| |||| 00||||heb|d0 aocm408196381 aGimshi, Dani.10aShiṭur ḳehilati be-Yiśraʾel uva-ʻolam /cDani Gimshi.1 iTitle on t.p. verso:aCommunity policing in Israel and around the world0 aYerushalayim :bMishṭeret Yiśraʾel, ha-Yeḥidah le-shiṭur kehilati, ha-Maṭeh ha-artsi,c759, 1999. a307 p. ;c25 cm. 0aCommunity policingzIsrael. 0aCommunity policing. 0aPolicezIsrael.2 aMishṭeret Yiśraʾel.bYeḥidah le-shiṭur ḳehilati. aIsraeldJerusalem a20020608 0MH01250nem a2200313 a 4500001001200000005001700012008004100029010002200070034001300092035001600105040001800121050002300139052001300162110002500175245002700200246002400227255005300251260006600304300009100370500017000461500005000631500008700681500001900768650005600787651002700843651004500870988001300915906000800928008000411-320020606104010.5900406s1986 cau a 1 eng  a 90681187 /MAPS1 aab443520 aocm19909062 aDLCcDLCdHLS0 aG4334.P5b1986 .H2 a4334bP52 aH.M. Gousha Company.10aStreet map of Phoenix.3 aPhoenix street map. aScale [ca. 1:44,352]. 1 in. = approx. 0.7 miles. aSan Jose, Calif. ;aNew York, NY :bH.M. Gousha Co.,c[1986?] a1 map :bboth sides, col. ;c94 x 131 cm., on sheet 97 x 68 cm., folded to 23 x 10 cm. aPanel title: Phoenix street map : including Glendale, Guadalupe, Mesa, Paradise Valley, Peoria, Scottsdale, Tempe, Tolleson, Youngtown ... and adjoining communities. aAt head of panel title: Goushā/Check Chart. aIncludes index and insets of "Downtown Phoenix" and the Mesa-Apache Junction area. a"M-KX-1527-S." 0aCentral business districtszArizonazPhoenixvMaps. 0aPhoenix (Ariz.)vMaps. 0aPhoenix Metropolitan Area (Ariz.)vMaps. a20020608 0DLC01405cam a2200349Ia 4500001001200000005001700012008004100029010001700070015001500087020001500102035001600117035002900133040003300162043001200195245005900207260010000266300004800366490004300414500009300457500008000550504007300630505015500703650002900858650002100887650002500908650002400933700001500957700001700972830004400989988001301033906000901046008000512-820050412174544.0970225s1996 gr a b 001 0 eng d agb 97035597  aGB97-35597 a090488726X0 aocm364433330 aocm36443333zocm36955126 aNYPcNYPdUIUdUKMdCUSdHCH ae-gr---00aArchaeoseismology /cedited by S. Stiros & R.E. Jones. aAthens, Greece :bInstitute of Geology & Mineal Exploration :bBritish School at Athens,c1996. aviii, 268 p. :bill., maps, plans ;c26 cm.1 aFitch Laboratory occasional paper ;v7 aAppendix: 'Thoughts on the perception of the earthquake in Greek antiquity': p. 253-257. aIndexes: 'Earthquake catalogue': p. 261-[262]; 'Subject index': p. 263-268. aIncludes bibliographical references at the end of each contribution.0 aIntroductory papers -- Archaeological and historical evidence of palaeoseismic events, and their social and cultural impacts -- Scientific approaches. 0aPaleoseismologyzGreece. 0aGeologyzGreece. 0aEarthquakeszGreece. 0aSeismologyzGreece.1 aStiros, S.1 aJones, R. E. 0aFitch Laboratory occasional paper ;v7. a20020608 0OCLC01532nam a2200349Ia 4500001001200000005001700012008004100029020001000070035001600080037002500096040001800121043001200139074000900151086002100160088002300181110001900204240005000223245043400273246006400707260008900771300002100860500001900881500003400900500003400934500002200968500002600990650002901016650005901045650005601104988001301160906000901173008000613-220020606104010.5990128s1998 dcu l f000 0 eng d c$1.000 aocm40693213 a869-036-00152-4bGPO aGPOcGPOdHLS an-us--- a05750 aAE 2.110:105-305 aPublic Law 105-3051 aUnited States.10aNext Generation Internet Research Act of 199813aAn Act to Amend the High-Performance Computing Act of 1991 to Authorize Appropriations for Fiscal Years 1999 and 2000 for the Next Generation Internet Program, to Require the President's Information Technology Advisory Committee to Monitor and Give Advice Concerning the Development and Implementation of the Next Generation Internet Program and Report to the President and the Congress on Its Activities, and for Other Purposes.2 aAct to Amend the High Performance Computing Act of 1991 ... a[Washington, D.C. :bU.S. G.P.O. :bSupt. of Docs., U.S. G.P.O., distributor,c1998] a[7] p. ;c24 cm. aCaption title. aShipping list no.: 99-0107-P. a"Oct. 28, 1998, (H.R. 3332)." a"112 Stat. 2919." a"Public Law 105-305." 0aInternetzUnited States. 0aComputer networksxLaw and legislationzUnited States. 0aSupercomputersxLaw and legislationzUnited States. a20020608 0OCLC01848nam a2200301ui 4500001001200000005001700012008004100029035001600070040002600086110005000112245007500162260006400237300005100301490004000352505039600392600003800788650002200826711007100848880004100919880006300960880005601023880003401079880033701113830004101450880003501491988001301526906000701539008000714-720024617122813.0990210s1943 ja a 000 0 jpn d0 aocm40768658 a*YNH*c*YNH*dCStRLIN2 6880-01aNihon Ryōshin Saikyōiku Kyōkai.106880-02aJidō shinri hen /cNihon Ryōshin Saikyōiku Kyōkai hen. 6880-03aTōkyō :bDaiichi Kōronsha,cShōwa 18 [1943] a[10], 486 p. :bill., 1 folded table ;c19 cm.1 6880-04aShin kodomo kenkyū kōza0 6880-05aHaha no tame no hattatsu shinrigaku / Hatano Kanji -- Yōji no shinri to shitsuke / Yamashita Toshirō -- Gakudō no shinri to kyōiku / Takemasa Tarō -- Seinen no shinri to shidō / Aoki Seishirō -- Gendai shinrigaku to jidō kenkyū / Kunihara Tarō -- Kodomo no chinō / Takeda Toshio -- Kodomo no kosei to seikaku / Yoda Arata -- Kodomo to kankyō / Masaki Masashi.10aPiaget, Jean,d1896-1980.xWorks. 0aChild psychology.2 aAssociation of Child Psychology Annual Conference.esponsorevenue2 6110-01a日本兩親再教育協會.106245-02a兒童心理篇 /c日本兩親再教育協會編. 6260-03a東京 :b第一公論社,c昭和18 [1943]1 6490-04a新子供研究講座0 6505-05a母のための發達心理學/ 波多野完治 -- 幼兒の心理と躾/ 山下俊郎 -- 學童の心理と教育/ 武政太郎 -- 青年の心理と指導/ 青木誠四郎 -- 現代心理學と兒童研究/ 國原太郎 -- 子供の智能/ 武田俊雄 -- 子供の個性と性格/ 依田新 -- 子供と環境/ 正木正. 06880-54aShin kodomo kenkyū kōza. 06830-54a新子供研究講座. a20021216 0MH01081cam a2200325Ia 4500001001200000005001700012008004100029020001500070020001800085035001600103040003500119050002700154090002700181100002300208245012200231250001100353260004800364300004100412490001800453504006000471650003900531650002800570653003700598655002000635655003100655830003800686988001300724049000900737906000900746008000817-820070716091738.0980423s1998 sp a b 001 0 spa d a8489240469 a97884892404690 aocm39085805 aI5BbspacI5BdPL#dOCLCQdTEF 4aPN1995.9.S45bL37 1998 aPN1995.9.S45bL37 19981 aLardín, Rubén.10aFuego en el cuerpo :b50 películas míticas del cine erótico /cRubén Lardín ; [prólogo, Hernán Migoya]. a1. ed. aValencia, Spain :bMidons Editorial,c1998. a127 p. :bill. (some col.) ;c24 cm.1 aSerie B ;v21 aIncludes bibliographical references (p. 126) and index. 0aErotic filmsxStories, plots, etc. 0aErotic filmsvCatalogs. aPelículas eróticasaGuías. 7aCatalogs.2fast 7aStories, plots, etc.2fast 0aSerie B (Midons Editorial) ;v21. a20020608 aHLSS 0OCLC00918nam a22002417u 4500001001200000005001700012008004100029035001600070100002300086245012200109260007200231300002100303490004900324490007800373650001400451650001600465700002400481752002200505830005000527830007900577988001300656906000700669008000922-020020606104010.5910709s1997 is |||||||heb|d0 aocm408197561 aErlikh, Mikhaʾel.10aTorat ha-beged :bpirḳe hadrakhah be-nośe ha-shaʻaṭnez /cMikhaʾel Erlikh ... ; [ʻarikhah Zeʾev Grinṿald]0 aYerushalayim :bha-Mosad le-ʻidud limud ha-Torah,c[5757 or 1997?] a126 p. ;c22 cm.1 aSifriyat ʻanaḳim be-madaf uve-khis ;v1381 aSifriyat Bene Torah ha-merukezet ʻal shem mishpaḥot Lebovits- Ḳesṭ 0aShaatnez. 0aJewish law.1 aGrinṿald, Zeʾev. aIsraeldJerusalem 0aSifriyat ʻanaḳim be-madaf uve-khis ;v138. 0aSifriyat Bene Torah ha-merukezet ʻal shem mishpaḥot Lebovits- Ḳesṭ. a20020608 0MH02252cjm a2200457Ka 45e0001001200000005001700012008004100029028002900070035001600099040002300115100007600138240004100214245021500255260003800470300005000508490004900558511018600607500001800793500008500811518006700896650006100963650001901024700004301043700004401086700004001130700004101170700003901211700003301250700003401283700003101317700003301348700004301381700007701424700010601501830005001607880003901657880003501696880004101731988001301772906000901785008001024-520030815100604.0990419s1994 fr mun fre d02aSC 53002bSuoni e Colori0 aocm41207520 aWIQcWIQdOCLdHMU1 6880-03aGlinka, M. I.q(Mikhail Ivanovich),d1804-1857,ecomposer.4cmp10aSextet,mpiano, strings,nE♭ major13aUn sextuor pour piano et cordes en mi bémol majeurh[sound recording] ;bDivertimento sur des thémes de la Somnanbula de Bellini ; Sérénade sur des thémes d'Anna Bolena de Donizetti /cMikhail Glinka. aFrance :bSuoni e Colori,cp1994. a1 sound disc :bdigital, stereo. ;c4 3/4 in.1 aIntǵrale de musique de chambre ;vvolume 10 aKun-Woo Paik, Yves Henry, Alexandre Brussilovsky, Jeannie Wells-Yablonsky, Zoltan Toth, Nathaniel Rosen, Benjamin Berlioz, Amaury Wallez, André Cazalet, Frédérique Cambreling. aCompact disc. aProgram notes in French with English translation ([7] p.) inserted in container. aRecorded in Oct. 1994 at the Auditorium d'Issy-les-Moulineaux. 0aSextets (Piano, violins (2), viola, cello, double bass). 0aChamber music.1 6880-01aPaik, Kun Woo,eperformer4prf1 6880-02aHenry, Yves,d1959-,eperformer1 aBrussilovsky, Alexandre,eperformer1 aWells-Yablonsky, Jeannie,eperformer1 aToth, Zoltán,d1950-,eperformer1 aRosen, Nathaniel,eperformer1 aBerlioz, Benjamin,eperformer1 aWallez, Amaury,eperformer1 aCazalet, André,eperformer1 aCambreling, Frédérique,eperformer12aGlinka, M. I.q(Mikhail Ivanovich),d1804-1857.tDivertimento brillante.12aGlinka, M. I.q(Mikhail Ivanovich),d1804-1857.tSerenata sopra alcuni motivi dell'opera Anna Bolena. 0aIntǵrale de musique de chambre ;vvolume 1.1 6700-01aPaik VERN,eperformer4prf1 6700-02aHenry VERN,eperformer1 6100-03aGlinka VERN,ecomposer.4cmp a20030815 0OCLC \ No newline at end of file +00976aam a2200289 a 4500001001200000005001700012008004100029010001700070035005400087035002400141035004300165035003000208040001300238042001000251050002600261100002800287245010500315250001200420260005100432300002000483504004100503520006600544650002700610650002800637988001300665906000800678008000103-320020606104010.5990225s1996 pk b 000 0 eng  a 97930962  a(OCoLC)01484180z(OCoLC)35680312z(OCoLC)41668919 a(OCoLC)ocm01484180  a(EXLNZ-01GALI_NETWORK)9911119856302931 a(01GALI_KS)99705693902954 aDLCcDLC alcode00aBP166.14.D4bO37 19961 aOkarvi, Kaukab Noorani.10aDeoband to Bareilly :bthe truth /cby Allamah Kaukab Noorani Okarvi ; translated by S. G. Khawajah. aIst ed. aLahore :bZia-ul-Qurʾaan Publications,c1996. a75 p. ;c22 cm. aIncludes bibliographical references. aComparative study of Deoband and Bareilly schools of thought. 0aDeoband School (Islam) 0aBareilly School (Islam) a20020608 0DLC00811nam a2200241 a 4500001001200000005001700012008004100029035001600070041001100086100003200097245008000129246001500209246002300224250001600247260005000263300003300313500007000346500005700416600003200473752004400505988001300549906000700562008000204-820020606104010.5990211s1999 caua 000|0 per d0 aocm408738770 apereng1 aQāz̤īʹnūr, Aḥmad.10aĀrashʹnāmah :bmajmūʻah-ʾi ashʻār /cAḥmad Qāz̤īʹnūr.15aArash-name15aIn memory of Arash aChāp-i 1. aLus Ānjilis :bA. Qāz̤īʹnūr,c1999. a149, 15 p. :bill. ;c21 cm. aPoems in memory of author's son who was killed in a car accident. aPersian and English poems by author and other hands.10aQāz̤īʹnūr, Ārash. aUnited StatesbCaliforniadLos Angeles. a20020608 0MH00780nam a22002177a 4500001001200000005001700012008004100029035001600070100001800086245006600104246007600170260011300246300002100359650003200380650002400412650002000436710006400456752002200520988001300542906000700555008000307-920020606104010.5840726s1999 is |||| |||| 00||||heb|d0 aocm408196381 aGimshi, Dani.10aShiṭur ḳehilati be-Yiśraʾel uva-ʻolam /cDani Gimshi.1 iTitle on t.p. verso:aCommunity policing in Israel and around the world0 aYerushalayim :bMishṭeret Yiśraʾel, ha-Yeḥidah le-shiṭur kehilati, ha-Maṭeh ha-artsi,c759, 1999. a307 p. ;c25 cm. 0aCommunity policingzIsrael. 0aCommunity policing. 0aPolicezIsrael.2 aMishṭeret Yiśraʾel.bYeḥidah le-shiṭur ḳehilati. aIsraeldJerusalem a20020608 0MH01250nem a2200313 a 4500001001200000005001700012008004100029010002200070034001300092035001600105040001800121050002300139052001300162110002500175245002700200246002400227255005300251260006600304300009100370500017000461500005000631500008700681500001900768650005600787651002700843651004500870988001300915906000800928008000411-320020606104010.5900406s1986 cau a 1 eng  a 90681187 /MAPS1 aab443520 aocm19909062 aDLCcDLCdHLS0 aG4334.P5b1986 .H2 a4334bP52 aH.M. Gousha Company.10aStreet map of Phoenix.3 aPhoenix street map. aScale [ca. 1:44,352]. 1 in. = approx. 0.7 miles. aSan Jose, Calif. ;aNew York, NY :bH.M. Gousha Co.,c[1986?] a1 map :bboth sides, col. ;c94 x 131 cm., on sheet 97 x 68 cm., folded to 23 x 10 cm. aPanel title: Phoenix street map : including Glendale, Guadalupe, Mesa, Paradise Valley, Peoria, Scottsdale, Tempe, Tolleson, Youngtown ... and adjoining communities. aAt head of panel title: Goushā/Check Chart. aIncludes index and insets of "Downtown Phoenix" and the Mesa-Apache Junction area. a"M-KX-1527-S." 0aCentral business districtszArizonazPhoenixvMaps. 0aPhoenix (Ariz.)vMaps. 0aPhoenix Metropolitan Area (Ariz.)vMaps. a20020608 0DLC01405cam a2200349Ia 4500001001200000005001700012008004100029010001700070015001500087020001500102035001600117035002900133040003300162043001200195245005900207260010000266300004800366490004300414500009300457500008000550504007300630505015500703650002900858650002100887650002500908650002400933700001500957700001700972830004400989988001301033906000901046008000512-820050412174544.0970225s1996 gr a b 001 0 eng d agb 97035597  aGB97-35597 a090488726X0 aocm364433330 aocm36443333zocm36955126 aNYPcNYPdUIUdUKMdCUSdHCH ae-gr---00aArchaeoseismology /cedited by S. Stiros & R.E. Jones. aAthens, Greece :bInstitute of Geology & Mineal Exploration :bBritish School at Athens,c1996. aviii, 268 p. :bill., maps, plans ;c26 cm.1 aFitch Laboratory occasional paper ;v7 aAppendix: 'Thoughts on the perception of the earthquake in Greek antiquity': p. 253-257. aIndexes: 'Earthquake catalogue': p. 261-[262]; 'Subject index': p. 263-268. aIncludes bibliographical references at the end of each contribution.0 aIntroductory papers -- Archaeological and historical evidence of palaeoseismic events, and their social and cultural impacts -- Scientific approaches. 0aPaleoseismologyzGreece. 0aGeologyzGreece. 0aEarthquakeszGreece. 0aSeismologyzGreece.1 aStiros, S.1 aJones, R. E. 0aFitch Laboratory occasional paper ;v7. a20020608 0OCLC01532nam a2200349Ia 4500001001200000005001700012008004100029020001000070035001600080037002500096040001800121043001200139074000900151086002100160088002300181110001900204240005000223245043400273246006400707260008900771300002100860500001900881500003400900500003400934500002200968500002600990650002901016650005901045650005601104988001301160906000901173008000613-220020606104010.5990128s1998 dcu l f000 0 eng d c$1.000 aocm40693213 a869-036-00152-4bGPO aGPOcGPOdHLS an-us--- a05750 aAE 2.110:105-305 aPublic Law 105-3051 aUnited States.10aNext Generation Internet Research Act of 199813aAn Act to Amend the High-Performance Computing Act of 1991 to Authorize Appropriations for Fiscal Years 1999 and 2000 for the Next Generation Internet Program, to Require the President's Information Technology Advisory Committee to Monitor and Give Advice Concerning the Development and Implementation of the Next Generation Internet Program and Report to the President and the Congress on Its Activities, and for Other Purposes.2 aAct to Amend the High Performance Computing Act of 1991 ... a[Washington, D.C. :bU.S. G.P.O. :bSupt. of Docs., U.S. G.P.O., distributor,c1998] a[7] p. ;c24 cm. aCaption title. aShipping list no.: 99-0107-P. a"Oct. 28, 1998, (H.R. 3332)." a"112 Stat. 2919." a"Public Law 105-305." 0aInternetzUnited States. 0aComputer networksxLaw and legislationzUnited States. 0aSupercomputersxLaw and legislationzUnited States. a20020608 0OCLC01863nam a2200301ui 4500001001200000005001700012008004100029035001600070040002600086110005000112245007500162260006400237300005100301490004000352505039600392600003800788650002200826711008600848880004100934880006300975880005601038880003401094880033701128830004101465880003501506988001301541906000701554008000714-720024617122813.0990210s1943 ja a 000 0 jpn d0 aocm40768658 a*YNH*c*YNH*dCStRLIN2 6880-01aNihon Ryōshin Saikyōiku Kyōkai.106880-02aJidō shinri hen /cNihon Ryōshin Saikyōiku Kyōkai hen. 6880-03aTōkyō :bDaiichi Kōronsha,cShōwa 18 [1943] a[10], 486 p. :bill., 1 folded table ;c19 cm.1 6880-04aShin kodomo kenkyū kōza0 6880-05aHaha no tame no hattatsu shinrigaku / Hatano Kanji -- Yōji no shinri to shitsuke / Yamashita Toshirō -- Gakudō no shinri to kyōiku / Takemasa Tarō -- Seinen no shinri to shidō / Aoki Seishirō -- Gendai shinrigaku to jidō kenkyū / Kunihara Tarō -- Kodomo no chinō / Takeda Toshio -- Kodomo no kosei to seikaku / Yoda Arata -- Kodomo to kankyō / Masaki Masashi.10aPiaget, Jean,d1896-1980.xWorks. 0aChild psychology.2 aAssociation of Child Psychology Annual Conference.eSubcommittee.jsponsorjvenue2 6110-01a日本兩親再教育協會.106245-02a兒童心理篇 /c日本兩親再教育協會編. 6260-03a東京 :b第一公論社,c昭和18 [1943]1 6490-04a新子供研究講座0 6505-05a母のための發達心理學/ 波多野完治 -- 幼兒の心理と躾/ 山下俊郎 -- 學童の心理と教育/ 武政太郎 -- 青年の心理と指導/ 青木誠四郎 -- 現代心理學と兒童研究/ 國原太郎 -- 子供の智能/ 武田俊雄 -- 子供の個性と性格/ 依田新 -- 子供と環境/ 正木正. 06880-54aShin kodomo kenkyū kōza. 06830-54a新子供研究講座. a20021216 0MH01081cam a2200325Ia 4500001001200000005001700012008004100029020001500070020001800085035001600103040003500119050002700154090002700181100002300208245012200231250001100353260004800364300004100412490001800453504006000471650003900531650002800570653003700598655002000635655003100655830003800686988001300724049000900737906000900746008000817-820070716091738.0980423s1998 sp a b 001 0 spa d a8489240469 a97884892404690 aocm39085805 aI5BbspacI5BdPL#dOCLCQdTEF 4aPN1995.9.S45bL37 1998 aPN1995.9.S45bL37 19981 aLardín, Rubén.10aFuego en el cuerpo :b50 películas míticas del cine erótico /cRubén Lardín ; [prólogo, Hernán Migoya]. a1. ed. aValencia, Spain :bMidons Editorial,c1998. a127 p. :bill. (some col.) ;c24 cm.1 aSerie B ;v21 aIncludes bibliographical references (p. 126) and index. 0aErotic filmsxStories, plots, etc. 0aErotic filmsvCatalogs. aPelículas eróticasaGuías. 7aCatalogs.2fast 7aStories, plots, etc.2fast 0aSerie B (Midons Editorial) ;v21. a20020608 aHLSS 0OCLC00918nam a22002417u 4500001001200000005001700012008004100029035001600070100002300086245012200109260007200231300002100303490004900324490007800373650001400451650001600465700002400481752002200505830005000527830007900577988001300656906000700669008000922-020020606104010.5910709s1997 is |||||||heb|d0 aocm408197561 aErlikh, Mikhaʾel.10aTorat ha-beged :bpirḳe hadrakhah be-nośe ha-shaʻaṭnez /cMikhaʾel Erlikh ... ; [ʻarikhah Zeʾev Grinṿald]0 aYerushalayim :bha-Mosad le-ʻidud limud ha-Torah,c[5757 or 1997?] a126 p. ;c22 cm.1 aSifriyat ʻanaḳim be-madaf uve-khis ;v1381 aSifriyat Bene Torah ha-merukezet ʻal shem mishpaḥot Lebovits- Ḳesṭ 0aShaatnez. 0aJewish law.1 aGrinṿald, Zeʾev. aIsraeldJerusalem 0aSifriyat ʻanaḳim be-madaf uve-khis ;v138. 0aSifriyat Bene Torah ha-merukezet ʻal shem mishpaḥot Lebovits- Ḳesṭ. a20020608 0MH02252cjm a2200457Ka 45e0001001200000005001700012008004100029028002900070035001600099040002300115100007600138240004100214245021500255260003800470300005000508490004900558511018600607500001800793500008500811518006700896650006100963650001901024700004301043700004401086700004001130700004101170700003901211700003301250700003401283700003101317700003301348700004301381700007701424700010601501830005001607880003901657880003501696880004101731988001301772906000901785008001024-520030815100604.0990419s1994 fr mun fre d02aSC 53002bSuoni e Colori0 aocm41207520 aWIQcWIQdOCLdHMU1 6880-03aGlinka, M. I.q(Mikhail Ivanovich),d1804-1857,ecomposer.4cmp10aSextet,mpiano, strings,nE♭ major13aUn sextuor pour piano et cordes en mi bémol majeurh[sound recording] ;bDivertimento sur des thémes de la Somnanbula de Bellini ; Sérénade sur des thémes d'Anna Bolena de Donizetti /cMikhail Glinka. aFrance :bSuoni e Colori,cp1994. a1 sound disc :bdigital, stereo. ;c4 3/4 in.1 aIntǵrale de musique de chambre ;vvolume 10 aKun-Woo Paik, Yves Henry, Alexandre Brussilovsky, Jeannie Wells-Yablonsky, Zoltan Toth, Nathaniel Rosen, Benjamin Berlioz, Amaury Wallez, André Cazalet, Frédérique Cambreling. aCompact disc. aProgram notes in French with English translation ([7] p.) inserted in container. aRecorded in Oct. 1994 at the Auditorium d'Issy-les-Moulineaux. 0aSextets (Piano, violins (2), viola, cello, double bass). 0aChamber music.1 6880-01aPaik, Kun Woo,eperformer4prf1 6880-02aHenry, Yves,d1959-,eperformer1 aBrussilovsky, Alexandre,eperformer1 aWells-Yablonsky, Jeannie,eperformer1 aToth, Zoltán,d1950-,eperformer1 aRosen, Nathaniel,eperformer1 aBerlioz, Benjamin,eperformer1 aWallez, Amaury,eperformer1 aCazalet, André,eperformer1 aCambreling, Frédérique,eperformer12aGlinka, M. I.q(Mikhail Ivanovich),d1804-1857.tDivertimento brillante.12aGlinka, M. I.q(Mikhail Ivanovich),d1804-1857.tSerenata sopra alcuni motivi dell'opera Anna Bolena. 0aIntǵrale de musique de chambre ;vvolume 1.1 6700-01aPaik VERN,eperformer4prf1 6700-02aHenry VERN,eperformer1 6100-03aGlinka VERN,ecomposer.4cmp a20030815 0OCLC \ No newline at end of file From 9cc3fb73e1b815b12fc4cf57603c35eb2aa9017b Mon Sep 17 00:00:00 2001 From: Kristina Spurgin Date: Thu, 6 Jun 2024 11:57:52 -0400 Subject: [PATCH 2/5] noblame: Whitespace and/or formatting changes only --- .../transforms/marc/extract_subfields_from_field.rb | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/lib/kiba/extend/transforms/marc/extract_subfields_from_field.rb b/lib/kiba/extend/transforms/marc/extract_subfields_from_field.rb index 9b7230241..4b7ec51ed 100644 --- a/lib/kiba/extend/transforms/marc/extract_subfields_from_field.rb +++ b/lib/kiba/extend/transforms/marc/extract_subfields_from_field.rb @@ -6,7 +6,6 @@ module Kiba module Extend module Transforms module Marc - # rubocop:disable Layout/LineLength # For each occurrence of given field tag, outputs a row with the # following columns: marcid, fullfield, and one column per specified # subfield. If there are more than one occurrnces of a subfield @@ -24,14 +23,16 @@ module Marc # xform.process(rec){ |row| results << row } # expect(results.length).to eq(1) # first = { - # :full260=>"260 $a Lahore : $b Zia-ul-Qurʾaan Publications, $c 1996. ", + # :full260=>"260 $a Lahore : $b Zia-ul-Qurʾaan Publications, "\ + # "$c 1996. ", # :_260a=>"Lahore :", :_260b=>"Zia-ul-Qurʾaan Publications,", # :_260e=>nil, :_260f=>nil, :marcid=>"008000103-3" # } # expect(results[0]).to eq(first) # @example # # =001 008000411-3 - # # =260 \\$aSan Jose, Calif. ;$aNew York, NY :$bH.M. Gousha Co.,$c[1986?] + # # =260 \\$aSan Jose, Calif. ;$aNew York, NY :$bH.M. Gousha + # # Co.,$c[1986?] # rec = get_marc_record(index: 3) # xform = Marc::ExtractSubfieldsFromField.new( # tag: '260', subfields: %w[a b e f] @@ -40,7 +41,8 @@ module Marc # xform.process(rec){ |row| results << row } # expect(results.length).to eq(1) # first = { - # :full260=>"260 $a San Jose, Calif. ; $a New York, NY : $b H.M. Gousha Co., $c [1986?] ", + # :full260=>"260 $a San Jose, Calif. ; $a New York, NY : $b "\ + # "H.M. Gousha Co., $c [1986?] ", # :_260a=>"San Jose, Calif. ;|New York, NY :", # :_260b=>"H.M. Gousha Co.,", # :_260e=>nil, :_260f=>nil, :marcid=>"008000411-3" @@ -48,7 +50,6 @@ module Marc # expect(results[0]).to eq(first) # # @since 4.0.0 - # rubocop:enable Layout/LineLength class ExtractSubfieldsFromField include FieldLinkable # @param tag [String] MARC tag from which to extract subfield values From d908ffa31593927670355ca71a6649ea5188167a Mon Sep 17 00:00:00 2001 From: Kristina Spurgin Date: Thu, 6 Jun 2024 11:58:16 -0400 Subject: [PATCH 3/5] noblame: Add yard doc --- lib/kiba/extend/transforms/marc/extract_subfields_from_field.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/kiba/extend/transforms/marc/extract_subfields_from_field.rb b/lib/kiba/extend/transforms/marc/extract_subfields_from_field.rb index 4b7ec51ed..061573a99 100644 --- a/lib/kiba/extend/transforms/marc/extract_subfields_from_field.rb +++ b/lib/kiba/extend/transforms/marc/extract_subfields_from_field.rb @@ -55,6 +55,7 @@ class ExtractSubfieldsFromField # @param tag [String] MARC tag from which to extract subfield values # @param subfields [Array] subfield codes from which to # extract values + # @param id_target [Symbol] name of field in which to write id value # @param delim [String] used when joining multiple values from # recurring subfield def initialize(tag:, subfields:, From 509589ff5f2e5d9807b23c583eeda28d04a13324 Mon Sep 17 00:00:00 2001 From: Kristina Spurgin Date: Thu, 6 Jun 2024 11:58:45 -0400 Subject: [PATCH 4/5] Add indicators flag to MARC subfield extraction --- .../transforms/marc/extract_subfields_from_field.rb | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/lib/kiba/extend/transforms/marc/extract_subfields_from_field.rb b/lib/kiba/extend/transforms/marc/extract_subfields_from_field.rb index 061573a99..3ecfbb8eb 100644 --- a/lib/kiba/extend/transforms/marc/extract_subfields_from_field.rb +++ b/lib/kiba/extend/transforms/marc/extract_subfields_from_field.rb @@ -55,14 +55,17 @@ class ExtractSubfieldsFromField # @param tag [String] MARC tag from which to extract subfield values # @param subfields [Array] subfield codes from which to # extract values + # @param indicators [Boolean] whether to output indicators as separate + # field values # @param id_target [Symbol] name of field in which to write id value # @param delim [String] used when joining multiple values from # recurring subfield - def initialize(tag:, subfields:, + def initialize(tag:, subfields:, indicators: false, id_target: Kiba::Extend::Marc.id_target_field, delim: Kiba::Extend.delim) @tag = tag @subfields = subfields + @indicators = indicators @id_target = id_target @delim = delim @idextractor = Kiba::Extend::Utils::MarcIdExtractor.new @@ -86,7 +89,8 @@ def process(record) private - attr_reader :tag, :subfields, :id_target, :delim, :idextractor + attr_reader :tag, :subfields, :indicators, :id_target, :delim, + :idextractor def prepare_rows(fields, idhash) fields.map { |fld| prepare_row(fld, idhash) } @@ -94,6 +98,10 @@ def prepare_rows(fields, idhash) def prepare_row(field, idhash) row = {"full#{tag}".to_sym => field.to_s}.merge(idhash) + if indicators + row[:i1] = field.indicator1 + row[:i2] = field.indicator2 + end subfields.each do |code| row["_#{tag}#{code}".to_sym] = sf_val(field, code) end From eea1f6150e36480a222c0edc611fb05a769d2b93 Mon Sep 17 00:00:00 2001 From: Kristina Spurgin Date: Thu, 6 Jun 2024 13:17:13 -0400 Subject: [PATCH 5/5] Add `MARC::LanguageCodeLookup` transform --- CHANGELOG.adoc | 1 + .../transforms/marc/language_code_lookup.rb | 55 +++++++++++++++++++ 2 files changed, 56 insertions(+) create mode 100644 lib/kiba/extend/transforms/marc/language_code_lookup.rb diff --git a/CHANGELOG.adoc b/CHANGELOG.adoc index 71246d683..3edbf1218 100644 --- a/CHANGELOG.adoc +++ b/CHANGELOG.adoc @@ -38,6 +38,7 @@ These changes are merged into the `main` branch, but have not been released. Aft * `Reshape::FieldsToFieldGroupWithConstant` constant value is no longer added to rows with no values in the renamed/remapped value fields, when fieldmap length == 1. (PR#195) === Added +* `MARC::LanguageCodeLookup` transform * Ability to pass `find` argument to `Clean::RegexpFindReplaceFieldVals` as a `Regexp` object. Not sure why this was not the default initial behavior, but here we are! (PR#196) === Changed diff --git a/lib/kiba/extend/transforms/marc/language_code_lookup.rb b/lib/kiba/extend/transforms/marc/language_code_lookup.rb new file mode 100644 index 000000000..a33ba688c --- /dev/null +++ b/lib/kiba/extend/transforms/marc/language_code_lookup.rb @@ -0,0 +1,55 @@ +# frozen_string_literal: true + +require "net/http" +require "uri" + +module Kiba + module Extend + module Transforms + module Marc + # Look up MARC List for Languages codes and provide preferred + # label value + # + # @example Known code + # row = {code: "eng"} + # result = Marc::LanguageCodeLookup.new(source: :code).process(row) + # expect(result).to eq(row.merge({language: "English"})) + # + # @example Unknown code + # row = {code: "foo"} + # result = Marc::LanguageCodeLookup.new(source: :code).process(row) + # expect(result).to eq(row.merge({language: nil})) + class LanguageCodeLookup + # @param source [Symbol] row field containing language code to + # look up + # @param target [Symbol] row field into which language label value + # will be written + def initialize(source:, target: :language) + @source = source + @target = target + @host = URI.parse("https://id.loc.gov").hostname + end + + # @param row [Hash{ Symbol => String, nil }] + # @return [Hash{ Symbol => String, nil }] + def process(row) + Net::HTTP.start(host, use_ssl: true) do |http| + row[target] = api_result(http, row[source]) + end + row + end + + private + + attr_reader :source, :target, :host + + def api_result(http, code) + return if code.blank? + + http.head("/vocabulary/languages/#{code}")["x-preflabel"] + end + end + end + end + end +end