diff --git a/app/works.py b/app/works.py index 0a2d028..0beb975 100644 --- a/app/works.py +++ b/app/works.py @@ -115,8 +115,8 @@ def crosswalk(self, orcid_profile, person_uri, graph): #Work-type work_class = work_type_map[work_type] - if work_type == "TRANSLATION" and bibtex and bibtex["type"] in bibtex_type_map: - work_class = bibtex_type_map[bibtex["type"]] + if work_type == "TRANSLATION" and bibtex and bibtex["ENTRYTYPE"] in bibtex_type_map: + work_class = bibtex_type_map[bibtex["ENTRYTYPE"]] #Construct work uri work_uri = self.identifier_strategy.to_uri(work_class, {"name": title}) diff --git a/requirements.txt b/requirements.txt index 3c7943e..1958c55 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,6 +1,6 @@ -rdflib -requests -bibtexparser -flask -vcrpy -mock \ No newline at end of file +rdflib==4.2.0 +requests==2.7.0 +bibtexparser==0.6.1 +flask==0.10.1 +vcrpy==1.7.0 +mock==1.3.0 \ No newline at end of file