From 4d019cbfd896c8cf4e4e84b337404895b33ab4e4 Mon Sep 17 00:00:00 2001 From: gothub Date: Wed, 20 Feb 2019 12:29:23 -0800 Subject: [PATCH] Add formatId 'application/x-ipynb+json' to DataONEObject isSoftware() --- src/js/models/DataONEObject.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/js/models/DataONEObject.js b/src/js/models/DataONEObject.js index cffd5f627..f06000494 100644 --- a/src/js/models/DataONEObject.js +++ b/src/js/models/DataONEObject.js @@ -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;