コード例 #1
0
class Creator(Parser):
    agent = Delegate(Person, ctx)
    order_cited = ctx('index')

    cited_as = RunPython('get_cited_as', ctx.name)

    def get_cited_as(self, obj):
        surname = obj.soup.surname
        given = obj.soup.find('given-names')
        if given:
            return '{}, {}'.format(surname.get_text(), given.get_text())
        return surname.get_text()
コード例 #2
0
ファイル: oai.py プロジェクト: alexschiller/SHARE
class OAICreator(OAIContributor):
    schema = 'Creator'

    order_cited = ctx('index')
コード例 #3
0
class Contributor(Parser):
    person = Delegate(Person, ctx)
    cited_name = ctx
    order_cited = ctx('index')
コード例 #4
0
class Creator(Parser):
    agent = Delegate(Person, ctx)
    cited_as = ctx
    order_cited = ctx('index')
コード例 #5
0
class OAIContributor(Parser):
    schema = 'Contributor'

    person = tools.Delegate(OAIPerson, ctx)
    cited_name = ctx
    order_cited = ctx('index')
コード例 #6
0
class Creator(Parser):
    order_cited = ctx('index')
    agent = tools.Delegate(Person, ctx)
    cited_as = ctx.author
コード例 #7
0
class Contributor(Parser):
    person = tools.Delegate(Person, ctx)
    order_cited = ctx('index')
    cited_name = tools.Join(tools.Concat(ctx.piFirstName, ctx.piLastName),
                            joiner=' ')
コード例 #8
0
class Contributor(Parser):
    person = tools.Delegate(Person, ctx)
    order_cited = ctx('index')
    cited_name = ctx.embeds.users.data.attributes.full_name
コード例 #9
0
ファイル: normalizer.py プロジェクト: sheriefvt/SHARE
class Creator(Parser):
    order_cited = ctx('index')
    agent = tools.Delegate(Agent, ctx)
コード例 #10
0
class Creator(Parser):
    schema = 'Contributor'

    person = tools.Delegate(CreatorPerson, ctx)
    cited_name = tools.Try(ctx.creatorName)
    order_cited = ctx('index')
コード例 #11
0
class Contributor(Parser):
    person = tools.Delegate(ContributorPerson, ctx)
    cited_name = tools.Try(ctx.contributorName)
    order_cited = ctx('index')
コード例 #12
0
ファイル: normalizer.py プロジェクト: sf2ne/SHARE
class Contributor(Parser):
    order_cited = ctx('index')
    person = tools.Delegate(Person, ctx)
    cited_name = ctx.author
コード例 #13
0
class CreatorRelation(ContributorRelation):
    schema = 'Creator'

    order_cited = ctx('index')
コード例 #14
0
ファイル: v1_push.py プロジェクト: sheriefvt/SHARE
class Creator(Parser):
    agent = tools.Delegate(Agent, ctx)
    cited_as = ctx.name
    order_cited = ctx('index')