예제 #1
0
def update_ezid_metadata_on_change(target_object, status):
    if (settings.EZID_USERNAME and
            settings.EZID_PASSWORD) and target_object.get_identifier('doi'):
        client = get_ezid_client()

        doi, metadata = build_ezid_metadata(target_object)
        client.change_status_identifier(status, doi, metadata)
예제 #2
0
파일: tasks.py 프로젝트: mfraezz/osf.io
def update_ezid_metadata_on_change(target_guid, status):
    Guid = apps.get_model('osf.Guid')
    target_object = Guid.load(target_guid).referent
    if (settings.EZID_USERNAME and settings.EZID_PASSWORD) and target_object.get_identifier('doi'):
        client = get_ezid_client()

        doi, metadata = build_ezid_metadata(target_object)
        client.change_status_identifier(status, doi, metadata)
예제 #3
0
def update_ezid_metadata_on_change(target_guid, status):
    Guid = apps.get_model('osf.Guid')
    target_object = Guid.load(target_guid).referent
    if (settings.EZID_USERNAME and
            settings.EZID_PASSWORD) and target_object.get_identifier('doi'):
        client = get_ezid_client()

        doi, metadata = build_ezid_metadata(target_object)
        client.change_status_identifier(status, doi, metadata)
예제 #4
0
def osf_admin_change_status_identifier(node, status):
    if node.get_identifier_value('doi') and node.get_identifier_value('ark'):
        doi, metadata = build_ezid_metadata(node)
        client = EzidClient(settings.EZID_USERNAME, settings.EZID_PASSWORD)
        client.change_status_identifier(status, doi, metadata)
예제 #5
0
파일: register.py 프로젝트: adlius/osf.io
def osf_admin_change_status_identifier(node, status):
    if node.get_identifier_value('doi') and node.get_identifier_value('ark'):
        doi, metadata = build_ezid_metadata(node)
        client = EzidClient(settings.EZID_USERNAME, settings.EZID_PASSWORD)
        client.change_status_identifier(status, doi, metadata)
예제 #6
0
파일: tasks.py 프로젝트: adlius/osf.io
def update_ezid_metadata_on_change(target_object, status):
    if (settings.EZID_USERNAME and settings.EZID_PASSWORD) and target_object.get_identifier('doi'):
        client = get_ezid_client()

        doi, metadata = build_ezid_metadata(target_object)
        client.change_status_identifier(status, doi, metadata)