diff --git a/opac_schema/v1/models.py b/opac_schema/v1/models.py index 8985be0..eaad7f8 100644 --- a/opac_schema/v1/models.py +++ b/opac_schema/v1/models.py @@ -343,6 +343,7 @@ class Journal(Document): url_segment = StringField() metrics = EmbeddedDocumentField(JounalMetrics) + scimago_id = StringField() meta = { 'collection': 'journal', @@ -355,6 +356,7 @@ class Journal(Document): 'url_segment', 'issue_count', 'current_status', + 'scimago_id', ] } diff --git a/setup.py b/setup.py index b895971..e215c93 100644 --- a/setup.py +++ b/setup.py @@ -7,7 +7,7 @@ setup( name="Opac Schema", - version='2.46', + version='2.47', description="Schema of SciELO OPAC", author="SciELO", author_email="scielo@scielo.org", diff --git a/tests/test_journal.py b/tests/test_journal.py index 0f95d7a..e54ae3c 100644 --- a/tests/test_journal.py +++ b/tests/test_journal.py @@ -15,7 +15,8 @@ def test_create_only_required_fields_success(self): 'jid': jid, 'title': 'The Dummy Journal', 'acronym': 'dj', - 'is_public': True + 'is_public': True, + 'scimago_id': '4500151524', } # when @@ -23,6 +24,7 @@ def test_create_only_required_fields_success(self): journal_doc.save() # then + self.assertEqual('4500151524', journal_doc.scimago_id) self.assertEqual(_id, journal_doc._id) self.assertEqual(jid, journal_doc.jid) self.assertEqual(1, Journal.objects.all().count())