Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat: xml validation #660

Draft
wants to merge 14 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions packtools/sps/models/article_and_subarticles.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ def data(self):
_data = []
if self.main_article_type:
_data.append({
"parent": "article",
"lang": self.main_lang,
"article_type": self.main_article_type,
"article_id": None,
Expand All @@ -61,6 +62,7 @@ def data(self):
subject = sub_article.find('.//subject')

_data.append({
"parent": "sub-article",
"lang": lang,
"article_type": sub_article.get('article-type'),
"article_id": sub_article.get('id'),
Expand Down
2 changes: 1 addition & 1 deletion packtools/sps/sps_versions/default/specific_use.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"specif_use_list": [
"specific_use_list": [
"sps-1.1",
"sps-1.2",
"sps-1.3",
Expand Down
59 changes: 38 additions & 21 deletions packtools/sps/sps_versions/sps-1.10/article_type.json
Original file line number Diff line number Diff line change
@@ -1,24 +1,41 @@
{
"sps_version": "sps-1.10",
"article_type_list": [
"addendum",
"article-commentary",
"book-review",
"brief-report",
"case-report",
"correction",
"editorial",
"data-article",
"letter",
"obituary",
"partial-retraction",
"product-review",
"rapid-communication",
"reply",
"research-article",
"retraction",
"review-article",
"reviewer-report",
"other"
]
"article_type_list": {
"article": [
"article-commentary",
"book-review",
"brief-report",
"case-report",
"correction",
"editorial",
"in-brief",
"letter",
"other",
"partial-retraction",
"rapid-communication",
"reply",
"research-article",
"retraction",
"review-article",
"data-article"
],
"sub-article": [
"translation",
"editorial",
"announcement",
"correction",
"retraction",
"letter",
"brief-report",
"addendum",
"reply",
"discussion",
"case-report",
"obituary",
"book-review",
"in-memoriam",
"news",
"other"
]
}
}
60 changes: 60 additions & 0 deletions packtools/sps/sps_versions/sps-1.10/role_content_type.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
{
"credit_taxonomy_terms_and_urls": [
{
"term": "Conceptualization",
"uri": "https://credit.niso.org/contributor-roles/conceptualization/",
},
{
"term": "Data curation",
"uri": "https://credit.niso.org/contributor-roles/data-curation/",
},
{
"term": "Formal analysis",
"uri": "https://credit.niso.org/contributor-roles/formal-analysis/",
},
{
"term": "Funding acquisition",
"uri": "https://credit.niso.org/contributor-roles/funding-acquisition/",
},
{
"term": "Investigation",
"uri": "https://credit.niso.org/contributor-roles/investigation/",
},
{
"term": "Methodology",
"uri": "https://credit.niso.org/contributor-roles/methodology/",
},
{
"term": "Project administration",
"uri": "https://credit.niso.org/contributor-roles/project-administration/",
},
{
"term": "Resources",
"uri": "https://credit.niso.org/contributor-roles/resources/",
},
{
"term": "Software",
"uri": "https://credit.niso.org/contributor-roles/software/",
},
{
"term": "Supervision",
"uri": "https://credit.niso.org/contributor-roles/supervision/",
},
{
"term": "Validation",
"uri": "https://credit.niso.org/contributor-roles/validation/",
},
{
"term": "Visualization",
"uri": "https://credit.niso.org/contributor-roles/visualization/",
},
{
"term": "Writing – original draft",
"uri": "https://credit.niso.org/contributor-roles/writing-original-draft/",
},
{
"term": "Writing – review e editing",
"uri": "https://credit.niso.org/contributor-roles/writing-review-editing/",
},
]
}
58 changes: 0 additions & 58 deletions packtools/sps/sps_versions/sps-1.10/role_content_type.json.py

This file was deleted.

56 changes: 38 additions & 18 deletions packtools/sps/sps_versions/sps-1.9/article_type.json
Original file line number Diff line number Diff line change
@@ -1,22 +1,42 @@
{
"sps_version": "sps-1.9",
"source": "https://scielo.readthedocs.io/projects/scielo-publishing-schema/pt-br/1.9-branch/tagset/elemento-article.html?highlight=article-type#article",
"article_type_list": [
"article-commentary",
"book-review",
"brief-report",
"case-report",
"correction",
"editorial",
"in-brief",
"letter",
"other",
"partial-retraction",
"rapid-communication",
"reply",
"research-article",
"retraction",
"review-article",
"data-article"
]
"article_type_list": {
"article": [
"article-commentary",
"book-review",
"brief-report",
"case-report",
"correction",
"editorial",
"in-brief",
"letter",
"other",
"partial-retraction",
"rapid-communication",
"reply",
"research-article",
"retraction",
"review-article",
"data-article"
],
"sub-article": [
"translation",
"editorial",
"announcement",
"correction",
"retraction",
"letter",
"brief-report",
"addendum",
"reply",
"discussion",
"case-report",
"obituary",
"book-review",
"in-memoriam",
"news",
"other"
]
}
}
60 changes: 60 additions & 0 deletions packtools/sps/sps_versions/sps-1.9/role_content_type.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
{
"credit_taxonomy_terms_and_urls": [
{
"term": "Conceptualization",
"uri": "https://credit.niso.org/contributor-roles/conceptualization/",
},
{
"term": "Data curation",
"uri": "https://credit.niso.org/contributor-roles/data-curation/",
},
{
"term": "Formal analysis",
"uri": "https://credit.niso.org/contributor-roles/formal-analysis/",
},
{
"term": "Funding acquisition",
"uri": "https://credit.niso.org/contributor-roles/funding-acquisition/",
},
{
"term": "Investigation",
"uri": "https://credit.niso.org/contributor-roles/investigation/",
},
{
"term": "Methodology",
"uri": "https://credit.niso.org/contributor-roles/methodology/",
},
{
"term": "Project administration",
"uri": "https://credit.niso.org/contributor-roles/project-administration/",
},
{
"term": "Resources",
"uri": "https://credit.niso.org/contributor-roles/resources/",
},
{
"term": "Software",
"uri": "https://credit.niso.org/contributor-roles/software/",
},
{
"term": "Supervision",
"uri": "https://credit.niso.org/contributor-roles/supervision/",
},
{
"term": "Validation",
"uri": "https://credit.niso.org/contributor-roles/validation/",
},
{
"term": "Visualization",
"uri": "https://credit.niso.org/contributor-roles/visualization/",
},
{
"term": "Writing – original draft",
"uri": "https://credit.niso.org/contributor-roles/writing-original-draft/",
},
{
"term": "Writing – review e editing",
"uri": "https://credit.niso.org/contributor-roles/writing-review-editing/",
},
]
}
58 changes: 0 additions & 58 deletions packtools/sps/sps_versions/sps-1.9/role_content_type.json.py

This file was deleted.

Loading