{"action":"created","issue":{"url":"https://api.github.com/repos/JabRef/jabref/issues/1677","repository_url":"https://api.github.com/repos/JabRef/jabref","labels_url":"https://api.github.com/repos/JabRef/jabref/issues/1677/labels{/name}","comments_url":"https://api.github.com/repos/JabRef/jabref/issues/1677/comments","events_url":"https://api.github.com/repos/JabRef/jabref/issues/1677/events","html_url":"https://github.com/JabRef/jabref/pull/1677","id":169447971,"number":1677,"title":"[WIP] Proper copying of entries","user":{"login":"oscargus","id":8114497,"avatar_url":"https://avatars.githubusercontent.com/u/8114497?v=3","gravatar_id":"","url":"https://api.github.com/users/oscargus","html_url":"https://github.com/oscargus","followers_url":"https://api.github.com/users/oscargus/followers","following_url":"https://api.github.com/users/oscargus/following{/other_user}","gists_url":"https://api.github.com/users/oscargus/gists{/gist_id}","starred_url":"https://api.github.com/users/oscargus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oscargus/subscriptions","organizations_url":"https://api.github.com/users/oscargus/orgs","repos_url":"https://api.github.com/users/oscargus/repos","events_url":"https://api.github.com/users/oscargus/events{/privacy}","received_events_url":"https://api.github.com/users/oscargus/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/JabRef/jabref/labels/enhancement","name":"enhancement","color":"6AC46A"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-08-04T18:57:02Z","updated_at":"2016-08-10T18:13:56Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/JabRef/jabref/pulls/1677","html_url":"https://github.com/JabRef/jabref/pull/1677","diff_url":"https://github.com/JabRef/jabref/pull/1677.diff","patch_url":"https://github.com/JabRef/jabref/pull/1677.patch"},"body":"I'm making a method to properly copy entries from one database to another, including crossref entries and used strings. This is useful in generating a database from an aux file and for generating a database based on an OO/LO document. It could also be useful for generating a subdatabase from selected entries (or copying relevant strings when copying entries).\r\n\r\nThere are some problems though related to the preamble. In OO/LO the entries may come from several databases and there it is not obvious how to deal with the preamble. However, a possibly solvable problem is to detect which strings are used in the preamble.\r\n\r\nIn AuxParserTest @stefan-kolb have generated a test file with a string in the preamble. JabRef doesn't parse this in a way such that the string can be resolved automatically. Earlier, the preamble and all strings were copied in AuxParser, but I was hoping to only copy the relevant strings. Any input on how the preamble issue should be solved? One way would simply be to parse the preamble for strings, I guess. Any other suggestions?\r\n\r\n- [ ] Change in CHANGELOG.md described\r\n- [ ] Tests created for changes\r\n- [ ] Screenshots added (for bigger UI changes)\r\n- [ ] Manually tested changed features in running JabRef\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/JabRef/jabref/issues/comments/238954445","html_url":"https://github.com/JabRef/jabref/pull/1677#issuecomment-238954445","issue_url":"https://api.github.com/repos/JabRef/jabref/issues/1677","id":238954445,"user":{"login":"koppor","id":1366654,"avatar_url":"https://avatars.githubusercontent.com/u/1366654?v=3","gravatar_id":"","url":"https://api.github.com/users/koppor","html_url":"https://github.com/koppor","followers_url":"https://api.github.com/users/koppor/followers","following_url":"https://api.github.com/users/koppor/following{/other_user}","gists_url":"https://api.github.com/users/koppor/gists{/gist_id}","starred_url":"https://api.github.com/users/koppor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/koppor/subscriptions","organizations_url":"https://api.github.com/users/koppor/orgs","repos_url":"https://api.github.com/users/koppor/repos","events_url":"https://api.github.com/users/koppor/events{/privacy}","received_events_url":"https://api.github.com/users/koppor/received_events","type":"User","site_admin":false},"created_at":"2016-08-10T18:13:55Z","updated_at":"2016-08-10T18:13:55Z","body":"Is it possible to also copy the files if the absolute directory of the file differs? The relative path of the source should be resolved against the file path of the current bib file. Including directory creation."}}
{"actor":{"display_login":"koppor"}}