本文整理汇总了Python中ui.marc.extract函数的典型用法代码示例。如果您正苦于以下问题:Python extract函数的具体用法?Python extract怎么用?Python extract使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了extract函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: test_geographic_area_043
def test_geographic_area_043(self):
r = self.get_record("043.mrc")
bib_data = extract(r)
self.assertEqual(bib_data["GEOGRAPHIC_AREA"], ['Europe', 'United States'])
示例2: test_series_830
def test_series_830(self):
r = self.get_record("830.mrc")
bib_data = extract(r)
self.assertEqual(bib_data["SERIES"], ['Louisiana State University studies. Coastal studies series ; no. 10.'])
示例3: test_citation_510
def test_citation_510(self):
r = self.get_record("510.mrc")
bib_data = extract(r)
self.assertEqual(bib_data["CITATION"], ['Wobbe, R.A. Graham Greene, A53a'])
示例4: test_series_440
def test_series_440(self):
r = self.get_record("440.mrc")
bib_data = extract(r)
self.assertEqual(bib_data["SERIES"], ['Religion and civilization series'])
示例5: test_series_810
def test_series_810(self):
r = self.get_record("810.mrc")
bib_data = extract(r)
self.assertEqual(bib_data["SERIES"], ['United States. Congress. House. Report ; 90th Congress, no. 219.'])
示例6: test_genre_655
def test_genre_655(self):
r = self.get_record("655.mrc")
bib_data = extract(r)
self.assertEqual(bib_data["GENRE"], ["War stories."])
示例7: test_description_347
def test_description_347(self):
r = self.get_record("347.mrc")
bib_data = extract(r)
self.assertEqual(bib_data["DESCRIPTION"], ['1 online resource (v, 65 leaves)', 'text file PDF rda.'])
示例8: test_subjects_650
def test_subjects_650(self):
r = self.get_record("650.mrc")
bib_data = extract(r)
self.assertEqual(bib_data["SUBJECTS"], ['Electronic government information -- United States -- Periodicals.', 'Information policy -- United States -- Data processing -- Periodicals.', 'Internet in public administration -- United States -- Periodicals.', 'United States. E-Government Act of 2002 -- Periodicals.'])
示例9: test_subjects_610
def test_subjects_610(self):
r = self.get_record("610.mrc")
bib_data = extract(r)
self.assertEqual(bib_data["SUBJECTS"], ['Mann, Thomas C. (Thomas Clifton), 1912-', 'United States -- Foreign relations -- 1963-1969.', 'United States. Dept. of State -- Officials and employees.'])
示例10: test_summary_520
def test_summary_520(self):
r = self.get_record("520.mrc")
bib_data = extract(r)
self.assertEqual(bib_data["SUMMARY"], ['A young Indian recounts his struggle to free himself from the restrictions of his caste.'])
示例11: test_publisher_number_028
def test_publisher_number_028(self):
r = self.get_record("028.mrc")
bib_data = extract(r)
self.assertEqual(bib_data["PUBLISHER_NUMBER"], ['HPS 699 Boosey & Hawkes', 'HL48002117 H. Leonard'])
示例12: test_terms_of_usage_540
def test_terms_of_usage_540(self):
r = self.get_record("540.mrc")
bib_data = extract(r)
self.assertEqual(bib_data["TERMS_OF_USAGE"], ['Includes bibliographical references (p. 237-240) and index.'])
示例13: test_description_351
def test_description_351(self):
r = self.get_record("351.mrc")
bib_data = extract(r)
self.assertEqual(bib_data["DESCRIPTION"][1], 'Organized into 3 series: I. Prison Materials, 1970-1972. II. CCNV. III. Personal/Family Materials.')
示例14: test_other_standard_identifer_024
def test_other_standard_identifer_024(self):
r = self.get_record("024.mrc")
bib_data = extract(r)
self.assertEqual(bib_data["OTHER_STANDARD_IDENTIFIER"], ['10.1596/1813-9450-4394'])
示例15: test_manufacture_numbers_028
def test_manufacture_numbers_028(self):
r = self.get_record("028.mrc")
bib_data = extract(r)
self.assertEqual(bib_data["MANUFACTURE_NUMBERS"], ['HPS 699 Boosey & Hawkes', 'HL48002117 H. Leonard'])