diff --git a/pubs/endecoder.py b/pubs/endecoder.py index ab62e41..321eff4 100644 --- a/pubs/endecoder.py +++ b/pubs/endecoder.py @@ -28,8 +28,8 @@ else: BIBFIELD_ORDER = ['author', 'title', 'journal', 'institution', 'publisher', - 'year', 'month', 'number', 'volume', 'pages', 'link', 'doi', - 'note', 'abstract'] + 'year', 'month', 'number', 'volume', 'pages', 'url', 'link', + 'doi', 'note', 'abstract'] def sanitize_citekey(record): diff --git a/setup.py b/setup.py index cc38048..5559148 100644 --- a/setup.py +++ b/setup.py @@ -25,7 +25,7 @@ setup( ], }, - install_requires=['pyyaml', 'bibtexparser', 'python-dateutil', 'requests', + install_requires=['pyyaml', 'bibtexparser>=1.0.1', 'python-dateutil', 'requests', 'configobj', 'beautifulsoup4'], # to be made optional? tests_require=['pyfakefs>=2.7'], diff --git a/tests/test_endecoder.py b/tests/test_endecoder.py index 68387d2..06aae45 100644 --- a/tests/test_endecoder.py +++ b/tests/test_endecoder.py @@ -108,7 +108,7 @@ class TestEnDecode(unittest.TestCase): self.assertEqual(lines[5].split('=')[0].strip(), u'year') self.assertEqual(lines[6].split('=')[0].strip(), u'month') self.assertEqual(lines[7].split('=')[0].strip(), u'number') - self.assertEqual(lines[8].split('=')[0].strip(), u'link') + self.assertEqual(lines[8].split('=')[0].strip(), u'url') self.assertEqual(lines[9].split('=')[0].strip(), u'note') self.assertEqual(lines[10].split('=')[0].strip(), u'abstract')