From 3161319d0fe3feafe2b5fed48b9383680f9f0547 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Fri, 23 Oct 2020 00:06:50 -0700 Subject: basic test for issue-db pipeline --- fatcat_scholar/web.py | 29 +++++++++++++++++------------ settings.toml | 3 ++- tests/files/sim_collections.json | 2 ++ tests/files/sim_items.json | 2 ++ tests/test_issue_db.py | 26 ++++++++++++++++++++++++++ 5 files changed, 49 insertions(+), 13 deletions(-) create mode 100644 tests/files/sim_collections.json create mode 100644 tests/files/sim_items.json create mode 100644 tests/test_issue_db.py diff --git a/fatcat_scholar/web.py b/fatcat_scholar/web.py index f266e08..79b4f30 100644 --- a/fatcat_scholar/web.py +++ b/fatcat_scholar/web.py @@ -13,6 +13,7 @@ from fastapi.staticfiles import StaticFiles from fastapi.responses import PlainTextResponse import sentry_sdk from sentry_sdk.integrations.asgi import SentryAsgiMiddleware +from starlette_prometheus import metrics, PrometheusMiddleware from fatcat_scholar.config import settings, GIT_REVISION from fatcat_scholar.hacks import Jinja2Templates, parse_accept_lang @@ -26,16 +27,6 @@ I18N_LANG_OPTIONS = I18N_LANG_TRANSLATIONS + [ settings.I18N_LANG_DEFAULT, ] -# note the middleware also installed at the end of this file -if settings.SENTRY_DSN: - logger.info("Sentry integration enabled") - sentry_sdk.init( - dsn=settings.SENTRY_DSN, - environment=settings.SCHOLAR_ENV, - max_breadcrumbs=10, - release=GIT_REVISION, - ) - class LangPrefix: """ @@ -261,5 +252,19 @@ async def robots_txt(response_class: Any = PlainTextResponse) -> Any: else: return PlainTextResponse(ROBOTS_DISALLOW) -# add sentry middleware -app = SentryAsgiMiddleware(app) + +# configure middleware + +if settings.SENTRY_DSN: + logger.info("Sentry integration enabled") + sentry_sdk.init( + dsn=settings.SENTRY_DSN, + environment=settings.SCHOLAR_ENV, + max_breadcrumbs=10, + release=GIT_REVISION, + ) + app.add_middleware(SentryAsgiMiddleware) + +if settings.ENABLE_PROMETHEUS: + app.add_middleware(PrometheusMiddleware) + app.add_route("/prometheus/", metrics) diff --git a/settings.toml b/settings.toml index 17c0f1e..0a9a95e 100644 --- a/settings.toml +++ b/settings.toml @@ -18,10 +18,11 @@ ENABLE_GOATCOUNTER = false GOATCOUNTER_ENDPOINT = "https://goatcounter.scholar.fatcat.wiki/count" GOATCOUNTER_SCRIPT_URL = "https://goatcounter.scholar.fatcat.wiki/count.js" ONION_DOMAIN = "scholar-qa.archivev3qli37bju4rlh27glh24lljyezwxf4pokmrdbpefjlcrp5id.onion" +ENABLE_PROMETHEUS = false [test] SCHOLAR_ENV = "test" -FATCAT_API_HOST = "http://localhost:9411/v0" +FATCAT_API_HOST = "http://disabled-during-tests-bogus.xyz:3333" SCHOLAR_ISSUEDB_PATH = ":memory:" [development] diff --git a/tests/files/sim_collections.json b/tests/files/sim_collections.json new file mode 100644 index 0000000..0db6cf7 --- /dev/null +++ b/tests/files/sim_collections.json @@ -0,0 +1,2 @@ +{"created":1589580983,"d1":"ia601402.us.archive.org","d2":"ia801402.us.archive.org","dir":"/6/items/pub_american-chiropractic-association-the-aca-journal","files":[{"name":"Collection_Image.jpg","source":"original","mtime":"1589548368","size":"89973","format":"Collection Header","rotation":"0","md5":"073e99d6db7ee60c10e1f083a14c5ffe","crc32":"4709b694","sha1":"58efccb65952acb4e17f91d32f0caccc0ce6232b"},{"name":"__ia_thumb.jpg","source":"original","mtime":"1589548436","size":"6940","md5":"ac1bd4827c2c42840a21336759eff605","crc32":"4b9b9f9f","sha1":"6352ad6eab6fbf54ff484c766c0ce9d611c83ed6","format":"Item Tile","rotation":"0"},{"name":"pub_american-chiropractic-association-the-aca-journal_archive.torrent","source":"metadata","btih":"88934bf6e6b8a1416ca9a6ab70323f40739d2f87","mtime":"1589547453","size":"2209","md5":"5ed5acdcf873d7a24b846fa527682e93","crc32":"14e79ae4","sha1":"f29bb61df6596eadcd4678653d93b81dec648c41","format":"Archive BitTorrent"},{"name":"pub_american-chiropractic-association-the-aca-journal_files.xml","source":"original","format":"Metadata","md5":"aae4c5d95487f62c4533f97eafc3f85f"},{"name":"pub_american-chiropractic-association-the-aca-journal_meta.sqlite","source":"original","mtime":"1589548435","size":"10240","format":"Metadata","md5":"91a0343793e1727f10984aebe7750db9","crc32":"b09341bc","sha1":"62dbcd0fd3cd7ca593a89167ee75bf8a52d9eab3"},{"name":"pub_american-chiropractic-association-the-aca-journal_meta.xml","source":"original","mtime":"1588216030","size":"1355","format":"Metadata","md5":"d68205cec53e32b203959638e140f7cb","crc32":"f6e7aae3","sha1":"8dea17c5b6c89721b773c9a332b014c19a0ca64e"},{"name":"pub_american-chiropractic-association-the-aca-journal_ulrichs.json","source":"original","mtime":"1589238096","size":"6507","format":"JSON","md5":"1d225ee4acc9e82f8a8cfe561f53979b","crc32":"9080c84a","sha1":"4c12b6e50ecd06fa4344ef488bede2ea8063fd06"}],"files_count":7,"is_collection":true,"item_last_updated":1589548436,"item_size":117224,"metadata":{"identifier":"pub_american-chiropractic-association-the-aca-journal","collection":["sim_microfilm","periodicals","texts"],"contributor":"Internet Archive","country":"United States","description":"American Chiropractic Association. The ACA journal of chiropractic. is a scholarly journal published in United States focused on Health & Medical Sciences. This collection contains microfilm published between 1975 and 2004. The ISSN is 0044-7609.","hidden":"true","issn":"","language":"English","mediatype":"collection","pub_type":"Scholarly Journals","publisher":"The Journal of the American Chiropractic","scanner":"Internet Archive Python library 1.9.0","scholarly":"True","sim_pubid":"10579","sponsor":"Kahle/Austin Foundation","subject":"Health & Medical Sciences","title":"American Chiropractic Association. The ACA Journal of Chiropractic 1975-2004","uploader":"derek@archive.org","publicdate":"2020-03-30 19:58:42","addeddate":"2020-03-30 19:58:42","forum":"pub_american-chiropractic-association-the-aca-journal"},"server":"ia801402.us.archive.org","ulrichs":[{"pubcat_id":"10579","na_title":"American Chiropractic Association. The ACA Journal of Chiropractic","na_issn":"0044-7609","title_id":"41496","title":"American Chiropractic Association. Journal","issn":"","serial_type":"Journal","format":"Print","status":"Ceased","subject_codes":"MEDICAL SCIENCES - CHIROPRACTIC, HOMEOPATHY, OSTEOPATHY","subtitle":null,"publisher":"American Chiropractic Association","country":"United States","start_year":"1930","end_year":"2013","publication_history":"1930-2013","content_type":"Academic / Scholarly","editorial_description":"Discusses current procedures, research and developments in the field of chiropractic and in related fields of interest to chiropractors.","website":null,"abstracted_indexed":null,"acronym_definition":null,"volume_earlest_note":null,"volume_ends":null,"language":"Text in English","history":["ACA Journal of Chiropractic 0044-7609 (until 1981) USA United States","American Chiropractic Association. Membership Directory 0747-8372 Incorporates (in 1995) USA United States","American Chiropractic Association. Official Membership Directory 0569-3837 Which was formerly (until 1983) USA United States","Journal of Chiropractic 0744-9984 Former titles (until 1995) USA United States","National Chiropractic Journal Which superseded (in 1964) USA United States"],"reviews_mfl":null,"reviews_other":["Editorial Description Discusses current procedures, research and developments in the field of chiropractic and in related fields of interest to chiropractors.","Reader Description Doctors and students of chiropractic in the U.S. and some foreign countries, legislators, and vendors.","NMD Content Description Introduces articles staff and free lance written for the chiropractic profession dealing with the clinical sciences, general health,news and developments within the profession, education, research, legislation, editorials, council reports, literature abstracts, and book reviews."],"bldsc_shelfmark":null,"lc_number":null,"coden":null,"dewey_number":"615.543","related_titles":["Alternative Media Edition American Chiropractic Association. Journal 1081-7166 Ceased Print 1930 Monthly","Alternative Media Edition American Chiropractic Association. Journal 1943-4790 Ceased Online Monthly"],"price":null,"medline_abbreviation":null,"pages_per_issue":null,"international_org_code":null,"medline_abbreviation_2":null,"alternate_title":"Journal of the American Chiropractic Association","abbreviated_title":null,"parallel_language_title":null,"short_title":null,"key_features":["Abstracted or Indexed","Refereed / Peer-reviewed","Table of Contents"],"other_features":["Book reviews included","Charts included","Illustrations included","Index to Articles","Reprint available","Reviews included (any)"],"editors":null,"editors_contact":null,"publishers":null,"publishers_contact":null,"advertising_size":null,"materials_accepted":["Letters to editor","Book rev.","Question and answer","New product news/photos","Display adv.","Classified adv."],"circulation":null,"ad_rate":null,"advertising_contact":null,"rights_and_permissions_contact":null,"other_availability_document_delivery":["British Library Document Supply Service","German National Library of Medicine","Information Express"],"other_availability_reprint":null,"other_availability_back_issues":"0","online_availability_rss":null,"online_availability_full_text":null,"abstracting_indexing":["British Library Board Allied and Complementary Medicine Database 238846 A ONL","EBSCOhost Allied and Complementary Medicine Database 238846 A ONL","ProQuest ProQuest Pharma Collection 809499 12/1/2004-12/1/2004 A ONL"],"key_title":null,"bibliographic_note":null,"email":null,"publisher_and_ordering_details":["Commercial Publisher American Chiropractic Association Address: 1701 Clarendon Blvd Arlington VA 22209 United States Phone: 703-276-8800 Fax: 703-243-2593 Email: memberinfo@acatoday.org Website: http://www.amerchiro.org","Corporate Author American Chiropractic Association Address: 1701 Clarendon Blvd Arlington VA 22209 United States Phone: 703-276-8800 Fax: 703-243-2593 Email: memberinfo@acatoday.org Website: http://www.amerchiro.org"],"frequency":"Monthly","volume_information":null,"latest_volume":null,"refereed":null,"other_availability_free_samples":null,"open_access":null}],"uniq":581558559,"workable_servers":["ia801402.us.archive.org","ia601402.us.archive.org"]} +{"created":1589580983,"d1":"ia902902.us.archive.org","d2":"ia802902.us.archive.org","dir":"/18/items/pub_behavioral-medicine","files":[{"name":"pub_behavioral-medicine_archive.torrent","source":"metadata","btih":"df37c4e867beeb76d77eb173bb4617d1d43a1917","mtime":"1589238266","size":"1738","md5":"d3bf91c97c13f8013f60fe9b8222dbe7","crc32":"ce0676ef","sha1":"9d418d6a450fad2010fa8253237a1625e4d21805","format":"Archive BitTorrent"},{"name":"pub_behavioral-medicine_files.xml","source":"original","format":"Metadata","md5":"e34025a61b0113d7a00e84db73779097"},{"name":"pub_behavioral-medicine_meta.sqlite","source":"original","mtime":"1589238264","size":"8192","format":"Metadata","md5":"90161d7e1e0e9057da8a6dd53a3c5a7a","crc32":"bcab89d5","sha1":"438cdde58245654c2f113327fcfbacc512d5d538"},{"name":"pub_behavioral-medicine_meta.xml","source":"original","mtime":"1588216029","size":"1312","format":"Metadata","md5":"1e15fdf1d2c5ee6e95fb0f2cc26bb007","crc32":"0232dee1","sha1":"4586d249f5b771f3e1117ac5362b5a1111e7f8b1"},{"name":"pub_behavioral-medicine_ulrichs.json","source":"original","mtime":"1589238105","size":"23865","format":"JSON","md5":"e7feb2cf3210bff52915952f2025d8f9","crc32":"77d90669","sha1":"d92e7c8992a7580c6e73b545506fcf1504dda551"}],"files_count":5,"is_collection":true,"item_last_updated":1589238266,"item_size":35107,"metadata":{"identifier":"pub_behavioral-medicine","collection":["sim_microfilm","periodicals","texts"],"contributor":"Internet Archive","country":"United Kingdom","description":"Behavioral Medicine is a peer-reviewed scholarly journal published in United Kingdom focused on Medical Sciences--Psychiatry And Neurology and Psychology. This collection contains microfilm published between 1979 and 2012. The ISSN is 0896-4289.","hidden":"true","issn":"","language":"English","mediatype":"collection","peer_reviewed":"True","pub_type":"Scholarly Journals","publisher":"Taylor & Francis Inc.","scanner":"Internet Archive Python library 1.9.0","scholarly":"True","sim_pubid":"12489","sponsor":"Kahle/Austin Foundation","subject":["Medical Sciences--Psychiatry And Neurology","Psychology"],"title":"Behavioral Medicine 1979-2012","uploader":"derek@archive.org","publicdate":"2020-03-20 06:10:31","addeddate":"2020-03-20 06:10:31","forum":"pub_behavioral-medicine"},"server":"ia802902.us.archive.org","ulrichs":[{"pubcat_id":"12489","na_title":"Behavioral Medicine","na_issn":"0896-4289","title_id":"65666","title":"Behavioral Medicine","issn":"","serial_type":"Journal","format":"Print","status":"Active","subject_codes":"MEDICAL SCIENCES - PSYCHIATRY AND NEUROLOGY, PSYCHOLOGY","subtitle":"relating behavior and health","publisher":"Routledge","country":"United States","start_year":"1975","end_year":null,"publication_history":null,"content_type":"Academic / Scholarly","editorial_description":"Features for physicians, psychologists, nurses, educators, and all who are concerned with behavioral and social influences on mental and physical health.","website":"http://www.tandfonline.com/loi/vbmd20","abstracted_indexed":null,"acronym_definition":null,"volume_earlest_note":null,"volume_ends":null,"language":"Text in English","history":"Journal of Human Stress 0097-840X Formerly (until 1988) USA United States","reviews_mfl":null,"reviews_other":["Editorial Description Features for physicians, psychologists, nurses, educators, and all who are concerned with behavioral and social influences on mental and physical health.","Reader Description Physicians, educators, psychologists, and nurses.","NMD Content Description Discusses information of particular interest to physicians, psychologists, nurses, educators, and all who are concerned with behavioral and social influences on mental and physical health."],"bldsc_shelfmark":null,"lc_number":"RB152","coden":"BEMEEF","dewey_number":"616.8","related_titles":["Alternative Media Edition Behavioral Medicine 0896-4289 Active Print 1975 Quarterly","Alternative Media Edition Behavioral Medicine Active CDR Quarterly","Alternative Media Edition Behavioral Medicine 1940-4026 Active Online Quarterly","Alternative Media Edition Behavioral Medicine Active ML Quarterly"],"price":["GBP 384.00 combined subscription per year institutions (print & online eds.) 2020 effective","EUR 509.00 combined subscription per year institutions (print & online eds.) 2020 effective","USD 635.00 combined subscription per year in North America institutions (print & online eds.) 2020 effective"],"medline_abbreviation":"Behav Med","pages_per_issue":"40","international_org_code":null,"medline_abbreviation_2":"Behav Med","alternate_title":null,"abbreviated_title":null,"parallel_language_title":null,"short_title":null,"key_features":["Copyright Clearance Center (CCC)","Abstracted or Indexed","Journal Citation Reports","Refereed / Peer-reviewed","Table of Contents","Website URL"],"other_features":["Advertising included","Back issues available","Book reviews included","Charts included","Index to Articles","Reprint available","Reviews included (any)","Statistics"],"editors":"1023100 Dr. Perry N Halkitis Routledge Editor-In-Chief","editors_contact":null,"publishers":null,"publishers_contact":null,"advertising_size":null,"materials_accepted":["Letters to editor","Book rev.","Display adv.","Classified adv."],"circulation":null,"ad_rate":null,"advertising_contact":null,"rights_and_permissions_contact":null,"other_availability_document_delivery":["British Library Document Supply Service","German National Library of Medicine","IngentaConnect","Reprints Desk, Inc.","RightFind"],"other_availability_reprint":"Periodicals Service Co.","other_availability_back_issues":"1","online_availability_rss":null,"online_availability_full_text":["Copyright Clearance Center Get It Now 1975-","Taylor & Francis Taylor & Francis_Bibsam_MedicalPackageUpgrade_2017 01/01/1997-","中国教育图书进出口有限公司 (CEPIEC - China Educational Publications Import & Export Corporation Ltd.) Socolar 1997-2005"],"abstracting_indexing":["Abstracts of Mycology 41084 C PRN","U.S. National Library of Medicine MEDLINE 59635 A ONL"],"key_title":null,"bibliographic_note":null,"email":null,"publisher_and_ordering_details":["Commercial Publisher Routledge Address: 530 Walnut St Ste 850 Philadelphia PA 19106 United States Fax: 215-625-2940 Email: enquiries@tandfonline.com Website: http://www.tandfonline.com","Commercial Publisher Parent Taylor & Francis Group Ltd. Address:","Corporate Author Helen Dwight Reid Educational Foundation Address:"],"frequency":"Quarterly","volume_information":null,"latest_volume":null,"refereed":null,"other_availability_free_samples":null,"open_access":null}],"uniq":1263635067,"workable_servers":["ia802902.us.archive.org","ia902902.us.archive.org"]} diff --git a/tests/files/sim_items.json b/tests/files/sim_items.json new file mode 100644 index 0000000..0e05cbb --- /dev/null +++ b/tests/files/sim_items.json @@ -0,0 +1,2 @@ +{"created":1589581109,"d1":"ia601507.us.archive.org","d2":"ia801507.us.archive.org","dir":"/11/items/sim_american-chiropractic-associ-aca-journal-of-chiropractic_1982-01_19_1","files":[{"name":"__ia_thumb.jpg","source":"original","mtime":"1585871909","size":"13799","format":"Item Tile","rotation":"0","md5":"331cc70b1e65cfc57102b29df451f6ed","crc32":"a4affb02","sha1":"65975ccac11d020a3e897f8678cfc7594c149c88"},{"name":"header/header_0000.jp2","source":"original","mtime":"1585598524","size":"516488","md5":"860f20a5939b46884aa832c6e87bf70d","crc32":"a71a9144","sha1":"58d4643bb019a01230eea73ee5ea637d31eb9d50","format":"JPEG 2000","private":"true"},{"name":"header/header_0001.jp2","source":"original","mtime":"1585598540","size":"217156","md5":"ae7ea8886976769a10a0f033f829b4b1","crc32":"f521c302","sha1":"bce5529e0ec2e1cda93c50fb5ba4bdde0996e32b","format":"JPEG 2000","private":"true"},{"name":"header/header_0002.jp2","source":"original","mtime":"1585598534","size":"113215","md5":"62cf966c1b0794f7831318d8cf5be3de","crc32":"a5052312","sha1":"10058d3317537dcfbbf017622aed94c33a4b6edf","format":"JPEG 2000","private":"true"},{"name":"header/header_0003.jp2","source":"original","mtime":"1585598551","size":"70773","md5":"8f3b2bce03fdf8184513d89e0e6acb2e","crc32":"ee36ae0d","sha1":"050e97a6eb59ae13faabdfc8b15937edded31681","format":"JPEG 2000","private":"true"},{"name":"sim_american-chiropractic-associ-aca-journal-of-chiropractic_1982-01_19_1.pdf","source":"derivative","format":"Text PDF","original":"sim_american-chiropractic-associ-aca-journal-of-chiropractic_1982-01_19_1_abbyy.gz","mtime":"1585600111","size":"18808924","md5":"9b6ae69da195fe402780797b2d130e71","crc32":"439f6188","sha1":"bb7c54a088324e652917db9bec5bb4ced4566b6a","private":"true"},{"name":"sim_american-chiropractic-associ-aca-journal-of-chiropractic_1982-01_19_1_abbyy.gz","source":"derivative","format":"Abbyy GZ","original":"sim_american-chiropractic-associ-aca-journal-of-chiropractic_1982-01_19_1_jp2.zip","mtime":"1585599435","size":"4778595","md5":"0779b5b8dae010587a70b16862409ca4","crc32":"a5368f9e","sha1":"36e3012b7624d11c268361a45b1edd9674e7584b","private":"true"},{"name":"sim_american-chiropractic-associ-aca-journal-of-chiropractic_1982-01_19_1_djvu.txt","source":"derivative","format":"DjVuTXT","original":"sim_american-chiropractic-associ-aca-journal-of-chiropractic_1982-01_19_1_djvu.xml","mtime":"1585599596","size":"327748","md5":"bba8c988142f2356ad6fda9c46892ef5","crc32":"d7f680f1","sha1":"f70cb2c41be98f54c1b0ea54ba8e804e4a6ee246","private":"true"},{"name":"sim_american-chiropractic-associ-aca-journal-of-chiropractic_1982-01_19_1_djvu.xml","source":"derivative","format":"Djvu XML","original":"sim_american-chiropractic-associ-aca-journal-of-chiropractic_1982-01_19_1_abbyy.gz","mtime":"1585599590","size":"3534144","md5":"5fb2973ed2e038980bd8cbf17958c207","crc32":"5f9fc3e6","sha1":"c399fe50e66bd55c9d779e9d52c3d1e58f39c4bc","private":"true"},{"name":"sim_american-chiropractic-associ-aca-journal-of-chiropractic_1982-01_19_1_files.xml","source":"original","format":"Metadata","md5":"1c8fa208dd4174c99f72128ffc874ed3"},{"name":"sim_american-chiropractic-associ-aca-journal-of-chiropractic_1982-01_19_1_jp2.zip","source":"original","mtime":"1585598499","size":"103432248","md5":"703be7af2b8dd1981e9006c344b2f5c1","crc32":"3909ee0d","sha1":"505ec2380f9b480a7ff821e0710518d42c8f4543","format":"Single Page Processed JP2 ZIP","private":"true","preview-image":"n0"},{"name":"sim_american-chiropractic-associ-aca-journal-of-chiropractic_1982-01_19_1_loans.json","source":"original","mtime":"1585602106","size":"80","md5":"0b3cc3bffec387f3b680a2920ce97c68","crc32":"9f728fdf","sha1":"04db82f34fed9e624ddd69cb9163d0df1b844755","format":"JSON","private":"true"},{"name":"sim_american-chiropractic-associ-aca-journal-of-chiropractic_1982-01_19_1_meta.sqlite","source":"original","mtime":"1585598643","size":"23552","format":"Metadata","md5":"41ad1259c71882a97babab5fbb52df1e","crc32":"636f10a1","sha1":"05b8153559da21508b444e2c3c0cb0fc4740f0a8"},{"name":"sim_american-chiropractic-associ-aca-journal-of-chiropractic_1982-01_19_1_meta.xml","source":"original","mtime":"1587506381","size":"2355","format":"Metadata","md5":"ecce4350784a0932225283b0d639da96","crc32":"1897a8f2","sha1":"7be73e910f044b7f4ac6c43043b149587a2fd45c"},{"name":"sim_american-chiropractic-associ-aca-journal-of-chiropractic_1982-01_19_1_page_numbers.json","source":"derivative","format":"Page Numbers JSON","original":"sim_american-chiropractic-associ-aca-journal-of-chiropractic_1982-01_19_1_djvu.xml","mtime":"1587506387","size":"20432","md5":"29f7c6f8a5db55c97975d4075cb66e38","crc32":"2753cbca","sha1":"1d6fbb66bd9abacf195755dba5967ae72cc12cc6","private":"true"},{"name":"sim_american-chiropractic-associ-aca-journal-of-chiropractic_1982-01_19_1_scandata.xml","source":"derivative","format":"Scandata","original":"sim_american-chiropractic-associ-aca-journal-of-chiropractic_1982-01_19_1_djvu.xml","mtime":"1587506387","size":"35729","md5":"82b975b2895c233bf12d727a54794ab2","crc32":"42455ed1","sha1":"1f3706558ed75b11a795c522e32f4f23d0d3d424"}],"files_count":16,"item_last_updated":1587506387,"item_size":131895238,"loans":{"status":{"status":"AVAILABLE","num_loans":0,"num_waitlist":0,"num_history":0}},"metadata":{"identifier":"sim_american-chiropractic-associ-aca-journal-of-chiropractic_1982-01_19_1","boxid":"IA1534524","canister":"IA1534524-03","collection":["pub_american-chiropractic-association-the-aca-journal","inlibrary","printdisabled","sim_microfilm","periodicals"],"contributor":"Internet Archive","copies":"3","date":"1982-01","description":"Journal of Chiropractic 1982-01: Volume 19, Issue 1.
Digitized from IA1534524-03.","issn":"0044-7609","issue":"1","language":"English","mediatype":"texts","ppi":"400","pub_type":"Scholarly Journals","publisher":"The Journal of the American Chiropractic","scanner":"microfilm01.cebu.archive.org","scanningcenter":"cebu","sim_pubid":"10579","software_version":"nextStar 4.5.0.20626","source":["IA1534524-03","microfilm"],"sponsor":"Kahle/Austin Foundation","subject":["Health & Medical Sciences","Scholarly Journals","microfilm"],"title":"Journal of Chiropractic 01-1982: Vol 19, Iss 1","volume":"19","uploader":"derek@archive.org","publicdate":"2020-03-30 20:02:50","addeddate":"2020-03-30 20:02:50","access-restricted-item":"true","identifier-access":"http://archive.org/details/sim_american-chiropractic-associ-aca-journal-of-chiropractic_1982-01_19_1","identifier-ark":"ark:/13960/t7zm40c5g","imagecount":"101","ocr":"ABBYY FineReader 11.0 (Extended OCR)","loans__status__status":"AVAILABLE","loans__status__num_loans":"0","loans__status__num_waitlist":"0","loans__status__num_history":"0","foldoutcount":"0"},"page_numbers":{"pages":[{"leafNum":0,"ocr_value":["i","I","300"],"pageNumber":"","confidence":0},{"leafNum":1,"ocr_value":["12","91722","222"],"pageNumber":"","confidence":0},{"leafNum":2,"ocr_value":["1982","1"],"pageNumber":"","confidence":0},{"leafNum":3,"ocr_value":["I","4"],"pageNumber":"4","confidence":0},{"leafNum":4,"ocr_value":["1","1982","5"],"pageNumber":"5","confidence":0},{"leafNum":5,"ocr_value":["1916","22201","6"],"pageNumber":"6","confidence":0},{"leafNum":6,"ocr_value":["2","55411","1499"],"pageNumber":"7","confidence":0},{"leafNum":7,"ocr_value":["2460","44139"],"pageNumber":"8","confidence":0},{"leafNum":8,"ocr_value":["1981","1982","9"],"pageNumber":"9","confidence":0},{"leafNum":9,"ocr_value":["35","10"],"pageNumber":"10","confidence":0},{"leafNum":10,"ocr_value":["1","1021"],"pageNumber":"11","confidence":0},{"leafNum":11,"ocr_value":["I","12"],"pageNumber":"12","confidence":0},{"leafNum":12,"ocr_value":["1982","13"],"pageNumber":"13","confidence":0},{"leafNum":13,"ocr_value":["100"],"pageNumber":"14","confidence":0},{"leafNum":14,"ocr_value":["II","92714"],"pageNumber":"15","confidence":0},{"leafNum":15,"ocr_value":["1981","16"],"pageNumber":"1981","confidence":0},{"leafNum":16,"ocr_value":["1982","213"],"pageNumber":"1982","confidence":0},{"leafNum":17,"ocr_value":["1982","18"],"pageNumber":"18","confidence":0},{"leafNum":18,"ocr_value":["1","1982","19"],"pageNumber":"19","confidence":0},{"leafNum":19,"ocr_value":["1","20"],"pageNumber":"20","confidence":0},{"leafNum":20,"ocr_value":["115"],"pageNumber":"21","confidence":0},{"leafNum":21,"ocr_value":["1945"],"pageNumber":"22","confidence":0},{"leafNum":22,"ocr_value":["1982","23"],"pageNumber":"23","confidence":0},{"leafNum":23,"ocr_value":["24"],"pageNumber":"24","confidence":0},{"leafNum":24,"ocr_value":["I","1982","25"],"pageNumber":"25","confidence":0},{"leafNum":25,"ocr_value":["26","307","800","07050"],"pageNumber":"26","confidence":0},{"leafNum":26,"ocr_value":[],"pageNumber":"27","confidence":0},{"leafNum":27,"ocr_value":["IV","28"],"pageNumber":"28","confidence":0},{"leafNum":28,"ocr_value":["18","1982","29"],"pageNumber":"29","confidence":0},{"leafNum":29,"ocr_value":["1","L"],"pageNumber":"30","confidence":0},{"leafNum":30,"ocr_value":["1982","31"],"pageNumber":"31","confidence":0},{"leafNum":31,"ocr_value":["32"],"pageNumber":"32","confidence":0},{"leafNum":32,"ocr_value":["1980","1982","33"],"pageNumber":"33","confidence":0},{"leafNum":33,"ocr_value":["I","34"],"pageNumber":"34","confidence":0},{"leafNum":34,"ocr_value":["1969","1982","35"],"pageNumber":"35","confidence":0},{"leafNum":35,"ocr_value":["110","36"],"pageNumber":"36","confidence":0},{"leafNum":36,"ocr_value":["75","1982","37"],"pageNumber":"37","confidence":0},{"leafNum":37,"ocr_value":["135","25","38"],"pageNumber":"38","confidence":0},{"leafNum":38,"ocr_value":["50","1000"],"pageNumber":"39","confidence":0},{"leafNum":39,"ocr_value":["21","40"],"pageNumber":"40","confidence":0},{"leafNum":40,"ocr_value":["1971","1982","41"],"pageNumber":"41","confidence":0},{"leafNum":41,"ocr_value":["42"],"pageNumber":"42","confidence":0},{"leafNum":42,"ocr_value":["C","1982","43"],"pageNumber":"43","confidence":0},{"leafNum":43,"ocr_value":["2","44"],"pageNumber":"44","confidence":0},{"leafNum":44,"ocr_value":["1982","90004","590"],"pageNumber":"45","confidence":0},{"leafNum":45,"ocr_value":[],"pageNumber":"46","confidence":0},{"leafNum":46,"ocr_value":["1982","47"],"pageNumber":"47","confidence":0},{"leafNum":47,"ocr_value":["15","5"],"pageNumber":"48","confidence":0},{"leafNum":48,"ocr_value":["L","1982","49"],"pageNumber":"49","confidence":0},{"leafNum":49,"ocr_value":["50"],"pageNumber":"50","confidence":0},{"leafNum":50,"ocr_value":["1982","51"],"pageNumber":"51","confidence":0},{"leafNum":51,"ocr_value":["11142","52"],"pageNumber":"52","confidence":0},{"leafNum":52,"ocr_value":["2","1982","53"],"pageNumber":"53","confidence":0},{"leafNum":53,"ocr_value":["I","i","312","622"],"pageNumber":"54","confidence":0},{"leafNum":54,"ocr_value":["220","1982","55"],"pageNumber":"55","confidence":0},{"leafNum":55,"ocr_value":["203","56"],"pageNumber":"56","confidence":0},{"leafNum":56,"ocr_value":["I","1982","57"],"pageNumber":"57","confidence":0},{"leafNum":57,"ocr_value":["2"],"pageNumber":"58","confidence":0},{"leafNum":58,"ocr_value":["20463"],"pageNumber":"59","confidence":0},{"leafNum":59,"ocr_value":["60"],"pageNumber":"60","confidence":0},{"leafNum":60,"ocr_value":["I","1982","61"],"pageNumber":"61","confidence":0},{"leafNum":61,"ocr_value":["I","1","62"],"pageNumber":"62","confidence":0},{"leafNum":62,"ocr_value":["V","1873"],"pageNumber":"63","confidence":0},{"leafNum":63,"ocr_value":["80"],"pageNumber":"64","confidence":0},{"leafNum":64,"ocr_value":["64","1982","65"],"pageNumber":"65","confidence":0},{"leafNum":65,"ocr_value":["1","2","66"],"pageNumber":"66","confidence":0},{"leafNum":66,"ocr_value":["3","1982","67"],"pageNumber":"67","confidence":0},{"leafNum":67,"ocr_value":["18","68"],"pageNumber":"68","confidence":0},{"leafNum":68,"ocr_value":["1982","69"],"pageNumber":"69","confidence":0},{"leafNum":69,"ocr_value":["1950","70"],"pageNumber":"70","confidence":0},{"leafNum":70,"ocr_value":["1","2","1982","71"],"pageNumber":"71","confidence":0},{"leafNum":71,"ocr_value":["75","72"],"pageNumber":"72","confidence":0},{"leafNum":72,"ocr_value":["4","1982"],"pageNumber":"73","confidence":0},{"leafNum":73,"ocr_value":["415","74"],"pageNumber":"74","confidence":0},{"leafNum":74,"ocr_value":["30","115","1982","75"],"pageNumber":"75","confidence":0},{"leafNum":75,"ocr_value":["1981","76"],"pageNumber":"1981","confidence":0},{"leafNum":76,"ocr_value":["1982","77"],"pageNumber":"77","confidence":0},{"leafNum":77,"ocr_value":["78"],"pageNumber":"78","confidence":0},{"leafNum":78,"ocr_value":["1982","6401","64131"],"pageNumber":"79","confidence":0},{"leafNum":79,"ocr_value":["1982","80"],"pageNumber":"80","confidence":0},{"leafNum":80,"ocr_value":["503","1982","81"],"pageNumber":"81","confidence":0},{"leafNum":81,"ocr_value":["I","82"],"pageNumber":"82","confidence":0},{"leafNum":82,"ocr_value":["30","1935","1982","83"],"pageNumber":"83","confidence":0},{"leafNum":83,"ocr_value":["20","84"],"pageNumber":"84","confidence":0},{"leafNum":84,"ocr_value":["I","1982","85"],"pageNumber":"85","confidence":0},{"leafNum":85,"ocr_value":["1982","86"],"pageNumber":"86","confidence":0},{"leafNum":86,"ocr_value":["5","1982","87"],"pageNumber":"87","confidence":0},{"leafNum":87,"ocr_value":["1","88"],"pageNumber":"88","confidence":0},{"leafNum":88,"ocr_value":["31","1982","89"],"pageNumber":"89","confidence":0},{"leafNum":89,"ocr_value":["168","594"],"pageNumber":"90","confidence":0},{"leafNum":90,"ocr_value":["1982","91"],"pageNumber":"91","confidence":0},{"leafNum":91,"ocr_value":["92"],"pageNumber":"92","confidence":0},{"leafNum":92,"ocr_value":["81","1982","93"],"pageNumber":"93","confidence":0},{"leafNum":93,"ocr_value":["239","94","1954"],"pageNumber":"94","confidence":0},{"leafNum":94,"ocr_value":["1982"],"pageNumber":"95","confidence":0},{"leafNum":95,"ocr_value":["96"],"pageNumber":"96","confidence":0},{"leafNum":96,"ocr_value":["1916","22201","1982","97"],"pageNumber":"97","confidence":0},{"leafNum":97,"ocr_value":["1","98"],"pageNumber":"98","confidence":0},{"leafNum":98,"ocr_value":["652","53201","156"],"pageNumber":"99","confidence":0},{"leafNum":99,"ocr_value":["1981","52001","1901"],"pageNumber":"100","confidence":0},{"leafNum":100,"ocr_value":["c","9"],"pageNumber":"101","confidence":0}],"confidence":0,"identifier":"/var/tmp/autoclean/derive/sim_american-chiropractic-associ-aca-journal-of-chiropractic_1982-01_19_1/sim_american-chiropractic-associ-aca-journal-of-chiropractic_1982-01_19_1"},"server":"ia801507.us.archive.org","uniq":1845424681,"workable_servers":["ia801507.us.archive.org","ia601507.us.archive.org"]} +{"created":1589562116,"d1":"ia601408.us.archive.org","d2":"ia801408.us.archive.org","dir":"/26/items/sim_american-chiropractic-associ-aca-journal-of-chiropractic_1982-04_19_4","files":[{"name":"__ia_thumb.jpg","source":"original","mtime":"1585872094","size":"11276","format":"Item Tile","rotation":"0","md5":"cecae52a27dd937ce11acfa5234641fd","crc32":"8a6c77ba","sha1":"8773baba0a9f0d24c8ad9c2e9022e9a9942d4064"},{"name":"header/header_0000.jp2","source":"original","mtime":"1585598733","size":"516488","md5":"860f20a5939b46884aa832c6e87bf70d","crc32":"a71a9144","sha1":"58d4643bb019a01230eea73ee5ea637d31eb9d50","format":"JPEG 2000","private":"true"},{"name":"header/header_0001.jp2","source":"original","mtime":"1585598740","size":"217156","md5":"ae7ea8886976769a10a0f033f829b4b1","crc32":"f521c302","sha1":"bce5529e0ec2e1cda93c50fb5ba4bdde0996e32b","format":"JPEG 2000","private":"true"},{"name":"header/header_0002.jp2","source":"original","mtime":"1585598750","size":"113215","md5":"62cf966c1b0794f7831318d8cf5be3de","crc32":"a5052312","sha1":"10058d3317537dcfbbf017622aed94c33a4b6edf","format":"JPEG 2000","private":"true"},{"name":"header/header_0003.jp2","source":"original","mtime":"1585598755","size":"101056","md5":"92cc133b415fc6d8f69375777b8bc98f","crc32":"861bb16f","sha1":"24c1a3f60f122225cac177b6191de64ca35d3b8b","format":"JPEG 2000","private":"true"},{"name":"sim_american-chiropractic-associ-aca-journal-of-chiropractic_1982-04_19_4.pdf","source":"derivative","format":"Text PDF","original":"sim_american-chiropractic-associ-aca-journal-of-chiropractic_1982-04_19_4_abbyy.gz","mtime":"1585600249","size":"18473462","md5":"633df4bbff7ddce589747053422e6e1a","crc32":"1c50667b","sha1":"ab1df437c2239d8ae77df3a8b1b5c29a6d9c2424","private":"true"},{"name":"sim_american-chiropractic-associ-aca-journal-of-chiropractic_1982-04_19_4_abbyy.gz","source":"derivative","format":"Abbyy GZ","original":"sim_american-chiropractic-associ-aca-journal-of-chiropractic_1982-04_19_4_jp2.zip","mtime":"1585599622","size":"4470895","md5":"878283df990111128995dbd83b8462e1","crc32":"02da9018","sha1":"8af219c0564db73db22c096b9a8e13e45e116989","private":"true"},{"name":"sim_american-chiropractic-associ-aca-journal-of-chiropractic_1982-04_19_4_djvu.txt","source":"derivative","format":"DjVuTXT","original":"sim_american-chiropractic-associ-aca-journal-of-chiropractic_1982-04_19_4_djvu.xml","mtime":"1585599789","size":"309680","md5":"7cb3d43f29beb39f198d67a09741bca2","crc32":"1672108f","sha1":"6c7463c6c8d359211d6d5ad8d9d0ceae86aea165","private":"true"},{"name":"sim_american-chiropractic-associ-aca-journal-of-chiropractic_1982-04_19_4_djvu.xml","source":"derivative","format":"Djvu XML","original":"sim_american-chiropractic-associ-aca-journal-of-chiropractic_1982-04_19_4_abbyy.gz","mtime":"1585599777","size":"3368530","md5":"f7bdffa6c3a9778c6d46baf38066f32f","crc32":"5effa2e9","sha1":"6286396cb5b16f653e7f8d0815a443b699a071cb","private":"true"},{"name":"sim_american-chiropractic-associ-aca-journal-of-chiropractic_1982-04_19_4_files.xml","source":"original","format":"Metadata","md5":"85ca7ebf4ea9b423577d393ff76dfdaf"},{"name":"sim_american-chiropractic-associ-aca-journal-of-chiropractic_1982-04_19_4_jp2.zip","source":"original","mtime":"1585598698","size":"104139657","md5":"aa2a6d62ac12d61d9d726521d2053fd3","crc32":"3c9b5dc1","sha1":"e7207ed33718317270194c2fd505e25505f6a784","format":"Single Page Processed JP2 ZIP","private":"true","preview-image":"n0"},{"name":"sim_american-chiropractic-associ-aca-journal-of-chiropractic_1982-04_19_4_loans.json","source":"original","mtime":"1585602055","size":"80","md5":"0b3cc3bffec387f3b680a2920ce97c68","crc32":"9f728fdf","sha1":"04db82f34fed9e624ddd69cb9163d0df1b844755","format":"JSON","private":"true"},{"name":"sim_american-chiropractic-associ-aca-journal-of-chiropractic_1982-04_19_4_meta.sqlite","source":"original","mtime":"1585598835","size":"23552","format":"Metadata","md5":"2ab3e7d3f5365ebaa06165c6ac88c6ed","crc32":"c87e5c12","sha1":"5a3e38bb40f94e57ce6c820000c3db8219e063df"},{"name":"sim_american-chiropractic-associ-aca-journal-of-chiropractic_1982-04_19_4_meta.xml","source":"original","mtime":"1587506374","size":"2355","format":"Metadata","md5":"e01b15bbd4a5f1195141f3f861bba42c","crc32":"a72734eb","sha1":"58cd4b40b17ed51486fa2bf95ee3f952b64b0ec0"},{"name":"sim_american-chiropractic-associ-aca-journal-of-chiropractic_1982-04_19_4_page_numbers.json","source":"derivative","format":"Page Numbers JSON","original":"sim_american-chiropractic-associ-aca-journal-of-chiropractic_1982-04_19_4_djvu.xml","mtime":"1587506378","size":"20380","md5":"b538ed370996409cf911dacd3c70fe11","crc32":"5f240fe7","sha1":"338a46e56554f70cf58bb3bab56284f084d280ca","private":"true"},{"name":"sim_american-chiropractic-associ-aca-journal-of-chiropractic_1982-04_19_4_scandata.xml","source":"derivative","format":"Scandata","original":"sim_american-chiropractic-associ-aca-journal-of-chiropractic_1982-04_19_4_djvu.xml","mtime":"1587506378","size":"35692","md5":"bb15f7d93df0fb22c5d3b0257151eaa4","crc32":"8eae55d9","sha1":"2081136116b9afe67883b13d91b554b0a20846f4"}],"files_count":16,"item_last_updated":1587506378,"item_size":131803474,"loans":{"status":{"status":"AVAILABLE","num_loans":0,"num_waitlist":0,"num_history":0}},"metadata":{"identifier":"sim_american-chiropractic-associ-aca-journal-of-chiropractic_1982-04_19_4","boxid":"IA1534524","canister":"IA1534524-03","collection":["pub_american-chiropractic-association-the-aca-journal","inlibrary","printdisabled","sim_microfilm","periodicals"],"contributor":"Internet Archive","copies":"3","date":"1982-04","description":"Journal of Chiropractic 1982-04: Volume 19, Issue 4.
Digitized from IA1534524-03.","issn":"0044-7609","issue":"4","language":"English","mediatype":"texts","ppi":"400","pub_type":"Scholarly Journals","publisher":"The Journal of the American Chiropractic","scanner":"microfilm01.cebu.archive.org","scanningcenter":"cebu","sim_pubid":"10579","software_version":"nextStar 4.5.0.20626","source":["IA1534524-03","microfilm"],"sponsor":"Kahle/Austin Foundation","subject":["Health & Medical Sciences","Scholarly Journals","microfilm"],"title":"Journal of Chiropractic 04-1982: Vol 19, Iss 4","volume":"19","uploader":"derek@archive.org","publicdate":"2020-03-30 20:06:18","addeddate":"2020-03-30 20:06:18","access-restricted-item":"true","identifier-access":"http://archive.org/details/sim_american-chiropractic-associ-aca-journal-of-chiropractic_1982-04_19_4","identifier-ark":"ark:/13960/t1fk13s6s","imagecount":"101","ocr":"ABBYY FineReader 11.0 (Extended OCR)","loans__status__status":"AVAILABLE","loans__status__num_loans":"0","loans__status__num_waitlist":"0","loans__status__num_history":"0","foldoutcount":"0"},"page_numbers":{"pages":[{"ocr_value":["1982","4","300"],"pageNumber":"","leafNum":0,"confidence":0},{"ocr_value":["800","91722","222"],"pageNumber":"","leafNum":1,"confidence":0},{"ocr_value":["1982","4"],"pageNumber":"","leafNum":2,"confidence":0},{"ocr_value":["I"],"pageNumber":"","leafNum":3,"confidence":0},{"ocr_value":["1982","5"],"pageNumber":"5","leafNum":4,"confidence":0},{"ocr_value":["1916","22201","6"],"pageNumber":"6","leafNum":5,"confidence":0},{"ocr_value":["1982","6401","64131"],"pageNumber":"7","leafNum":6,"confidence":0},{"ocr_value":["5","8"],"pageNumber":"8","leafNum":7,"confidence":0},{"ocr_value":["3","1873"],"pageNumber":"9","leafNum":8,"confidence":0},{"ocr_value":["I","10"],"pageNumber":"10","leafNum":9,"confidence":0},{"ocr_value":["1"],"pageNumber":"11","leafNum":10,"confidence":0},{"ocr_value":["I","12"],"pageNumber":"12","leafNum":11,"confidence":0},{"ocr_value":["2"],"pageNumber":"13","leafNum":12,"confidence":0},{"ocr_value":["1967","1965","14"],"pageNumber":"14","leafNum":13,"confidence":0},{"ocr_value":["241","1982"],"pageNumber":"15","leafNum":14,"confidence":0},{"ocr_value":["4920","16"],"pageNumber":"16","leafNum":15,"confidence":0},{"ocr_value":["DC","1982","1"],"pageNumber":"17","leafNum":16,"confidence":0},{"ocr_value":["1982","18"],"pageNumber":"18","leafNum":17,"confidence":0},{"ocr_value":["1982"],"pageNumber":"19","leafNum":18,"confidence":0},{"ocr_value":["1982","516","1215"],"pageNumber":"20","leafNum":19,"confidence":0},{"ocr_value":["1105","97420","1982","21"],"pageNumber":"21","leafNum":20,"confidence":0},{"ocr_value":["1962","1981","22"],"pageNumber":"22","leafNum":21,"confidence":0},{"ocr_value":[],"pageNumber":"23","leafNum":22,"confidence":0},{"ocr_value":["24"],"pageNumber":"24","leafNum":23,"confidence":0},{"ocr_value":[],"pageNumber":"25","leafNum":24,"confidence":0},{"ocr_value":["1981","26"],"pageNumber":"1981","leafNum":25,"confidence":0},{"ocr_value":["50","100","1982"],"pageNumber":"1982","leafNum":26,"confidence":0},{"ocr_value":["10","28"],"pageNumber":"28","leafNum":27,"confidence":0},{"ocr_value":["92"],"pageNumber":"29","leafNum":28,"confidence":0},{"ocr_value":["v","30"],"pageNumber":"30","leafNum":29,"confidence":0},{"ocr_value":["1982","V","31"],"pageNumber":"31","leafNum":30,"confidence":0},{"ocr_value":["7060","333","180"],"pageNumber":"32","leafNum":31,"confidence":0},{"ocr_value":["III","1981"],"pageNumber":"33","leafNum":32,"confidence":0},{"ocr_value":["I","34"],"pageNumber":"34","leafNum":33,"confidence":0},{"ocr_value":["52","1982","35"],"pageNumber":"35","leafNum":34,"confidence":0},{"ocr_value":["I","36"],"pageNumber":"36","leafNum":35,"confidence":0},{"ocr_value":["1982","37"],"pageNumber":"37","leafNum":36,"confidence":0},{"ocr_value":["10","38"],"pageNumber":"38","leafNum":37,"confidence":0},{"ocr_value":["1982","39"],"pageNumber":"39","leafNum":38,"confidence":0},{"ocr_value":["1"],"pageNumber":"40","leafNum":39,"confidence":0},{"ocr_value":["1","1982"],"pageNumber":"41","leafNum":40,"confidence":0},{"ocr_value":["12","42"],"pageNumber":"42","leafNum":41,"confidence":0},{"ocr_value":["1982","43"],"pageNumber":"43","leafNum":42,"confidence":0},{"ocr_value":["I","D"],"pageNumber":"44","leafNum":43,"confidence":0},{"ocr_value":["1939","4","45","27"],"pageNumber":"45","leafNum":44,"confidence":0},{"ocr_value":["25","46","28","16"],"pageNumber":"46","leafNum":45,"confidence":0},{"ocr_value":["4","47","29"],"pageNumber":"29","leafNum":46,"confidence":0},{"ocr_value":["16","30","4"],"pageNumber":"30","leafNum":47,"confidence":0},{"ocr_value":["4","49","31"],"pageNumber":"31","leafNum":48,"confidence":0},{"ocr_value":["60"],"pageNumber":"32","leafNum":49,"confidence":0},{"ocr_value":["1982","51"],"pageNumber":"51","leafNum":50,"confidence":0},{"ocr_value":["2","16","32","4"],"pageNumber":"32","leafNum":51,"confidence":0},{"ocr_value":["4","53","33"],"pageNumber":"33","leafNum":52,"confidence":0},{"ocr_value":["16","34","4"],"pageNumber":"34","leafNum":53,"confidence":0},{"ocr_value":["1982","55"],"pageNumber":"55","leafNum":54,"confidence":0},{"ocr_value":["63","C","I"],"pageNumber":"56","leafNum":55,"confidence":0},{"ocr_value":["100","4","57","35"],"pageNumber":"35","leafNum":56,"confidence":0},{"ocr_value":["16","36","4"],"pageNumber":"36","leafNum":57,"confidence":0},{"ocr_value":["4","59","37"],"pageNumber":"37","leafNum":58,"confidence":0},{"ocr_value":[],"pageNumber":"38","leafNum":59,"confidence":0},{"ocr_value":["12","I"],"pageNumber":"39","leafNum":60,"confidence":0},{"ocr_value":["I","1979","34"],"pageNumber":"40","leafNum":61,"confidence":0},{"ocr_value":["1982","63"],"pageNumber":"63","leafNum":62,"confidence":0},{"ocr_value":["64"],"pageNumber":"64","leafNum":63,"confidence":0},{"ocr_value":["1982","65"],"pageNumber":"65","leafNum":64,"confidence":0},{"ocr_value":["1","66"],"pageNumber":"66","leafNum":65,"confidence":0},{"ocr_value":["1982","67"],"pageNumber":"67","leafNum":66,"confidence":0},{"ocr_value":["26"],"pageNumber":"68","leafNum":67,"confidence":0},{"ocr_value":["1982"],"pageNumber":"69","leafNum":68,"confidence":0},{"ocr_value":["1982"],"pageNumber":"70","leafNum":69,"confidence":0},{"ocr_value":["i"],"pageNumber":"71","leafNum":70,"confidence":0},{"ocr_value":["I","72"],"pageNumber":"72","leafNum":71,"confidence":0},{"ocr_value":["I","1982","73"],"pageNumber":"73","leafNum":72,"confidence":0},{"ocr_value":["74"],"pageNumber":"74","leafNum":73,"confidence":0},{"ocr_value":["9","1982","75"],"pageNumber":"75","leafNum":74,"confidence":0},{"ocr_value":["1851","1982","76"],"pageNumber":"76","leafNum":75,"confidence":0},{"ocr_value":["I","10","1982","77"],"pageNumber":"77","leafNum":76,"confidence":0},{"ocr_value":["78"],"pageNumber":"78","leafNum":77,"confidence":0},{"ocr_value":["1982","79"],"pageNumber":"79","leafNum":78,"confidence":0},{"ocr_value":["1946","80"],"pageNumber":"80","leafNum":79,"confidence":0},{"ocr_value":["1982","90004"],"pageNumber":"81","leafNum":80,"confidence":0},{"ocr_value":["1981","1980","82"],"pageNumber":"1981","leafNum":81,"confidence":0},{"ocr_value":["30","1982","83"],"pageNumber":"83","leafNum":82,"confidence":0},{"ocr_value":["1982","8","84"],"pageNumber":"84","leafNum":83,"confidence":0},{"ocr_value":["8","1982","85"],"pageNumber":"85","leafNum":84,"confidence":0},{"ocr_value":["783","13630","86"],"pageNumber":"86","leafNum":85,"confidence":0},{"ocr_value":["3139","1982","87"],"pageNumber":"87","leafNum":86,"confidence":0},{"ocr_value":["453","88"],"pageNumber":"88","leafNum":87,"confidence":0},{"ocr_value":["9","85223"],"pageNumber":"89","leafNum":88,"confidence":0},{"ocr_value":["90"],"pageNumber":"90","leafNum":89,"confidence":0},{"ocr_value":["500","1982","91"],"pageNumber":"91","leafNum":90,"confidence":0},{"ocr_value":["4","3","9353"],"pageNumber":"92","leafNum":91,"confidence":0},{"ocr_value":["31","1982","93"],"pageNumber":"93","leafNum":92,"confidence":0},{"ocr_value":["94"],"pageNumber":"94","leafNum":93,"confidence":0},{"ocr_value":["1982","95"],"pageNumber":"95","leafNum":94,"confidence":0},{"ocr_value":[],"pageNumber":"96","leafNum":95,"confidence":0},{"ocr_value":["1916","22201","1982","97"],"pageNumber":"97","leafNum":96,"confidence":0},{"ocr_value":["1","65453","213","98"],"pageNumber":"98","leafNum":97,"confidence":0},{"ocr_value":["2460","416","14"],"pageNumber":"99","leafNum":98,"confidence":0},{"ocr_value":["3","1981","52001","1901"],"pageNumber":"3","leafNum":99,"confidence":0},{"ocr_value":["I","4"],"pageNumber":"4","leafNum":100,"confidence":0}],"identifier":"/var/tmp/autoclean/derive/sim_american-chiropractic-associ-aca-journal-of-chiropractic_1982-04_19_4/sim_american-chiropractic-associ-aca-journal-of-chiropractic_1982-04_19_4","confidence":0},"server":"ia601408.us.archive.org","uniq":444061342,"workable_servers":["ia601408.us.archive.org","ia801408.us.archive.org"]} diff --git a/tests/test_issue_db.py b/tests/test_issue_db.py new file mode 100644 index 0000000..b29eea0 --- /dev/null +++ b/tests/test_issue_db.py @@ -0,0 +1,26 @@ + +import elasticsearch +import fatcat_openapi_client + +from fatcat_scholar.issue_db import IssueDB +from fatcat_scholar.config import settings + + +def test_issue_db_basics() -> None: + + api_conf = fatcat_openapi_client.Configuration() + api_conf.host = settings.FATCAT_API_HOST + api = fatcat_openapi_client.DefaultApi( + fatcat_openapi_client.ApiClient(api_conf) + ) + + es_client = elasticsearch.Elasticsearch(settings.FATCAT_ELASTICSEARCH_BACKEND) + + issue_db = IssueDB(settings.SCHOLAR_ISSUEDB_PATH) + issue_db.init_db() + + with open('tests/files/sim_collections.json', 'r') as f: + issue_db.load_pubs(f.readlines(), api) + + with open('tests/files/sim_items.json', 'r') as f: + issue_db.load_issues(f.readlines(), es_client) -- cgit v1.2.3