Skip to content

Commit

Permalink
Add formatId 'application/x-ipynb+json' to DataONEObject isSoftware()
Browse files Browse the repository at this point in the history
  • Loading branch information
gothub committed Feb 20, 2019
1 parent b709620 commit 4d019cb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/js/models/DataONEObject.js
Original file line number Diff line number Diff line change
Expand Up @@ -1460,12 +1460,13 @@ define(['jquery', 'underscore', 'backbone', 'uuid', 'he', 'collections/AccessPol
},

isSoftware: function(){
//The list of formatIds that are images
//The list of formatIds that are programs
var softwareIds = ["text/x-python",
"text/x-rsrc",
"text/x-matlab",
"text/x-sas",
"application/R"];
"application/R",
"application/x-ipynb+json"];
//Does this data object match one of these IDs?
if(_.indexOf(softwareIds, this.get('formatId')) == -1) return false;
else return true;
Expand Down

0 comments on commit 4d019cb

Please sign in to comment.