# Path: articlemeta/export_sci.py
# SUPPLBEG_REGEX = re.compile(r'^0 ')
# SUPPLEND_REGEX = re.compile(r' 0$')
# ALLOWED_LANGUAGES = ['af', 'de', 'en', 'es', 'fr', 'it', 'la', 'pt', 'po']
# def create_children(root_node, tags, values):
# def splited_yyyy_mm_dd(date_iso):
# def create_date_elem(element_date_name, splited_yyyy_mm_dd, date_type=None):
#     def __init__(self):
#         def transform(self, data):
#         def transform(self, data):
#         def transform(self, data):
#         def precond(data):
#         def transform(self, data):
#         def precond(data):
#         def transform(self, data):
#         def precond(data):
#         def transform(self, data):
#         def precond(data):
#         def transform(self, data):
#         def precond(data):
#         def transform(self, data):
#         def precond(data):
#         def transform(self, data):
#         def precond(data):
#         def transform(self, data):
#         def precond(data):
#         def transform(self, data):
#         def precond(data):
#         def transform(self, data):
#         def precond(data):
#         def transform(self, data):
#         def precond(data):
#         def transform(self, data):
#         def precond(data):
#         def _create_author(self, author):
#         def transform(self, data):
#         def _transform_authors_groups(self, data):
#         def _transform_authors(self, data):
#     def deploy(self, raw):
#     def transform(self, data):
#     def transform(self, data):
#     def transform(self, data):
#     def transform(self, data):
#     def transform(self, data):
#     def transform(self, data):
#     def precond(data):
#     def transform(self, data):
#     def transform(self, data):
#     def join_publisher_names(self, data, separator='; '):
#     def get_first_publisher_name(self, data):
#     def transform(self, data):
#     def transform(self, data):
#     def precond(data):
#     def transform(self, data):
#     def precond(data):
#     def transform(self, data):
#     def transform(self, data):
#     def precond(data):
#     def transform(self, data):
#     def precond(data):
#     def transform(self, data):
#     def precond(data):
#     def transform(self, data):
#     def precond(data):
#     def transform(self, data):
#     def transform(self, data):
#     def precond(data):
#     def transform(self, data):
#     def precond(data):
#     def transform(self, data):
#     def transform(self, data):
#     def transform(self, data):
#     def precond(data):
#     def transform(self, data):
#     def precond(data):
#     def transform(self, data):
#     def precond(data):
#     def transform(self, data):
#     def transform(self, data):
# class XMLCitation(object):
#     class SetupCitationPipe(plumber.Pipe):
#     class RefIdPipe(plumber.Pipe):
#     class ElementCitationPipe(plumber.Pipe):
#     class ArticleTitlePipe(plumber.Pipe):
#     class SourcePipe(plumber.Pipe):
#     class ThesisTitlePipe(plumber.Pipe):
#     class ConferencePipe(plumber.Pipe):
#     class LinkTitlePipe(plumber.Pipe):
#     class URIPipe(plumber.Pipe):
#     class DatePipe(plumber.Pipe):
#     class StartPagePipe(plumber.Pipe):
#     class EndPagePipe(plumber.Pipe):
#     class IssuePipe(plumber.Pipe):
#     class VolumePipe(plumber.Pipe):
#     class PersonGroupPipe(plumber.Pipe):
# class SetupArticlePipe(plumber.Pipe):
# class XMLArticlePipe(plumber.Pipe):
# class XMLFrontPipe(plumber.Pipe):
# class XMLJournalMetaJournalIdPipe(plumber.Pipe):
# class XMLJournalMetaJournalTitleGroupPipe(plumber.Pipe):
# class XMLJournalMetaISSNPipe(plumber.Pipe):
# class XMLJournalMetaCollectionPipe(plumber.Pipe):
# class XMLJournalMetaPublisherPipe(plumber.Pipe):
# class XMLArticleMetaUniqueArticleIdPipe(plumber.Pipe):
# class XMLArticleMetaArticleIdPublisherPipe(plumber.Pipe):
# class XMLArticleMetaArticleIdDOIPipe(plumber.Pipe):
# class XMLArticleMetaArticleCategoriesPipe(plumber.Pipe):
# class XMLArticleMetaTitleGroupPipe(plumber.Pipe):
# class XMLArticleMetaTranslatedTitleGroupPipe(plumber.Pipe):
# class XMLArticleMetaContribGroupPipe(plumber.Pipe):
# class XMLArticleMetaAffiliationPipe(plumber.Pipe):
# class XMLArticleMetaDatesInfoPipe(plumber.Pipe):
# class XMLArticleMetaPagesInfoPipe(plumber.Pipe):
# class XMLArticleMetaElocationInfoPipe(plumber.Pipe):
# class XMLArticleMetaIssueInfoPipe(plumber.Pipe):
# class XMLArticleMetaURLsPipe(plumber.Pipe):
# class XMLArticleMetaAbstractsPipe(plumber.Pipe):
# class XMLArticleMetaKeywordsPipe(plumber.Pipe):
# class XMLArticleMetaPermissionPipe(plumber.Pipe):
# class XMLArticleMetaCitationsPipe(plumber.Pipe):
# class XMLClosePipe(plumber.Pipe):
# 
# Path: articlemeta/export.py
# class CustomArticle(Article):
# class JournalExport:
# class Export(object):
#     def issue_publication_date(self):
#     def __init__(self, journal):
#     def pipeline_scieloorg(self):
#         def _safegetter(func):
#     def __init__(self, article):
#     def pipeline_sci(self):
#     def pipeline_rsps(self):
#     def pipeline_doaj(self):
#     def pipeline_pubmed(self):
#     def pipeline_crossref(self):
#     def pipeline_opac(self):


import unittest
import json
import os
from lxml import etree as ET
from lxml import etree
from xylose.scielodocument import Article
from articlemeta import export_sci
from articlemeta import export
# coding: utf-8




class XMLCitationTests(unittest.TestCase):

    def setUp(self):

        self._raw_json = json.loads(open(os.path.dirname(__file__)+'/fixtures/article_meta.json').read())
        self._citation_meta = Article(self._raw_json).citations[0]


# Path: articlemeta/export_sci.py
# SUPPLBEG_REGEX = re.compile(r'^0 ')
# SUPPLEND_REGEX = re.compile(r' 0$')
# ALLOWED_LANGUAGES = ['af', 'de', 'en', 'es', 'fr', 'it', 'la', 'pt', 'po']
# def create_children(root_node, tags, values):
# def splited_yyyy_mm_dd(date_iso):
# def create_date_elem(element_date_name, splited_yyyy_mm_dd, date_type=None):
#     def __init__(self):
#         def transform(self, data):
#         def transform(self, data):
#         def transform(self, data):
#         def precond(data):
#         def transform(self, data):
#         def precond(data):
#         def transform(self, data):
#         def precond(data):
#         def transform(self, data):
#         def precond(data):
#         def transform(self, data):
#         def precond(data):
#         def transform(self, data):
#         def precond(data):
#         def transform(self, data):
#         def precond(data):
#         def transform(self, data):
#         def precond(data):
#         def transform(self, data):
#         def precond(data):
#         def transform(self, data):
#         def precond(data):
#         def transform(self, data):
#         def precond(data):
#         def transform(self, data):
#         def precond(data):
#         def _create_author(self, author):
#         def transform(self, data):
#         def _transform_authors_groups(self, data):
#         def _transform_authors(self, data):
#     def deploy(self, raw):
#     def transform(self, data):
#     def transform(self, data):
#     def transform(self, data):
#     def transform(self, data):
#     def transform(self, data):
#     def transform(self, data):
#     def precond(data):
#     def transform(self, data):
#     def transform(self, data):
#     def join_publisher_names(self, data, separator='; '):
#     def get_first_publisher_name(self, data):
#     def transform(self, data):
#     def transform(self, data):
#     def precond(data):
#     def transform(self, data):
#     def precond(data):
#     def transform(self, data):
#     def transform(self, data):
#     def precond(data):
#     def transform(self, data):
#     def precond(data):
#     def transform(self, data):
#     def precond(data):
#     def transform(self, data):
#     def precond(data):
#     def transform(self, data):
#     def transform(self, data):
#     def precond(data):
#     def transform(self, data):
#     def precond(data):
#     def transform(self, data):
#     def transform(self, data):
#     def transform(self, data):
#     def precond(data):
#     def transform(self, data):
#     def precond(data):
#     def transform(self, data):
#     def precond(data):
#     def transform(self, data):
#     def transform(self, data):
# class XMLCitation(object):
#     class SetupCitationPipe(plumber.Pipe):
#     class RefIdPipe(plumber.Pipe):
#     class ElementCitationPipe(plumber.Pipe):
#     class ArticleTitlePipe(plumber.Pipe):
#     class SourcePipe(plumber.Pipe):
#     class ThesisTitlePipe(plumber.Pipe):
#     class ConferencePipe(plumber.Pipe):
#     class LinkTitlePipe(plumber.Pipe):
#     class URIPipe(plumber.Pipe):
#     class DatePipe(plumber.Pipe):
#     class StartPagePipe(plumber.Pipe):
#     class EndPagePipe(plumber.Pipe):
#     class IssuePipe(plumber.Pipe):
#     class VolumePipe(plumber.Pipe):
#     class PersonGroupPipe(plumber.Pipe):
# class SetupArticlePipe(plumber.Pipe):
# class XMLArticlePipe(plumber.Pipe):
# class XMLFrontPipe(plumber.Pipe):
# class XMLJournalMetaJournalIdPipe(plumber.Pipe):
# class XMLJournalMetaJournalTitleGroupPipe(plumber.Pipe):
# class XMLJournalMetaISSNPipe(plumber.Pipe):
# class XMLJournalMetaCollectionPipe(plumber.Pipe):
# class XMLJournalMetaPublisherPipe(plumber.Pipe):
# class XMLArticleMetaUniqueArticleIdPipe(plumber.Pipe):
# class XMLArticleMetaArticleIdPublisherPipe(plumber.Pipe):
# class XMLArticleMetaArticleIdDOIPipe(plumber.Pipe):
# class XMLArticleMetaArticleCategoriesPipe(plumber.Pipe):
# class XMLArticleMetaTitleGroupPipe(plumber.Pipe):
# class XMLArticleMetaTranslatedTitleGroupPipe(plumber.Pipe):
# class XMLArticleMetaContribGroupPipe(plumber.Pipe):
# class XMLArticleMetaAffiliationPipe(plumber.Pipe):
# class XMLArticleMetaDatesInfoPipe(plumber.Pipe):
# class XMLArticleMetaPagesInfoPipe(plumber.Pipe):
# class XMLArticleMetaElocationInfoPipe(plumber.Pipe):
# class XMLArticleMetaIssueInfoPipe(plumber.Pipe):
# class XMLArticleMetaURLsPipe(plumber.Pipe):
# class XMLArticleMetaAbstractsPipe(plumber.Pipe):
# class XMLArticleMetaKeywordsPipe(plumber.Pipe):
# class XMLArticleMetaPermissionPipe(plumber.Pipe):
# class XMLArticleMetaCitationsPipe(plumber.Pipe):
# class XMLClosePipe(plumber.Pipe):
# 
# Path: articlemeta/export.py
# class CustomArticle(Article):
# class JournalExport:
# class Export(object):
#     def issue_publication_date(self):
#     def __init__(self, journal):
#     def pipeline_scieloorg(self):
#         def _safegetter(func):
#     def __init__(self, article):
#     def pipeline_sci(self):
#     def pipeline_rsps(self):
#     def pipeline_doaj(self):
#     def pipeline_pubmed(self):
#     def pipeline_crossref(self):
#     def pipeline_opac(self):


# Path: tests/test_export_sci.py
import unittest
import json
import os
from lxml import etree as ET
from lxml import etree
from xylose.scielodocument import Article
from articlemeta import export_sci
from articlemeta import export

# coding: utf-8




class XMLCitationTests(unittest.TestCase):

    def setUp(self):

        self._raw_json = json.loads(open(os.path.dirname(__file__)+'/fixtures/article_meta.json').read())
        self._citation_meta = Article(self._raw_json).citations[0]


        self._xmlcitation = export_sci.XMLCitation()