예제 #1
0
파일: cmd.py 프로젝트: jayvdb/pubpdf
def _load_mods_files(filenames):
    """Return mods collection from file."""
    pubs = []
    for filename in filenames:
        with codecs.open(filename, 'r', 'utf8') as f:
            pubs.append(f.read())

    mods = create_mods_collection(pubs)
    return mods
예제 #2
0
def _load_mods_files(filenames):
    """Return mods collection from file."""
    pubs = []
    for filename in filenames:
        with codecs.open(filename, 'r', 'utf8') as f:
            pubs.append(f.read())

    mods = create_mods_collection(pubs)
    return mods
예제 #3
0
파일: cmd.py 프로젝트: jayvdb/pubpdf
def fetch_csl_data(api, prefix, pids):
    """Return mods collection containing records of each pid."""
    client = get_oai_client(api, prefix)
    pubs = []

    for pid in pids:
        pubs.append(get_oai_document_metadata(client, pid))

    mods = create_mods_collection(pubs)

    return mods
예제 #4
0
def fetch_csl_data(api, prefix, pids):
    """Return mods collection containing records of each pid."""
    client = get_oai_client(api, prefix)
    pubs = []

    for pid in pids:
        pubs.append(get_oai_document_metadata(client, pid))

    mods = create_mods_collection(pubs)

    return mods