{"action":"closed","issue":{"url":"https://api.github.com/repos/TheScienceMuseum/collectionsonline/issues/814","repository_url":"https://api.github.com/repos/TheScienceMuseum/collectionsonline","labels_url":"https://api.github.com/repos/TheScienceMuseum/collectionsonline/issues/814/labels{/name}","comments_url":"https://api.github.com/repos/TheScienceMuseum/collectionsonline/issues/814/comments","events_url":"https://api.github.com/repos/TheScienceMuseum/collectionsonline/issues/814/events","html_url":"https://github.com/TheScienceMuseum/collectionsonline/issues/814","id":210853191,"number":814,"title":"Remove href/link from object identifier ","user":{"login":"jamieu","id":91365,"avatar_url":"https://avatars0.githubusercontent.com/u/91365?v=3","gravatar_id":"","url":"https://api.github.com/users/jamieu","html_url":"https://github.com/jamieu","followers_url":"https://api.github.com/users/jamieu/followers","following_url":"https://api.github.com/users/jamieu/following{/other_user}","gists_url":"https://api.github.com/users/jamieu/gists{/gist_id}","starred_url":"https://api.github.com/users/jamieu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamieu/subscriptions","organizations_url":"https://api.github.com/users/jamieu/orgs","repos_url":"https://api.github.com/users/jamieu/repos","events_url":"https://api.github.com/users/jamieu/events{/privacy}","received_events_url":"https://api.github.com/users/jamieu/received_events","type":"User","site_admin":false},"labels":[{"id":387111425,"url":"https://api.github.com/repos/TheScienceMuseum/collectionsonline/labels/bug","name":"bug","color":"ee0701","default":true},{"id":419443989,"url":"https://api.github.com/repos/TheScienceMuseum/collectionsonline/labels/please-test","name":"please-test","color":"08E700","default":false},{"id":391855072,"url":"https://api.github.com/repos/TheScienceMuseum/collectionsonline/labels/priority-2","name":"priority-2","color":"1976D2","default":false},{"id":391847857,"url":"https://api.github.com/repos/TheScienceMuseum/collectionsonline/labels/T2h","name":"T2h","color":"F06292","default":false}],"state":"closed","locked":false,"assignee":{"login":"Danwhy","id":8939909,"avatar_url":"https://avatars3.githubusercontent.com/u/8939909?v=3","gravatar_id":"","url":"https://api.github.com/users/Danwhy","html_url":"https://github.com/Danwhy","followers_url":"https://api.github.com/users/Danwhy/followers","following_url":"https://api.github.com/users/Danwhy/following{/other_user}","gists_url":"https://api.github.com/users/Danwhy/gists{/gist_id}","starred_url":"https://api.github.com/users/Danwhy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Danwhy/subscriptions","organizations_url":"https://api.github.com/users/Danwhy/orgs","repos_url":"https://api.github.com/users/Danwhy/repos","events_url":"https://api.github.com/users/Danwhy/events{/privacy}","received_events_url":"https://api.github.com/users/Danwhy/received_events","type":"User","site_admin":false},"assignees":[{"login":"Danwhy","id":8939909,"avatar_url":"https://avatars3.githubusercontent.com/u/8939909?v=3","gravatar_id":"","url":"https://api.github.com/users/Danwhy","html_url":"https://github.com/Danwhy","followers_url":"https://api.github.com/users/Danwhy/followers","following_url":"https://api.github.com/users/Danwhy/following{/other_user}","gists_url":"https://api.github.com/users/Danwhy/gists{/gist_id}","starred_url":"https://api.github.com/users/Danwhy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Danwhy/subscriptions","organizations_url":"https://api.github.com/users/Danwhy/orgs","repos_url":"https://api.github.com/users/Danwhy/repos","events_url":"https://api.github.com/users/Danwhy/events{/privacy}","received_events_url":"https://api.github.com/users/Danwhy/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/TheScienceMuseum/collectionsonline/milestones/15","html_url":"https://github.com/TheScienceMuseum/collectionsonline/milestone/15","labels_url":"https://api.github.com/repos/TheScienceMuseum/collectionsonline/milestones/15/labels","id":2614986,"number":15,"title":"Sprint 1 - June/July","description":"","creator":{"login":"Cleop","id":16775804,"avatar_url":"https://avatars0.githubusercontent.com/u/16775804?v=3","gravatar_id":"","url":"https://api.github.com/users/Cleop","html_url":"https://github.com/Cleop","followers_url":"https://api.github.com/users/Cleop/followers","following_url":"https://api.github.com/users/Cleop/following{/other_user}","gists_url":"https://api.github.com/users/Cleop/gists{/gist_id}","starred_url":"https://api.github.com/users/Cleop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Cleop/subscriptions","organizations_url":"https://api.github.com/users/Cleop/orgs","repos_url":"https://api.github.com/users/Cleop/repos","events_url":"https://api.github.com/users/Cleop/events{/privacy}","received_events_url":"https://api.github.com/users/Cleop/received_events","type":"User","site_admin":false},"open_issues":13,"closed_issues":6,"state":"open","created_at":"2017-06-30T15:19:53Z","updated_at":"2017-07-05T11:06:47Z","due_on":"2017-07-13T07:00:00Z","closed_at":null},"comments":1,"created_at":"2017-02-28T17:20:31Z","updated_at":"2017-07-05T11:06:47Z","closed_at":"2017-07-05T11:06:47Z","body":"<img width=\"417\" alt=\"screen shot 2017-02-28 at 17 20 05\" src=\"https://cloud.githubusercontent.com/assets/91365/23416289/318909a8-fdda-11e6-83c1-bc4b9216b85f.png\">\r\n\r\nLooks like we're adding a link for the OID lookup / redirect (https://github.com/TheScienceMuseum/collectionsonline/pull/792)  but this is causing the record to display to also add the link. Can we refactor out the link to be part of the OID lookup / redirect routing code?\r\n\r\nLooks like this is being added here and hence picked up everywhere, when in fact we only want it displayed with a link when using the OID lookup / redirect route.\r\n\r\n```\r\nfunction getAccession (data) {\r\n  var value;\r\n  if (data.attributes.identifier) {\r\n    data.attributes.identifier.forEach(el => {\r\n      if (el.type === 'accession number') {\r\n        value = el.value;\r\n      }\r\n    });\r\n    return value ? {key: 'Object Number', value: value, link: '/oid/' + value + '?redirect=true'} : null;\r\n  } else {\r\n    return null;\r\n  }\r\n}\r\n```"}}
{"actor":{"display_login":"jamieu"}}