• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Python marc.extract函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Python中ui.marc.extract函数的典型用法代码示例。如果您正苦于以下问题:Python extract函数的具体用法?Python extract怎么用?Python extract使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了extract函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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'])
开发者ID:gwu-libraries,项目名称:launchpad,代码行数:4,代码来源:marc_test.py


示例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.'])
开发者ID:gwu-libraries,项目名称:launchpad,代码行数:4,代码来源:marc_test.py


示例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'])
开发者ID:gwu-libraries,项目名称:launchpad,代码行数:4,代码来源:marc_test.py


示例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'])
开发者ID:gwu-libraries,项目名称:launchpad,代码行数:4,代码来源:marc_test.py


示例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.'])
开发者ID:gwu-libraries,项目名称:launchpad,代码行数:4,代码来源:marc_test.py


示例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."])
开发者ID:gwu-libraries,项目名称:launchpad,代码行数:4,代码来源:marc_test.py


示例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.'])
开发者ID:gwu-libraries,项目名称:launchpad,代码行数:4,代码来源:marc_test.py


示例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.'])
开发者ID:gwu-libraries,项目名称:launchpad,代码行数:4,代码来源:marc_test.py


示例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.'])
开发者ID:gwu-libraries,项目名称:launchpad,代码行数:4,代码来源:marc_test.py


示例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.'])
开发者ID:gwu-libraries,项目名称:launchpad,代码行数:4,代码来源:marc_test.py


示例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'])
开发者ID:gwu-libraries,项目名称:launchpad,代码行数:4,代码来源:marc_test.py


示例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.'])
开发者ID:gwu-libraries,项目名称:launchpad,代码行数:4,代码来源:marc_test.py


示例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.')
开发者ID:gwu-libraries,项目名称:launchpad,代码行数:4,代码来源:marc_test.py


示例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'])
开发者ID:gwu-libraries,项目名称:launchpad,代码行数:4,代码来源:marc_test.py


示例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'])
开发者ID:gwu-libraries,项目名称:launchpad,代码行数:4,代码来源:marc_test.py


示例16: test_subjects_630

 def test_subjects_630(self):
     r = self.get_record("630.mrc")
     bib_data = extract(r)
     self.assertEqual(bib_data["SUBJECTS"], ['France -- Foreign relations -- Soviet Union -- 1870-1940.', 'Franco-Russian Alliance.', 'Russia -- Foreign relations -- France -- 1894-1917.'])
开发者ID:gwu-libraries,项目名称:launchpad,代码行数:4,代码来源:marc_test.py


示例17: test_thesis_dissertation_502

 def test_thesis_dissertation_502(self):
     r = self.get_record("502.mrc")
     bib_data = extract(r)
     self.assertEqual(bib_data["THESIS_DISSERTATION"], ['Thesis (M.A.)--Cornell, 1964.'])
开发者ID:gwu-libraries,项目名称:launchpad,代码行数:4,代码来源:marc_test.py


示例18: test_subjects_651

 def test_subjects_651(self):
     r = self.get_record("651.mrc")
     bib_data = extract(r)
     # self.assertEqual(bib_data["SUBJECTS"], ['Mud lumps.', 'Sediments (Geology) -- Louisiana.', 'Mississippi River -- Delta.'])
     self.assertEqual(bib_data["SUBJECTS"], ['Mississippi River -- Delta.', 'Mud lumps.', 'Sediments (Geology) -- Louisiana.'])
开发者ID:gwu-libraries,项目名称:launchpad,代码行数:5,代码来源:marc_test.py


示例19: test_description_346

 def test_description_346(self):
     r = self.get_record("346.mrc")
     bib_data = extract(r)
     self.assertEqual(bib_data["DESCRIPTION"], ['1 videocassette (42 min.) : sound, color ; 1/2 in.', 'analog magnetic rda', 'VHS rda'])
开发者ID:gwu-libraries,项目名称:launchpad,代码行数:4,代码来源:marc_test.py


示例20: test_subjects_655

 def test_subjects_655(self):
     r = self.get_record("655.mrc")
     bib_data = extract(r)
     self.assertEqual(bib_data["SUBJECTS"], ['World War, 1939-1945 -- Fiction.'])
开发者ID:gwu-libraries,项目名称:launchpad,代码行数:4,代码来源:marc_test.py



注:本文中的ui.marc.extract函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Python sprite.LcarsWidget类代码示例发布时间:2022-05-27
下一篇:
Python color.colorize函数代码示例发布时间:2022-05-27
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap