{"action":"closed","issue":{"url":"https://api.github.com/repos/curationexperts/alexandria-v2/issues/158","labels_url":"https://api.github.com/repos/curationexperts/alexandria-v2/issues/158/labels{/name}","comments_url":"https://api.github.com/repos/curationexperts/alexandria-v2/issues/158/comments","events_url":"https://api.github.com/repos/curationexperts/alexandria-v2/issues/158/events","html_url":"https://github.com/curationexperts/alexandria-v2/issues/158","id":63250419,"number":158,"title":"Handle simple and complex Subject headings in editor","user":{"login":"mark-dce","id":3064318,"avatar_url":"https://avatars.githubusercontent.com/u/3064318?v=3","gravatar_id":"","url":"https://api.github.com/users/mark-dce","html_url":"https://github.com/mark-dce","followers_url":"https://api.github.com/users/mark-dce/followers","following_url":"https://api.github.com/users/mark-dce/following{/other_user}","gists_url":"https://api.github.com/users/mark-dce/gists{/gist_id}","starred_url":"https://api.github.com/users/mark-dce/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mark-dce/subscriptions","organizations_url":"https://api.github.com/users/mark-dce/orgs","repos_url":"https://api.github.com/users/mark-dce/repos","events_url":"https://api.github.com/users/mark-dce/events{/privacy}","received_events_url":"https://api.github.com/users/mark-dce/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/curationexperts/alexandria-v2/labels/Editor","name":"Editor","color":"fef2c0"},{"url":"https://api.github.com/repos/curationexperts/alexandria-v2/labels/in-dev","name":"in-dev","color":"ededed"}],"state":"closed","locked":false,"assignee":{"login":"jcoyne","id":92044,"avatar_url":"https://avatars.githubusercontent.com/u/92044?v=3","gravatar_id":"","url":"https://api.github.com/users/jcoyne","html_url":"https://github.com/jcoyne","followers_url":"https://api.github.com/users/jcoyne/followers","following_url":"https://api.github.com/users/jcoyne/following{/other_user}","gists_url":"https://api.github.com/users/jcoyne/gists{/gist_id}","starred_url":"https://api.github.com/users/jcoyne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jcoyne/subscriptions","organizations_url":"https://api.github.com/users/jcoyne/orgs","repos_url":"https://api.github.com/users/jcoyne/repos","events_url":"https://api.github.com/users/jcoyne/events{/privacy}","received_events_url":"https://api.github.com/users/jcoyne/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/curationexperts/alexandria-v2/milestones/11","html_url":"https://github.com/curationexperts/alexandria-v2/milestones/Sprint%206%20-%20April%206","labels_url":"https://api.github.com/repos/curationexperts/alexandria-v2/milestones/11/labels","id":1052230,"number":11,"title":"Sprint 6 - April 6","description":"One week sprint to wrap up main editor features","creator":{"login":"mark-dce","id":3064318,"avatar_url":"https://avatars.githubusercontent.com/u/3064318?v=3","gravatar_id":"","url":"https://api.github.com/users/mark-dce","html_url":"https://github.com/mark-dce","followers_url":"https://api.github.com/users/mark-dce/followers","following_url":"https://api.github.com/users/mark-dce/following{/other_user}","gists_url":"https://api.github.com/users/mark-dce/gists{/gist_id}","starred_url":"https://api.github.com/users/mark-dce/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mark-dce/subscriptions","organizations_url":"https://api.github.com/users/mark-dce/orgs","repos_url":"https://api.github.com/users/mark-dce/repos","events_url":"https://api.github.com/users/mark-dce/events{/privacy}","received_events_url":"https://api.github.com/users/mark-dce/received_events","type":"User","site_admin":false},"open_issues":6,"closed_issues":12,"state":"open","created_at":"2015-04-03T20:14:47Z","updated_at":"2015-04-13T17:52:26Z","due_on":"2015-04-10T05:00:00Z","closed_at":null},"comments":0,"created_at":"2015-03-20T15:35:19Z","updated_at":"2015-04-13T17:52:26Z","closed_at":"2015-04-13T17:52:26Z","body":"Allow the creation of complex subjects in the editor.  However, index complex subjects into their individual component indexes.  E.G. Earthquakes—California—Santa Barbara should be faceted something like topic: earthquakes, location: California, location: Santa Barbara.  The system does not enforce the order of complex subjects.\r\n\r\n**ACCEPTANCE**\r\n- [ ] The editor should provide a topic type selection that determines which predicate / facet the subject is assigned to - e.g. {\"Topic/Name\"=>\"lc_subject\",  \"Geographic\"=>\"location\"} [_NOTE: the wireframe breaks Topic an Name into two, but they combine as the same predicate_] \r\n- [ ] The editor should allow the user to select which vocabulary they would like to search - e.g. {\"LC Subject Headings\"=>\"lcsh\", \"LC Names\"=>\"lcnames\", \"LC Graphic Materials\"=>\"tgm\", \"LC Organizations\"=>\"lc_orgs\", \"Getty AAT\"=>'aat'}\r\n- [ ] The editor should provide autosuggest options as the user types in a subject\r\n- [ ] Typing a new subject over a pre-filled entry should provide new auto-suggest and replace the existing entry    \r\n- [ ] The editor should store the subject as it's URI\r\n- [ ] The editor should allow multiple subjects per object\r\n- [ ] Blank subjects should not be saved\r\n- [ ] On load, the form should display all existing subjects and provide a blank entry section at bottom   \r\n- [ ] If the user enters a subject that doesn't have a match in the selected vocabulary authority, they will see some kind of feedback that the name won't be saved.  (Or:  Somehow prevent the user from inputting non-matching text)\r\n- [ ] The fields from the wireframe should replace the existing 'Location' and 'LC Subject' fields in the metadata editor (i.e. there should not be dedicated Location and LC Subject fields)\r\n\r\n![adrl2 - 158 - subject headings v2](https://cloud.githubusercontent.com/assets/3064318/6953532/85c119b0-d88f-11e4-9fb9-6a18e6103544.png)\r\n"}}