seboettg / citeproc-php

Full-featured CSL 1.0.1 processor for PHP
MIT License
75 stars 39 forks source link

MENDELEY Api & citeproc issue #109

Open mgip opened 3 years ago

mgip commented 3 years ago

Please follow the general troubleshooting steps first:

Bug reports:

i use a Mendeley API, the json that return on /catalog/[id] endpoint, citeproc-php is not working propely... is any procedure for user a mendeley API template?

Used CSL stylesheet:

apa

Used CSL metadata

Please replace these lines with your used metadata, for instance:

[{ "title": "Virgin olive oil and health: Summary of the iii international conference on virgin olive oil and health consensus report, JAEN (Spain) 2018", "type": "generic", "authors": [ { "first_name": "José J.", "last_name": "Gaforio", "scopus_author_id": "6603906606" }, { "first_name": "Francesco", "last_name": "Visioli", "scopus_author_id": "7006786926" }, { "first_name": "Catalina", "last_name": "Alarcón-De-la-lastra", "scopus_author_id": "7003853320" }, { "first_name": "Olga", "last_name": "Castañer", "scopus_author_id": "36487707800" }, { "first_name": "Miguel", "last_name": "Delgado-Rodríguez", "scopus_author_id": "7103303437" }, { "first_name": "Monserrat", "last_name": "Fitó", "scopus_author_id": "6602891390" }, { "first_name": "Antonio F.", "last_name": "Hernández", "scopus_author_id": "34569793100" }, { "first_name": "Jesús R.", "last_name": "Huertas", "scopus_author_id": "24325525300" }, { "first_name": "Miguel A.", "last_name": "Martínez-González", "scopus_author_id": "56200287800" }, { "first_name": "Javier A.", "last_name": "Menendez", "scopus_author_id": "7102824561" }, { "first_name": "Jesús", "last_name": "de la Osada", "scopus_author_id": "57211314829" }, { "first_name": "Angeliki", "last_name": "Papadaki", "scopus_author_id": "8966847000" }, { "first_name": "Tesifón", "last_name": "Parrón", "scopus_author_id": "8711359900" }, { "first_name": "Jorge E.", "last_name": "Pereira", "scopus_author_id": "57210891424" }, { "first_name": "María A.", "last_name": "Rosillo", "scopus_author_id": "53983035200" }, { "first_name": "Cristina", "last_name": "Sánchez-Quesada", "scopus_author_id": "35489112200" }, { "first_name": "Lukas", "last_name": "Schwingshackl", "scopus_author_id": "36919185400" }, { "first_name": "Estefanía", "last_name": "Toledo", "scopus_author_id": "7003562288" }, { "first_name": "Aristidis M.", "last_name": "Tsatsakis", "scopus_author_id": "35596169100" } ], "year": 2019, "source": "Nutrients", "identifiers": { "pii": "nu11092039", "scopus": "2-s2.0-85071744561", "pmid": "31480506", "pui": "2002602386", "doi": "10.3390/nu11092039", "issn": "20726643", "sgr": "85071744561" }, "keywords": [ "Cancer", "Cardiovascular disease", "Hydroxytyrosol", "Mediterranean diet", "Neurodegeneration", "Olive oil", "Polyphenols", "Sustainable agriculture", "Sustainable diet" ], "volume": "11", "issue": "9", "month": 9, "publisher": "MDPI AG", "day": 1, "id": "8299bf15-9c88-35ec-b97f-34769e7bc371", "file_attached": false, "imported": true, "link": "https://www.mendeley.com/catalogue/8299bf15-9c88-35ec-b97f-34769e7bc371/", "reader_count": 166, "reader_count_by_academic_status": { "Student > Postgraduate": 11, "Professor > Associate Professor": 1, "Researcher": 16, "Student > Master": 20, "Student > Ph. D. Student": 14, "Professor": 9, "Student > Bachelor": 33, "Student > Doctoral Student": 8, "Lecturer": 3, "Other": 8, "Lecturer > Senior Lecturer": 6, "Unspecified": 2 }, "reader_count_by_user_role": { "Student > Postgraduate": 11, "Professor > Associate Professor": 1, "Researcher": 16, "Student > Master": 20, "Student > Ph. D. Student": 14, "Professor": 9, "Student > Bachelor": 33, "Student > Doctoral Student": 8, "Lecturer": 3, "Other": 8, "Lecturer > Senior Lecturer": 6, "Unspecified": 2 }, "reader_count_by_subject_area": { "Decision Sciences": 2, "Chemical Engineering": 1, "Materials Science": 1, "Pharmacology, Toxicology and Pharmaceutical Science": 8, "Computer Science": 1, "Chemistry": 12, "Nursing and Health Professions": 19, "Neuroscience": 1, "Social Sciences": 7, "Sports and Recreations": 3, "Engineering": 2, "Agricultural and Biological Sciences": 13, "Medicine and Dentistry": 19, "Arts and Humanities": 1, "Environmental Science": 2, "Psychology": 4, "Economics, Econometrics and Finance": 2, "Biochemistry, Genetics and Molecular Biology": 13, "Immunology and Microbiology": 2, "Business, Management and Accounting": 2, "Unspecified": 2 }, "reader_count_by_subdiscipline": { "Materials Science": { "Materials Science": 1 }, "Medicine and Dentistry": { "Medicine and Dentistry": 19 }, "Social Sciences": { "Social Sciences": 7 }, "Decision Sciences": { "Decision Sciences": 2 }, "Sports and Recreations": { "Sports and Recreations": 3 }, "Psychology": { "Psychology": 4 }, "Pharmacology, Toxicology and Pharmaceutical Science": { "Pharmacology, Toxicology and Pharmaceutical Science": 8 }, "Environmental Science": { "Environmental Science": 2 }, "Unspecified": { "Unspecified": 2 }, "Chemical Engineering": { "Chemical Engineering": 1 }, "Arts and Humanities": { "Arts and Humanities": 1 }, "Engineering": { "Engineering": 2 }, "Chemistry": { "Chemistry": 12 }, "Neuroscience": { "Neuroscience": 1 }, "Economics, Econometrics and Finance": { "Economics, Econometrics and Finance": 2 }, "Immunology and Microbiology": { "Immunology and Microbiology": 2 }, "Computer Science": { "Computer Science": 1 }, "Agricultural and Biological Sciences": { "Agricultural and Biological Sciences": 13 }, "Nursing and Health Professions": { "Nursing and Health Professions": 19 }, "Business, Management and Accounting": { "Business, Management and Accounting": 2 }, "Biochemistry, Genetics and Molecular Biology": { "Biochemistry, Genetics and Molecular Biology": 13 } }, "group_count": 8, "has_pdf": false, "open_access": true, "crossref_member_id": 1968 }]

seboettg commented 2 years ago

Hi @mgip! Thank you for your question. citeproc-php supports CSL 1.0.1 data schema. I recognized there is a newer version 1.0.2 so your issue may caused by this. Unfortunately I'm not familar with Mandeley, but possibly you can use an older data format which is compatible to CSL 1.0.1? Nevertheless, in the future it would be necessary to make citeproc-php fit for CSL 1.0.2. But that seems to me to be a larger task.