colrev.loader.load_utils

Convenience functions to load files (BiBTeX, RIS, CSV, etc.)

Usage:

import colrev.loader.load_utils

# Files
records = colrev.loader.load_utils.load(filename=filename, logger=logger)

# Strings
records = colrev.loader.load_utils.loads(load_str=load_str, logger=logger)

returns: records (dict)

Most formats require a mapping from the FIELDS to the standard CoLRev Fields (see CEP 002), which

  • can involve merging of FIELDS (e.g. AU / author fields)

  • can be conditional upon the ENTRYTYPE (e.g., publication_name: journal or booktitle)

Example BibTeX record:

@article{Guo2021,
    title    = {How Trust Leads to Commitment on Microsourcing Platforms},
    author   = {Guo, Wenbo and Straub, Detmar W. and Zhang, Pengzhu and Cai, Zhao},
    journal  = {MIS Quarterly},
    year     = {2021}
    volume   = {45},
    number   = {3},
    pages    = {1309--1348},
    url      = {https://aisel.aisnet.org/misq/vol45/iss3/13},
    doi      = {10.25300/MISQ/2021/16100},
}

Example ENL record:

%T How Trust Leads to Commitment on Microsourcing Platforms
%0 Journal Article
%A Guo, Wenbo
%A Straub, Detmar W.
%A Zhang, Pengzhu
%A Cai, Zhao
%B Management Information Systems Quarterly
%D 2021
%8 September  1, 2021
%V 45
%N 3
%P 1309-1348
%U https://aisel.aisnet.org/misq/vol45/iss3/13
%X IS research has extensively examined the role of trust in client-vendor relationships...

Example markdown reference section:

# References

Guo, W. and Straub, D. W. and Zhang, P. and Cai, Z. (2021). How Trust Leads to Commitment
      on Microsourcing Platforms. MIS Quarterly, 45(3), 1309--1348.

Example nbib record:

OWN - ERIC
TI  - How Trust Leads to Commitment on Microsourcing Platforms
AU  - Guo, Wenbo
AU  - Straub, Detmar W.
AU  - Zhang, Pengzhu
AU  - Cai, Zhao
JT  - MIS Quarterly
DP  - 2021
VI  - 45
IP  - 3
PG  - 1309-1348

Example RIS record:

TY  - JOUR
AU  - Guo, Wenbo
AU  - Straub, Detmar W.
AU  - Zhang, Pengzhu
AU  - Cai, Zhao
DA  - 2021/09/01
DO  - 10.25300/MISQ/2021/16100
ID  - Guo2021
T2  - Management Information Systems Quarterly
TI  - How Trust Leads to Commitment on Microsourcing Platforms
VL  - 45
IS  - 3
SP  - 1309
EP  - 1348
UR  - https://aisel.aisnet.org/misq/vol45/iss3/13
PB  - Association for Information Systems
ER  -

Example csv record:

title;author;year; How Trust Leads to Commitment;Guo, W. and Straub, D.;2021;

Example json record:

[
{

“uid”: “GS:10955542985646283611”, “title”: “How Trust Leads to Commitment on Microsourcing Platforms: Unraveling the Effects of Governance and Third-Party Mechanisms on Triadic Microsourcing …”, # pylint: disable=line-too-long “source”: “MIS Quarterly”, “publisher”: “search.ebscohost.com”, “article_url”: “https://search.ebscohost.com/login.aspx?direct=true&profile=ehost&scope=site&authtype=crawler&jrnl=02767783&AN=152360579&h=TN%2BrXT9JtZbo1Hx6o6GaYvtoi2ScuJu0iI%2Ba5gvAvmYh9fkUTt3gu0586DSklLEUoLwfC70wD114VB%2BmhsQObw%3D%3D&crl=c”, # pylint: disable=line-too-long “cites_url”: “https://scholar.google.com/scholar?cites=10955542985646283611&as_sdt=2005&sciodt=2007&hl=en”, # pylint: disable=line-too-long “related_url”: “https://scholar.google.com/scholar?q=related:Wxv47EzoCZgJ:scholar.google.com/&scioq=intitle:microsourcing&hl=en&as_sdt=2007”, # pylint: disable=line-too-long “abstract”: “… microsourcing relationship which includes the microsourcer, the microsourcee, and the microsourcing … We argue that the microsourcing phenomenon fits these three critical dimensions …”, # pylint: disable=line-too-long “rank”: 1, “year”: 2021, “volume”: 0, “issue”: 0, “startpage”: 0, “endpage”: 0, “cites”: 9, “ecc”: 9, “use”: 1, “authors”: [

“W Guo”, “D Straub”, “P Zhang”, “Z Cai”

]

},

]

Functions

get_nr_records

Get the number of records in a file

load

Load a file and return records as a dictionary

loads

Load a string and return records as a dictionary