{"action":"created","comment":{"url":"https://api.github.com/repos/ccnmtl/mediathread/pulls/comments/36034163","id":36034163,"diff_hunk":"@@ -442,31 +448,45 @@\n \n             // split the url.\n             var urls = value.split(',');\n+            var flagArray = [];","path":"media/js/app/taxonomy/taxonomy.js","position":17,"original_position":17,"commit_id":"3d68afeb925888918b38d40a21e954c4b5e24af9","original_commit_id":"99caa2f26f4c63e908a4ed9183e92b9d0d80dbe7","user":{"login":"sdreher","id":141369,"avatar_url":"https://avatars.githubusercontent.com/u/141369?v=3","gravatar_id":"","url":"https://api.github.com/users/sdreher","html_url":"https://github.com/sdreher","followers_url":"https://api.github.com/users/sdreher/followers","following_url":"https://api.github.com/users/sdreher/following{/other_user}","gists_url":"https://api.github.com/users/sdreher/gists{/gist_id}","starred_url":"https://api.github.com/users/sdreher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sdreher/subscriptions","organizations_url":"https://api.github.com/users/sdreher/orgs","repos_url":"https://api.github.com/users/sdreher/repos","events_url":"https://api.github.com/users/sdreher/events{/privacy}","received_events_url":"https://api.github.com/users/sdreher/received_events","type":"User","site_admin":false},"body":"Hmmm, I'd probably create two helper functions -- isJson(url), isSkos(url) that returns true or false based on the regex match. Then, at Ln. 462, if (!isJson(urls[i]) && !isSkos(urls[i]) { show error }. At line  477,  this.getTheOnomy(urls[j], this.selected, isJson(urls[j]); The helper function can also be used in refreshOnomy to maintain consistency rather than the quick (urls[i].indexOf(\"json\") > -1) check.","created_at":"2015-08-01T14:45:53Z","updated_at":"2015-08-01T14:45:53Z","html_url":"https://github.com/ccnmtl/mediathread/pull/234#discussion_r36034163","pull_request_url":"https://api.github.com/repos/ccnmtl/mediathread/pulls/234","_links":{"self":{"href":"https://api.github.com/repos/ccnmtl/mediathread/pulls/comments/36034163"},"html":{"href":"https://github.com/ccnmtl/mediathread/pull/234#discussion_r36034163"},"pull_request":{"href":"https://api.github.com/repos/ccnmtl/mediathread/pulls/234"}}},"pull_request":{"url":"https://api.github.com/repos/ccnmtl/mediathread/pulls/234","id":41362952,"html_url":"https://github.com/ccnmtl/mediathread/pull/234","diff_url":"https://github.com/ccnmtl/mediathread/pull/234.diff","patch_url":"https://github.com/ccnmtl/mediathread/pull/234.patch","issue_url":"https://api.github.com/repos/ccnmtl/mediathread/issues/234","number":234,"state":"open","locked":false,"title":"Fall2015","user":{"login":"c0cky","id":3203697,"avatar_url":"https://avatars.githubusercontent.com/u/3203697?v=3","gravatar_id":"","url":"https://api.github.com/users/c0cky","html_url":"https://github.com/c0cky","followers_url":"https://api.github.com/users/c0cky/followers","following_url":"https://api.github.com/users/c0cky/following{/other_user}","gists_url":"https://api.github.com/users/c0cky/gists{/gist_id}","starred_url":"https://api.github.com/users/c0cky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/c0cky/subscriptions","organizations_url":"https://api.github.com/users/c0cky/orgs","repos_url":"https://api.github.com/users/c0cky/repos","events_url":"https://api.github.com/users/c0cky/events{/privacy}","received_events_url":"https://api.github.com/users/c0cky/received_events","type":"User","site_admin":false},"body":"*add skos import into getTheOnomy\n*save skos_uri to Term and Vocabulary Models","created_at":"2015-07-31T17:40:31Z","updated_at":"2015-08-01T14:45:53Z","closed_at":null,"merged_at":null,"merge_commit_sha":"cacf65d155cde10078d49ce6629509da09473652","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ccnmtl/mediathread/pulls/234/commits","review_comments_url":"https://api.github.com/repos/ccnmtl/mediathread/pulls/234/comments","review_comment_url":"https://api.github.com/repos/ccnmtl/mediathread/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ccnmtl/mediathread/issues/234/comments","statuses_url":"https://api.github.com/repos/ccnmtl/mediathread/statuses/3d68afeb925888918b38d40a21e954c4b5e24af9","head":{"label":"c0cky:fall2015","ref":"fall2015","sha":"3d68afeb925888918b38d40a21e954c4b5e24af9","user":{"login":"c0cky","id":3203697,"avatar_url":"https://avatars.githubusercontent.com/u/3203697?v=3","gravatar_id":"","url":"https://api.github.com/users/c0cky","html_url":"https://github.com/c0cky","followers_url":"https://api.github.com/users/c0cky/followers","following_url":"https://api.github.com/users/c0cky/following{/other_user}","gists_url":"https://api.github.com/users/c0cky/gists{/gist_id}","starred_url":"https://api.github.com/users/c0cky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/c0cky/subscriptions","organizations_url":"https://api.github.com/users/c0cky/orgs","repos_url":"https://api.github.com/users/c0cky/repos","events_url":"https://api.github.com/users/c0cky/events{/privacy}","received_events_url":"https://api.github.com/users/c0cky/received_events","type":"User","site_admin":false},"repo":{"id":39849694,"name":"mediathread","full_name":"c0cky/mediathread","owner":{"login":"c0cky","id":3203697,"avatar_url":"https://avatars.githubusercontent.com/u/3203697?v=3","gravatar_id":"","url":"https://api.github.com/users/c0cky","html_url":"https://github.com/c0cky","followers_url":"https://api.github.com/users/c0cky/followers","following_url":"https://api.github.com/users/c0cky/following{/other_user}","gists_url":"https://api.github.com/users/c0cky/gists{/gist_id}","starred_url":"https://api.github.com/users/c0cky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/c0cky/subscriptions","organizations_url":"https://api.github.com/users/c0cky/orgs","repos_url":"https://api.github.com/users/c0cky/repos","events_url":"https://api.github.com/users/c0cky/events{/privacy}","received_events_url":"https://api.github.com/users/c0cky/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/c0cky/mediathread","description":"Django site for multimedia annotations facilitating collaboration on video and image analysis. Developed at the Columbia Center for New Media Teaching and Learning","fork":true,"url":"https://api.github.com/repos/c0cky/mediathread","forks_url":"https://api.github.com/repos/c0cky/mediathread/forks","keys_url":"https://api.github.com/repos/c0cky/mediathread/keys{/key_id}","collaborators_url":"https://api.github.com/repos/c0cky/mediathread/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/c0cky/mediathread/teams","hooks_url":"https://api.github.com/repos/c0cky/mediathread/hooks","issue_events_url":"https://api.github.com/repos/c0cky/mediathread/issues/events{/number}","events_url":"https://api.github.com/repos/c0cky/mediathread/events","assignees_url":"https://api.github.com/repos/c0cky/mediathread/assignees{/user}","branches_url":"https://api.github.com/repos/c0cky/mediathread/branches{/branch}","tags_url":"https://api.github.com/repos/c0cky/mediathread/tags","blobs_url":"https://api.github.com/repos/c0cky/mediathread/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/c0cky/mediathread/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/c0cky/mediathread/git/refs{/sha}","trees_url":"https://api.github.com/repos/c0cky/mediathread/git/trees{/sha}","statuses_url":"https://api.github.com/repos/c0cky/mediathread/statuses/{sha}","languages_url":"https://api.github.com/repos/c0cky/mediathread/languages","stargazers_url":"https://api.github.com/repos/c0cky/mediathread/stargazers","contributors_url":"https://api.github.com/repos/c0cky/mediathread/contributors","subscribers_url":"https://api.github.com/repos/c0cky/mediathread/subscribers","subscription_url":"https://api.github.com/repos/c0cky/mediathread/subscription","commits_url":"https://api.github.com/repos/c0cky/mediathread/commits{/sha}","git_commits_url":"https://api.github.com/repos/c0cky/mediathread/git/commits{/sha}","comments_url":"https://api.github.com/repos/c0cky/mediathread/comments{/number}","issue_comment_url":"https://api.github.com/repos/c0cky/mediathread/issues/comments{/number}","contents_url":"https://api.github.com/repos/c0cky/mediathread/contents/{+path}","compare_url":"https://api.github.com/repos/c0cky/mediathread/compare/{base}...{head}","merges_url":"https://api.github.com/repos/c0cky/mediathread/merges","archive_url":"https://api.github.com/repos/c0cky/mediathread/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/c0cky/mediathread/downloads","issues_url":"https://api.github.com/repos/c0cky/mediathread/issues{/number}","pulls_url":"https://api.github.com/repos/c0cky/mediathread/pulls{/number}","milestones_url":"https://api.github.com/repos/c0cky/mediathread/milestones{/number}","notifications_url":"https://api.github.com/repos/c0cky/mediathread/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/c0cky/mediathread/labels{/name}","releases_url":"https://api.github.com/repos/c0cky/mediathread/releases{/id}","created_at":"2015-07-28T18:01:59Z","updated_at":"2015-07-28T18:02:01Z","pushed_at":"2015-08-01T14:30:55Z","git_url":"git://github.com/c0cky/mediathread.git","ssh_url":"git@github.com:c0cky/mediathread.git","clone_url":"https://github.com/c0cky/mediathread.git","svn_url":"https://github.com/c0cky/mediathread","homepage":"http://ccnmtl.columbia.edu/mediathread","size":272870,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"ccnmtl:fall2015","ref":"fall2015","sha":"89257f8e627e5e463944321ce9909494de1dbc50","user":{"login":"ccnmtl","id":52456,"avatar_url":"https://avatars.githubusercontent.com/u/52456?v=3","gravatar_id":"","url":"https://api.github.com/users/ccnmtl","html_url":"https://github.com/ccnmtl","followers_url":"https://api.github.com/users/ccnmtl/followers","following_url":"https://api.github.com/users/ccnmtl/following{/other_user}","gists_url":"https://api.github.com/users/ccnmtl/gists{/gist_id}","starred_url":"https://api.github.com/users/ccnmtl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ccnmtl/subscriptions","organizations_url":"https://api.github.com/users/ccnmtl/orgs","repos_url":"https://api.github.com/users/ccnmtl/repos","events_url":"https://api.github.com/users/ccnmtl/events{/privacy}","received_events_url":"https://api.github.com/users/ccnmtl/received_events","type":"Organization","site_admin":false},"repo":{"id":461209,"name":"mediathread","full_name":"ccnmtl/mediathread","owner":{"login":"ccnmtl","id":52456,"avatar_url":"https://avatars.githubusercontent.com/u/52456?v=3","gravatar_id":"","url":"https://api.github.com/users/ccnmtl","html_url":"https://github.com/ccnmtl","followers_url":"https://api.github.com/users/ccnmtl/followers","following_url":"https://api.github.com/users/ccnmtl/following{/other_user}","gists_url":"https://api.github.com/users/ccnmtl/gists{/gist_id}","starred_url":"https://api.github.com/users/ccnmtl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ccnmtl/subscriptions","organizations_url":"https://api.github.com/users/ccnmtl/orgs","repos_url":"https://api.github.com/users/ccnmtl/repos","events_url":"https://api.github.com/users/ccnmtl/events{/privacy}","received_events_url":"https://api.github.com/users/ccnmtl/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ccnmtl/mediathread","description":"Django site for multimedia annotations facilitating collaboration on video and image analysis. Developed at the Columbia Center for New Media Teaching and Learning","fork":false,"url":"https://api.github.com/repos/ccnmtl/mediathread","forks_url":"https://api.github.com/repos/ccnmtl/mediathread/forks","keys_url":"https://api.github.com/repos/ccnmtl/mediathread/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ccnmtl/mediathread/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ccnmtl/mediathread/teams","hooks_url":"https://api.github.com/repos/ccnmtl/mediathread/hooks","issue_events_url":"https://api.github.com/repos/ccnmtl/mediathread/issues/events{/number}","events_url":"https://api.github.com/repos/ccnmtl/mediathread/events","assignees_url":"https://api.github.com/repos/ccnmtl/mediathread/assignees{/user}","branches_url":"https://api.github.com/repos/ccnmtl/mediathread/branches{/branch}","tags_url":"https://api.github.com/repos/ccnmtl/mediathread/tags","blobs_url":"https://api.github.com/repos/ccnmtl/mediathread/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ccnmtl/mediathread/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ccnmtl/mediathread/git/refs{/sha}","trees_url":"https://api.github.com/repos/ccnmtl/mediathread/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ccnmtl/mediathread/statuses/{sha}","languages_url":"https://api.github.com/repos/ccnmtl/mediathread/languages","stargazers_url":"https://api.github.com/repos/ccnmtl/mediathread/stargazers","contributors_url":"https://api.github.com/repos/ccnmtl/mediathread/contributors","subscribers_url":"https://api.github.com/repos/ccnmtl/mediathread/subscribers","subscription_url":"https://api.github.com/repos/ccnmtl/mediathread/subscription","commits_url":"https://api.github.com/repos/ccnmtl/mediathread/commits{/sha}","git_commits_url":"https://api.github.com/repos/ccnmtl/mediathread/git/commits{/sha}","comments_url":"https://api.github.com/repos/ccnmtl/mediathread/comments{/number}","issue_comment_url":"https://api.github.com/repos/ccnmtl/mediathread/issues/comments{/number}","contents_url":"https://api.github.com/repos/ccnmtl/mediathread/contents/{+path}","compare_url":"https://api.github.com/repos/ccnmtl/mediathread/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ccnmtl/mediathread/merges","archive_url":"https://api.github.com/repos/ccnmtl/mediathread/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ccnmtl/mediathread/downloads","issues_url":"https://api.github.com/repos/ccnmtl/mediathread/issues{/number}","pulls_url":"https://api.github.com/repos/ccnmtl/mediathread/pulls{/number}","milestones_url":"https://api.github.com/repos/ccnmtl/mediathread/milestones{/number}","notifications_url":"https://api.github.com/repos/ccnmtl/mediathread/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ccnmtl/mediathread/labels{/name}","releases_url":"https://api.github.com/repos/ccnmtl/mediathread/releases{/id}","created_at":"2010-01-06T20:45:48Z","updated_at":"2015-07-21T20:05:39Z","pushed_at":"2015-08-01T14:30:56Z","git_url":"git://github.com/ccnmtl/mediathread.git","ssh_url":"git@github.com:ccnmtl/mediathread.git","clone_url":"https://github.com/ccnmtl/mediathread.git","svn_url":"https://github.com/ccnmtl/mediathread","homepage":"http://ccnmtl.columbia.edu/mediathread","size":280982,"stargazers_count":48,"watchers_count":48,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":30,"mirror_url":null,"open_issues_count":6,"forks":30,"open_issues":6,"watchers":48,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ccnmtl/mediathread/pulls/234"},"html":{"href":"https://github.com/ccnmtl/mediathread/pull/234"},"issue":{"href":"https://api.github.com/repos/ccnmtl/mediathread/issues/234"},"comments":{"href":"https://api.github.com/repos/ccnmtl/mediathread/issues/234/comments"},"review_comments":{"href":"https://api.github.com/repos/ccnmtl/mediathread/pulls/234/comments"},"review_comment":{"href":"https://api.github.com/repos/ccnmtl/mediathread/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ccnmtl/mediathread/pulls/234/commits"},"statuses":{"href":"https://api.github.com/repos/ccnmtl/mediathread/statuses/3d68afeb925888918b38d40a21e954c4b5e24af9"}}}}