From: Adam Dickmeiss Date: Mon, 22 Mar 2010 14:31:19 +0000 (+0100) Subject: yaz-ztest: use built-in array for MARC always X-Git-Tag: v4.0.3~23 X-Git-Url: http://lists.indexdata.dk/?a=commitdiff_plain;h=15401488340849487c2d7782121bef66dd19e961;p=yaz-moved-to-github.git yaz-ztest: use built-in array for MARC always yaz-ztest no longer attempts to read dummy-records file. --- diff --git a/win/yaz.nsi b/win/yaz.nsi index cd38bf5..a442b81 100644 --- a/win/yaz.nsi +++ b/win/yaz.nsi @@ -87,7 +87,6 @@ Section "" ; (default section) File ..\NEWS SetOutPath $INSTDIR SetOutPath $INSTDIR\ztest - File ..\ztest\dummy-records File ..\ztest\dummy-grs File ..\ztest\dummy-words SetOutPath $INSTDIR\etc diff --git a/ztest/Makefile.am b/ztest/Makefile.am index 3b81c17..38ed590 100644 --- a/ztest/Makefile.am +++ b/ztest/Makefile.am @@ -7,7 +7,7 @@ noinst_PROGRAMS=gfs-example yaz_ztest_SOURCES=ztest.c read-grs.c read-marc.c dummy-opac.c ztest.h gfs_example_SOURCES=gfs-example.c -EXTRA_DIST=dummy-records dummy-words dummy-grs ztest.pem config1.xml +EXTRA_DIST=dummy-words dummy-grs ztest.pem config1.xml LDADD=../src/libyaz_server.la ../src/libyaz.la $(PTHREAD_LIBS) diff --git a/ztest/dummy-records b/ztest/dummy-records deleted file mode 100644 index acbc141..0000000 --- a/ztest/dummy-records +++ /dev/null @@ -1 +0,0 @@ -00366nam 22001698a 4500001001300000003000400013005001700017008004100034010001700179040001300075050001200088100001700100245003000117260001200147263000900159300001100168 11224466 DLC00000000000000.0910710c19910701nju 00010 eng  aDLCcDLC00a123-xyz10aJack Collins10aHow to program a computer1 aPenguin a8710 ap. cm. a 11224466 00366nam 22001698a 4500001001300000003000400013005001700017008004100034010001700179040001300075050001200088100001700100245003000117260001200147263000900159300001100168 11224467 DLC00000000000000.0910710c19910701nju 00010 eng  aDLCcDLC00a123-xyz10aJack Collins10aHow to program a computer1 aPenguin a8710 ap. cm. a 11224467 01369cam 2200265 i 4500001001800000003000400018005001700022008004100039010002201081040001800080050002200098082002100120111012100141245034700262260005400609300003000663504005100693650005600744650003900800650006200839700002300901700002000924710007100944710006601015 73090924 //r82DLC19820524000000.0760609s1974 nyua b 10110 eng  aDLCcDLCdDLC00aRC71.3b.W67 197100a616.07/575/0285420aWorkshop on Computer Processing of Dynamic Images from an Anger Scintillation Camera,cWashington University,d1971.10aComputer processing of dynamic images from an Anger scintillation camera :bthe proceedings of a workshop /ccosponsored by the Biomedical Computer Laboratory and the Nuclear Medicine Division, Department of Radiology, School of Medicine, Washington University, St. Louis, January 18-22, 1971 ; edited by Kenneth B. Larson, Jerome R. Cox, Jr.0 aNew York :bSociety of Nuclear Medicine,c[c1974] axiv, p. :bill. ;c24 cm. aIncludes bibliographical references and index. 0aRadioisotope scanningxData processingxCongresses. 0aScintillation camerasxCongresses. 0aImaging systems in medicinexData processingxCongresses.10aLarson, Kenneth B.10aCox, Jerome R. 20aWashington University, St. Louis.bBiomedical Computer Laboratory.20aWashington University, St. Louis.bNuclear Medicine Division. a 73090924 //r8200942cam 22002531a 4500001001900000003000400019005001700023008004100040010002300665040001800081041001400099050001600113082001600129245007300145260007000218300005000288500004800338500009600386630003900482630003900521700003800560700003300598710003400631 73209622 //r823DLC19820325000000.0780306m19009999ohu 00000 grc  aDLCcDLCdDLC0 agrchebeng00aBS421b.C6400a220.4/421904aThe Computer Bible /cJ. Arthur Baird, David Noel Freedman, editors.0 a[Wooster, Ohio] :bBiblical Research Associates,c<1973-c1980 > av. <2-4, 7-10, 13, 15-18, 20-24 > ;c28 cm. aHebrew and Greek; introductions in English. aVols. 2, 8: Missoula, Mont. : Published by Scholars Press for Biblical Research Associates. 0aBible. O.T.xConcordances, Hebrew.00aBible.pN.T.xConcordances, Greek.10aBaird, J. Arthurq(Joseph Arthur)10aFreedman, David Noel,d1922-20aBiblical Research Associates. a 73209622 //r82301033cam 2200253 i 4500001002100000003000400021005001700025008004100042010002500754040001800083043001200101050002200113100001900135245010500154260007300259300003800332490006800370500003500438504002400473650003400497651004600531700003900577810013800616 76357895 /MAP/r82DLC19820806000000.0760407s1974 waua b 00010 eng  aDLCcDLCdDLC an-us-wa00aG1467.P8bM3 197410aMairs, John W.14aThe Puget Sound Region :ba portfolio of thematic computer maps /cJohn W. Mairs, Eugene A. Hoerauf.0 a[Bellingham, Wash.] :bCenter for Pacific Northwest Studies,cc1974. aiii, 41 p. :bill. ;c25 x 36 cm.1 aOccasional paper - Center for Pacific Northwest Studies ; no. 3 aScale of maps ca. 1:1,000,000. aBibliography: p. 4. 0aCartographyxData processing. 0aPuget Sound region (Wash.)xCensusxMaps.10aHoerauf, Eugene A.,ejoint author.1 aWashington (State).bWestern Washington State College, Bellingham.bCenter for Pacific Northwest Studies.tOccasional paper ;vno. 3. a 76357895 /MAP/r8201000pam 2200229 i 4500001001300000003000400013005001700017008004100034010001700753020001500075040001800090050001800108082001500126245030400141260004800445300003300493504005100526650002800577700002900605710004800634710007100682 77000348 DLC19770707000000.0770112s1977 mdua b 10110 eng  a0839108826 aDLCcDLCdDLC00aRC78.7.T6bR400a616.07/57200aReconstruction tomography in diagnostic radiology and nuclear medicine :bproceedings of the workshop ... /cedited by Michel M. Ter-Pogossian ... [et al.] ; co-sponsors, the Edward Mallinckrodt Institute of Radiology and Biomedical Computer Laboratory, Washington University School of Medicine ....0 aBaltimore :bUniversity Park Press,cc1977. axv, 573 p. :bill. ;c24 cm. aIncludes bibliographical references and index. 0aTomographyxCongresses.20aTer-Pogossian, Michel M.20aEdward Mallinckrodt Institute of Radiology.20aWashington University, St. Louis.bBiomedical Computer Laboratory. a 77000348 01493pam 2200277 i 4500001001300000003000400013005001700017008004100034010001701198040001800075043001200093050003400105082002800139086001800167111009500185245044800280260013800728300003400866490003600900650005900936700003100995700002101026700002001047710005001067810008101117 77004773 DLC19770822000000.0770321s1977 dcua 10000 eng  aDLCcDLCdDLC an-us---00aQC100b.U57 no. 500-8aTA165000a602/.1 sa621.381.9/598 aC13.10:500-8.20aWorkshop on Standards for Image Pattern Recognition,cNational Bureau of Standards,d1976.10aComputer science & technology :bproceedings of a workshop held at the National Bureau of Standards, Gaithersburg, MD, June 3-4, 1976 /cWorkshop on Standards for Image Pattern Recognition ; John M. Evans, Jr., Russell Kirsch, and Roger N. Nagel, editor[s] ; sponsored by National Bureau of Standards, Electronic Industries Association, Institute of Electrical and Electronic Engineers, in cooperation with Association for Computing Machinery.0 a[Washington] :bU.S. Dept. of Commerce, National Bureau of Standards : for sale by the Supt. of Docs., U.S. Govt. Print. Off.,c1977. avii, 112 p. :bill. ;c26 cm.1 aNBS special publication ; 500-8 0aOptical pattern recognitionxStandardszUnited States.10aEvans, John Martin,d1942-10aKirsch, Russell.10aNagel, Roger N.10aUnited States.bNational Bureau of Standards.1 aUnited States.bNational Bureau of Standards.tSpecial publication ;v500-8. a 77004773 00878cam 2200229 i 4500001001300000003000400013005001700017008004100034010001700631040001800075050003800093082002200131086001700153100001900170245008700189260013800276300002400414440003400438490003600472650004200508810008100550 77005558 DLC19770713000000.0770401s1977 dcu 00010 eng  aDLCcDLCdDLC00aQC100b.U57 no. 500-9aQA76.9.A2500a602/.1 sa001.6/40 aC13.10:500-910aWood, Helen M.14aThe use of passwords for controlled access to computer resources /cHelen M. Wood.0 a[Washington] :bU.S. Dept. of Commerce, National Bureau of Standards : for sale by the Supt. of Docs., U.S. Govt. Print. Off.,c1977. aiv, 53 p. ;c26 cm. 0aComputer science & technology1 aNBS special publication ; 500-9 0aComputersxAccess controlxPasswords.1 aUnited States.bNational Bureau of Standards.tSpecial publication ;v500-9. a 77005558 00791cam 2200217 4500001001800000003000400018005001700022008004100039010002200551040001800080043003000098050001800128082001800146100002100164245016200185260002300347300002600370500002900396650006400425710006200489 77616367 //r84DLC19841213000000.0720329s1971 dcua 00010 eng  aDLCcDLCdDLC an-us-dcan-us-mdan-us-va00aHE2781.W3bE500a385/.22/0975310aEnglund, Carl R.10aWashington metropolitan area rail computer feasibility study;bfinal reportc[by] Carl R. Englund, Jr. Prepared for Urban Mass Transportation Administration.0 aWashington,c1971. a92 l.billus.c28 cm. a"Contract DOT-UT-10003." 0aRailroadszWashington Metropolitan AreaxCommuting traffic.10aUnited States.bUrban Mass Transportation Administration. a 77616367 //r8400686cam 2200229 4500001001800000003000400018005001700022008004100039010002200434040001800080043001200098050002400110082001900134110007000153245005500223250000900278260002100287300001800308500001700326650004800343650004300391 77637075 //r82DLC19820817000000.0720320s1971 wau s 00000 eng  aDLCcDLCdDLC an-us-wa00aLB1028.5b.W37 197100a378/.052/0979710aWashington (State).bState Board for Community College Education.12aA plan for community college computer development. aRev.1 a[Olympia]c1971. a47 l.c28 cm. aCover title. 0aUniversities and collegesxData processing. 0aCommunity collegeszWashington (State) a 77637075 //r8200668nam 22002171 4500001001300000003000400013005001700017008004100034010001700433040001800075050001800093082001600111100001900127245007600146260004000222300004000262350000900302490003200311504003000343630006000373 70001070 DLC19700427000000.0700302s1968 mouab b 00000 eng  aDLCcDLCdDLC00aBS1275.5b.O200a222/.15/00710aOberst, Bruce.00aDeuteronomy.cThought questions, by Don DeWelt. Summary by Adam Clarke.0 aJoplin, Mo.,bCollege Pressc[1968] aviii, 452 p.billus., maps.c22 cm. a5.950 aBible study textbook series aBibliography: p. 449-452. 0aBible. O.T. DeuteronomyxStudyxOutlines, syllabi, etc. a 70001070 00888pam 2200265 4500001001300000003000400013005001700017008004100034010001700605020001500075040001800090043001200108050002000120082001200140100002900152245009300181260005500274300002800329500008100357504004100438650004500479650002500524651002200549830003400571 72002565 DLC19730409000000.0720418r19721909nyu b 00000 eng  a0836968433 aDLCcDLCdDLC ae-gr---00aBL785b.A3 197200a292/.0810aAdam, James,d1860-1907.14aThe religious teachers of Greece.cEdited with a memoir, by his wife, Adela Marion Adam.0 aFreeport, N.Y.,bBooks for Libraries Pressc[1972] axix, lv, 467 p.c22 cm. aReprint of the 1909 ed., which was issued as the 1904-1906 Gifford lectures. aIncludes bibliographical references. 0aGreek literaturexHistory and criticism. 0aPhilosophy, Ancient. 0aGreecexReligion. 0aGifford lectures,v1904-1906. a 72002565 01126nam 2200265 a 4500001001300000003000400013005001700017008004100034010001700843020003100075040001800106050002100124082001800145100004200163245015800205250003700363260004500400300005000445440003500495630006400530630006400594630006200658630006300720730006000783 80082329 DLC19810528000000.0810526s1980 ctuaf 00010 eng  a0879832355 (pbk.) :c$4.95 aDLCcDLCdDLC00aBS1433b.S5 198000a223/.207721910aSmith, George Adam,cSir,d1856-1942.10aFour psalms :bXXIII, XXXVI, LII, CXXI /cinterpreted for practical use by George Adam Smith ; introduction by F.F. Bruce ; illustrations by Ron McCarty. aShepherd illustrated classic ed.0 aNew Canaan, Conn. :bKeats Pub.,cc1980. a81 p., [5] leaves of plates :bill. ;c21 cm. 2aA Shepherd illustrated classic00aBible.pO.T.pPsalms XXIIIxCriticism, interpretation, etc.00aBible.pO.T.pPsalms XXXVIxCriticism, interpretation, etc.00aBible.pO.T.pPsalms LIIxCriticism, interpretation, etc.00aBible.pO.T.pPsalms CXXIxCriticism, interpretation, etc.01aBible.pO.T.pPsalms XXIII, XXXVI, LII, CXXI.lEnglish. a 80082329 01433nas 2200421 a 4500001000900000003000400009005001700013008004100030010003100071022001400102030001100116032001700127035002000144035002700164040009600191042001300287050002000300070001800320072000900338082001400347210001900361222001900380245002000399260004300419265005800462300001700520310006200537350001100599362003200610500002400642650004600666650003600712650003900748650003500787650003300822780008200855850007400937ACD-3837DLC19940614065614.0920728c19929999ctumn1p 0 a0eng d a 92646062 zsn 92004430 0 a1064-3923 aIERNE8 a008187bUSPS a(OCoLC)2627327500ilcmarc/AQP-6285/JEANNE aNSDPcNSDPdWaUdNICdDNALdOUCAdNSTdDLCdNSTdNSDPdNSTdDLCdInUdMHdNSDPdNdDLCdMiU ansdpalc00aTK5105.5b.R4480 aTK5105.5.R448 0aX20000a384.32200 aInternet world 0aInternet world00aInternet world. aWestport, CT :bMeckler Corp.,cc1992- aMeckler Corp., 11 Ferry Lane West, Westport, CT 06880 av. ;c28 cm. aMonthly (except Jan./Feb., July/Aug., Nov./Dec. combined) a$97.000 aVol. 3, no. 7 (Sept. 1992)- aTitle from caption. 0aInternet (Computer network)xPeriodicals. 0aComputer networksxPeriodicals. 0aInformation networksxPeriodicals. 2aComputer Systemsxperiodicals. 2aOnline Systemsxperiodicals.00tResearch & education networkingx1051-4791w(DLC) 90646613w(OCoLC)21974448 aDLCaDNALaDNGAaInUaMBCoaMH-EdaMdBJaMiUaMoKLaNaNICaTxHRaWaU01330nas 22003735a 4500001000900000003000400009005001700013008004100030010001700071022002500088035002000113035002700133040002900160042001600189043001200205055001200217082001200229130003500241210002700276222002900303245001700332260005400349265006900403300002500472310001200497350002100509362003300530500002400563580005800587780008300645780005100728785008300779787009400862ACD-3799DLC19940614090514.0920723c19919999oncmr4p 0 a0eng d acn 92031641 0 a1187-7081y0025-9535 a(OCoLC)2624484400ilcmarc/AQF-2896/JEANNE aCaOOCMbengcCaOONLdInU anlcaisds/c an-cn--- 2aHD9696*1 a0042120 aInfo Canada (Downsview, Ont.).0 aInfo Can.b(Downsview) 0aInfo Canadab(Downsview)00aInfo Canada. aDownsview, Ont. :bLaurentian Technomedia,c1991- aLaurentian Technomedia, 501 Oakdale Rd., Downsview, Ont. M3N 1W7 av. :bill. ;c40 cm. aMonthly a$50.00 per year.0 aVol. 16, no. 9 (Sept. 1991)- aTitle from caption. aIncludes: Network world Canada, Sept. 1991-Jan. 1992.00tComputer datax0383-7319w(CaOONL)770308317w(OCoLC)11416479w(DLC)cn 7703083105tI.T. magazine (Toronto, Ont.)w(OCoLC)2769906601tNetwork world CanadagFeb. 1992x1187-2985w(OCoLC)25314012w(CaOONL)9203057251 tNetwork world CanadagSept. 1991-Jan. 1992x1187-2985w(OCoLC)25314012w(CaOONL)92030572500803nam 22002898a 4500001000900000003000400009005001700013008004100030010001700071020001500088035002700103040001300130043001200143050002800155082001800183100002500201245009500226250001200321260003400333263000900367300001100376500002000387630003800407600002200445600001500467650003100482ACD-3792DLC19931215084605.7931206s1993 nyu 001 0 eng  a 93047992  a156282754500ilcmarc/ARU-2364/STEVES aDLCcDLC an-us---00aPN1992.77.T63bC37 199300a791.45/722201 aCarter, Bill,d1949-14aThe late shift :bLetterman, Leno, and the network battle for the night /cby Bill Carter. a1st ed. aNew York :bHyperion,cc1993. a9402 ap. cm. aIncludes index.00aTonight show (Television program)10aLetterman, David.10aLeno, Jay. 0aTalk showszUnited States.00766nam 22002658a 4500001000900000005001700009008004100026010001700067020001500084035002900099040001300128050002900141082001600170245007600186250001600262260005600278263000900334300001100343440003200354500002000386650003200406650001900438700002500457700001800482ACD-366519930730092004.1930721s1993 nju 001 0 eng  a 93030775  a013289661300ilcmarc/ARI-3804/JULIANNE aDLCcDLC00aTK5105.875.I57bI56 199300a384.3/422000aInternet :bmailing lists /cedited by Edward T.L. Hardie, Vivian Neou. aUpdated ed. aEnglewood Cliffs, N.J. :bPTR Prentice Hall,c1993. a9308 ap. cm. 0aInternet information series aIncludes index. 0aInternet (Computer network) 0aMailing lists.10aHardie, Edward T. L.10aNeou, Vivian.01324nam 2200289Ia 4500001000900000008004100009005001700050010001300067037002300080043001200103074001900115086002200134049000900156245006200165260014500227300002500372500008000397500022100477500005500698500002100753500002200774610006100796650004300857650004500900700002100945710006800966ACD-2728910514s1984 nyu r f00100 eng d19910519144551.0 o23740002 aED ED 289459bERIC an-us--- a0466-A-03 (MF)0 aED 1.310/2:289459 aDRUG00aTechnology programs that work /cMichael B. Webb, editor.0 aNew York, N.Y. :bTechnology for the NDN Project, Institute for Urban and Minority Education, Teachers College, Columbia University,c[1984] a72, [1] p. ;c28 cm. a"Spons agency Office of Educational Research and Improvement"--Doc. resume. a"This directory was developed by the Technology for the National Diffusion Network Project, Teachers College, Columbia University pursuant to contract number OE-300-83-0253, U.S. Department of Education"--T.p. verso. aDistributed to depository libraries in microfiche. a"December 1984." aIncludes indexes.10aUnited States.bNational Diffusion NetworkxDirectories. 0aEducational technologyzUnited States. 0aFederal aid to educationzUnited States.10aWebb, Michael B.10aUnited States.bOffice of Educational Research and Improvement.01559nam 2200373Ia 4500001000900000008004100009005001700050010001300067037002000080043001200100074001900112086002200131088001600153049000900169100002200178245025900200260010500459300003300564500005500597500001700652504004100669500001800710650004400728650004400772650003700816650005200853650003700905700004400942700002500986710004801011710003001059710006801089740002801157ACD-2476910425s1987 dcua b f00010 eng d19910519144551.0 o23602389 aED 288529bERIC an-us--- a0466-A-03 (MF)0 aED 1.310/2:288529 aLP 87-403 c aDRUG10aSeager, Andrew J.10aCheck this out :blibrary program models /cprepared by Andrew J. Seager, Sarah J. Roberts, Carol Z. Lincoln ; prepared for National Diffusion Network under contract to RMC Corporation, contract 300-84-0251 with the United States Department of Education.0 aWashington, D.C. :bOffice of Educational Research and Improvement, U.S. Dept. of Education,c[1987] aix, 319 p. :bill. ;c28 cm. aDistributed to depository libraries in microfiche. a"July 1987." aIncludes bibliographical references. a"LP 87-403c." 0aLibraries and communityzUnited States. 0aLibraries and educationzUnited States. 0aSchool librarieszUnited States. 0aInstructional materials centerszUnited States. 0aPublic librarieszUnited States.10aRoberts, Sarah J.q(Sarah Jane),d1946-10aLincoln, Carol Zall.10aUnited States.bNational Diffusion Network.20aRMC Research Corporation.10aUnited States.bOffice of Educational Research and Improvement.01aLibrary program models.01155nas 22003135a 4500001000900000008004100009005001700050010002700067040000800094012001200102042000700114050001500121074001100136086002000147049000900167212008300176245006900259260011500328265007100443300001700514310001100531500003200542610003600574650006200610650006400672710002200736710007000758936001300828ACD-2376910225c19uu9999dcuar f0uuu 0eng 19910519144551.0 a 91656060 o23150847 dGPO a2i9103 alc00aIN PROCESS a0785-H0 aLC 1.40/2:F 31/ aDRUG0 aFederal Library and Information Network services directory for fiscal year ...00aFEDLINK services directory for fiscal year ... /cFLICC/FEDLINK.00aWashington, D.C. :bFederal Library and Information Network, Federal Library and Information Center Committee, aFEDLINK, Room LA 1026C, Library of Congress, Washington D.C. 20540 av. ;c28 cm. aAnnual aDescription based on: 1990.20aFEDLINK (Network)xDirectories. 0aLibrary information networkszUnited StatesxDirectories. 0aLibraries, Governmental, administrative, etc.xPeriodicals.20aFEDLINK (Network)20aUnited States.bFederal Library and Information Center Committee. a1991 LIC00915nam 2200229Ka 4500001000900000008004100009005001700050010001300067040001300080037002000093074001900113086002200132049000900154100001800163245015700181260012400338300000900462533009300471500005500564650001400619710005200633ACD-1949910415r19901087dcu b f00010 eng d19910421122541.0 o23469261 aGPOcGPO aED 286992bERIC a0466-A-03 (MF)0 aED 1.310/2:286992 aDRUG10aPaulu, Nancy.10aDealing with dropoutshmicroform :bthe urban superintendents' call to action /cby the OERI Urban Superintendents Network ; Nancy Paulu, writer-editor.0 a[Washington, D.C]. :bOffice of Educational Research and Improvement, Educational Resources Information Center,c[1987] a1 v. aMicrofiche.b[Washington, D.C.?] :cSupt. of Docs., U.S. G.P.O.,d[1990].e1 microfiche. aDistributed to depository libraries in microfiche. 0aDropouts.20aEducational Resources Information Center (U.S.)01053nam 2200217Ka 4500001000900000008004100009005001700050010001300067037002000080074001900100086002200119049000900141245016300150260025100313300000900564533009400573500005500667650002400722650003700746710005200783ACD-1947910415r19901986dcu b f00010 eng d19910421122541.0 o23469098 aED 286333bERIC a0466-A-03 (MF)0 aED 1.310/2:286333 aDRUG00aNational dissemination model for the I'M SPECIAL Program of Physical Education for the Handicapped, 1983-1986hmicroform :bfinal report, I'M SPECIAL network.0 aTampa, Fla. :bDepartment of Physical Education, College of Education, University of South Florida ;a[Washington, D.C.] :bU.S. Dept. of Education, Office of Educational Research and Improvement, Educational Resources Information Center,c[1986] a1 v. aMicrofiche.b[Washington, D.C.?] :cSupt. of Docs., U.S. G.P.O.,d[1990].e2 microfiches. aDistributed to depository libraries in microfiche. 0aPhysical education. 0aHandicapped childrenxEducation.20aEducational Resources Information Center (U.S.)01036nam 2200289Ia 4500001000900000008004100009005001700050010001300067040001300080043001200093074001400105086001800119088001500137049000900152245004500161260010500206300004100311500005500352500003300407500002800440500002600468610004800494650005500542650004400597710006800641740003700709ACD-1938910415s1991 dcu f00000 eng d19910421122541.0 o23468272 aGPOcGPO an-us--- a0461-D-050 aED 1.302:Sh 2 aPIP 91-836 aDRUG00aNDN, sharing success to improve schools.0 a[Washington, DC] :bU.S. Dept. of Education, Office of Educational Research and Improvement,c[1991] a1 folded sheet (6 p.) ;c22 x 10 cm. aAt head of title: National Diffusion Network, NDN. aShipping list no.: 91-198-P. a"January 1991"--P. [5]. a"PIP 91-836"--P. [5].10aUnited States.bNational Diffusion Network. 0aDemonstration centers in educationzUnited States. 0aEducational innovationszUnited States.10aUnited States.bOffice of Educational Research and Improvement.01aNational Diffusion Network, NDN.00725nam0 2200253 45 00100150000000400150001500800230003002100340005304100130008710000180010024100150011824501230013325000240025626000320028030000270031252000310033965200110037001000210038109600110040225100240041326100090043797000130044697000120045900aD00001593700satmrnu000ar19881981bdkldan00a87-11-04010-6chf.dkr. 92,0000adanceng00aAndersonhBob00aStretching00aStrækøvelserdBob Andersonfillustreret af Jean Andersonfdansk udgave ved Lis Engelf[oversættelse ved Jesper Langer]00a1. udgave, 4. oplag00a[Kbh.]bClausen bøgerc198800a192 siderbill.c26 cm00aTidligere: 1. udgave. 198100a79.60100a870970b0567503000z87097000a1. udgave, 4. oplag00c198800b0567503000cDBF8842 \ No newline at end of file diff --git a/ztest/read-marc.c b/ztest/read-marc.c index 09fecc7..abb04eb 100644 --- a/ztest/read-marc.c +++ b/ztest/read-marc.c @@ -14,7 +14,9 @@ #include "ztest.h" -char *marc_records[] = { +#define NO_MARC_RECORDS 24 + +char *marc_records[NO_MARC_RECORDS] = { "\x30\x30\x33\x36\x36\x6E\x61\x6D\x20\x20\x32\x32\x30\x30\x31\x36" "\x39\x38\x61\x20\x34\x35\x30\x30\x30\x30\x31\x30\x30\x31\x33\x30" @@ -1533,67 +1535,12 @@ char *marc_records[] = { "\x38\x34\x32\x1E\x1D" }; -static int atoin (const char *buf, int n) -{ - int val = 0; - while (--n >= 0) - { - if (isdigit(*(const unsigned char *) buf)) - val = val*10 + (*buf - '0'); - buf++; - } - return val; -} - -/* read one MARC record from a file */ -char *marc_read(FILE *inf, ODR odr) -{ - char length_str[5]; - size_t size; - char *buf; - - if (fread (length_str, 1, 5, inf) != 5) - return NULL; - size = atoin (length_str, 5); - if (size <= 6) - return NULL; - if (!(buf = (char*) odr_malloc (odr, size+1))) - return NULL; - if (fread (buf+5, 1, size-5, inf) != (size-5)) - { - xfree (buf); - return NULL; - } - memcpy (buf, length_str, 5); - buf[size] = '\0'; - return buf; -} - /* read MARC record from offset 'num' */ char *dummy_marc_record (int num, ODR odr) { - FILE *inf; - char *buf = 0; - - inf = fopen ("dummy-records", "r"); - if (!inf) - { /* file not there. Get them from fixed array */ - if (num < 1) - return 0; - return marc_records[(num-1) % 24]; - if (num < 1 || num > 24) - return 0; - return marc_records[num-1]; - } - /* OK, try to get proper MARC records from the file */ - while (--num >= 0) - { - buf = marc_read (inf, odr); - if (!buf) - break; - } - fclose(inf); - return buf; + if (num < 1) + return 0; + return marc_records[(num-1) % NO_MARC_RECORDS]; } /* read MARC record and convert to XML */