From 65caa4e8033939fa310c2c927345e46e485cf6e1 Mon Sep 17 00:00:00 2001 From: Patricia Morimoto Date: Tue, 5 Feb 2019 17:30:57 -0200 Subject: [PATCH 1/2] Adiciona novo campo 'aop_url_segs' em 'Article' --- opac_schema/v1/models.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/opac_schema/v1/models.py b/opac_schema/v1/models.py index 34e4cd9..dac4586 100644 --- a/opac_schema/v1/models.py +++ b/opac_schema/v1/models.py @@ -254,6 +254,14 @@ def __unicode__(self): return self.name +class AOPUrlSegments(EmbeddedDocument): + url_seg_article = StringField() + url_seg_issue = StringField() + + def __unicode__(self): + return "%s/%s" % (self.url_seg_issue, self.url_seg_article) + + class Collection(Document): _id = StringField(max_length=32, primary_key=True, required=True) acronym = StringField(max_length=50, required=True, unique=True) @@ -612,6 +620,7 @@ class Article(Document): fpage_sequence = StringField() lpage = StringField() url_segment = StringField() + aop_url_segs = EmbeddedDocumentField(AOPUrlSegments) meta = { 'collection': 'article', From 220c4f1f819a6b6097104e8747df55b545d967f0 Mon Sep 17 00:00:00 2001 From: Patricia Morimoto Date: Thu, 14 Feb 2019 16:23:12 -0200 Subject: [PATCH 2/2] =?UTF-8?q?Atualiza=20vers=C3=A3o=20para=202.52?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 2117dea..799b514 100644 --- a/setup.py +++ b/setup.py @@ -7,7 +7,7 @@ setup( name="Opac Schema", - version='2.51', + version='2.52', description="Schema of SciELO OPAC", author="SciELO", author_email="scielo@scielo.org",