{"action":"created","issue":{"url":"https://api.github.com/repos/digirati-co-uk/iiif-gallery/issues/2","repository_url":"https://api.github.com/repos/digirati-co-uk/iiif-gallery","labels_url":"https://api.github.com/repos/digirati-co-uk/iiif-gallery/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/digirati-co-uk/iiif-gallery/issues/2/comments","events_url":"https://api.github.com/repos/digirati-co-uk/iiif-gallery/issues/2/events","html_url":"https://github.com/digirati-co-uk/iiif-gallery/issues/2","id":153803194,"number":2,"title":"Metadata selection for label","user":{"login":"tomcrane","id":1443575,"avatar_url":"https://avatars.githubusercontent.com/u/1443575?v=3","gravatar_id":"","url":"https://api.github.com/users/tomcrane","html_url":"https://github.com/tomcrane","followers_url":"https://api.github.com/users/tomcrane/followers","following_url":"https://api.github.com/users/tomcrane/following{/other_user}","gists_url":"https://api.github.com/users/tomcrane/gists{/gist_id}","starred_url":"https://api.github.com/users/tomcrane/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomcrane/subscriptions","organizations_url":"https://api.github.com/users/tomcrane/orgs","repos_url":"https://api.github.com/users/tomcrane/repos","events_url":"https://api.github.com/users/tomcrane/events{/privacy}","received_events_url":"https://api.github.com/users/tomcrane/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-05-09T15:27:53Z","updated_at":"2016-05-09T15:30:17Z","closed_at":null,"body":"We want to end up with the following info on the label:\r\n\r\n----\r\n**The title of the work**\r\n_The creator of the work_\r\n\r\n2017 (date)\r\n_the attribution notice_\r\n\r\n-------\r\n\r\nThe title is easy - that is the label property of the manifest. If you can't find that, then there shouldn't be a label.\r\n\r\nThe attribution notice is also a direct property of the manifest. If t doesn't have one. just omit it.\r\n\r\nThe author and date are harder, because there's no formal property for them. They will be buried in the label/value manifest pairs.\r\n\r\nBut we could use some logic to pull them out.\r\n\r\nFor creator, find the metadata object with a label property that starts with any of (ignoring case)\r\n\r\n\"author\"\r\n\"creator\"\r\n\"credit\"\r\n\r\nFor date, find the metadata object that starts with any of\r\n\r\n\"date\"\r\n\"publication date\"\r\n\r\nThat should cover most of the Wellcome stuff and I can add in more rules later.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/digirati-co-uk/iiif-gallery/issues/comments/217898688","html_url":"https://github.com/digirati-co-uk/iiif-gallery/issues/2#issuecomment-217898688","issue_url":"https://api.github.com/repos/digirati-co-uk/iiif-gallery/issues/2","id":217898688,"user":{"login":"stephenwf","id":8266711,"avatar_url":"https://avatars.githubusercontent.com/u/8266711?v=3","gravatar_id":"","url":"https://api.github.com/users/stephenwf","html_url":"https://github.com/stephenwf","followers_url":"https://api.github.com/users/stephenwf/followers","following_url":"https://api.github.com/users/stephenwf/following{/other_user}","gists_url":"https://api.github.com/users/stephenwf/gists{/gist_id}","starred_url":"https://api.github.com/users/stephenwf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stephenwf/subscriptions","organizations_url":"https://api.github.com/users/stephenwf/orgs","repos_url":"https://api.github.com/users/stephenwf/repos","events_url":"https://api.github.com/users/stephenwf/events{/privacy}","received_events_url":"https://api.github.com/users/stephenwf/received_events","type":"User","site_admin":false},"created_at":"2016-05-09T15:30:17Z","updated_at":"2016-05-09T15:30:17Z","body":"Hopefully we can contain the logic in this class here: https://github.com/digirati-co-uk/iiif-gallery/blob/gh-pages/src/IIIF/Manifest.js\r\n\r\nHave it figure out the data based on the information it has like we are doing for the image service (and the label, although just using manifest.label for now)."}}