From 9f9c2cd94b8286ff1e47815967f27b6c02b78813 Mon Sep 17 00:00:00 2001 From: Kelly Lockhart <2926089+kelockhart@users.noreply.github.com> Date: Tue, 6 Mar 2018 11:18:32 -0500 Subject: [PATCH] Updated worktypes for JSON Per ORCID, worktypes passed via JSON instead of XML should use underscores (_) instead of hyphens (-), and should be in all caps --- src/js/modules/orcid/work.js | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/src/js/modules/orcid/work.js b/src/js/modules/orcid/work.js index 42c1883b9..446338638 100644 --- a/src/js/modules/orcid/work.js +++ b/src/js/modules/orcid/work.js @@ -228,30 +228,30 @@ define([ var work = {}; var worktype = function(adsType) { var oType = { - article: 'JOURNAL-ARTICLE', - inproceedings: 'CONFERENCE-PAPER', - abstract: 'CONFERENCE-ABSTRACT', - eprint: 'WORKING-PAPER', + article: 'JOURNAL_ARTICLE', + inproceedings: 'CONFERENCE_PAPER', + abstract: 'CONFERENCE_ABSTRACT', + eprint: 'WORKING_PAPER', phdthesis: 'DISSERTATION', - techreport: 'RESEARCH-TECHNIQUE', - inbook: 'BOOK-CHAPTER', - circular: 'RESEARCH-TOOL', + techreport: 'RESEARCH_TECHNIQUE', + inbook: 'BOOK_CHAPTER', + circular: 'RESEARCH_TOOL', misc: 'OTHER', book: 'BOOK', proceedings: 'BOOK', - bookreview: 'BOOK-REVIEW', - erratum: 'JOURNAL-ARTICLE', + bookreview: 'BOOK_REVIEW', + erratum: 'JOURNAL_ARTICLE', proposal: 'OTHER', - newsletter: 'NEWSLETTER-ARTICLE', - catalog: 'DATA-SET', - intechreport: 'RESEARCH-TECHNIQUE', + newsletter: 'NEWSLETTER_ARTICLE', + catalog: 'DATA_SET', + intechreport: 'RESEARCH_TECHNIQUE', mastersthesis: 'DISSERTATION', obituary: 'OTHER', pressrelease: 'OTHER', - software: 'RESEARCH-TECHNIQUE', - talk: 'LECTURE-SPEECH' + software: 'RESEARCH_TECHNIQUE', + talk: 'LECTURE_SPEECH' }; - return oType[adsType] || 'JOURNAL-ARTICLE'; + return oType[adsType] || 'JOURNAL_ARTICLE'; }; try {