{"action":"created","comment":{"url":"https://api.github.com/repos/JabRef/jabref/pulls/comments/78282792","id":78282792,"diff_hunk":"@@ -0,0 +1,148 @@\n+package net.sf.jabref.logic.citationstyle;\n+\n+import java.io.IOException;\n+import java.io.StringReader;\n+import java.net.URISyntaxException;\n+import java.net.URL;\n+import java.nio.charset.StandardCharsets;\n+import java.nio.file.Files;\n+import java.nio.file.NoSuchFileException;\n+import java.nio.file.Paths;\n+import java.util.ArrayList;\n+import java.util.Collections;\n+import java.util.Enumeration;\n+import java.util.List;\n+import java.util.Objects;\n+import java.util.jar.JarEntry;\n+import java.util.jar.JarFile;\n+\n+import javax.xml.parsers.DocumentBuilder;\n+import javax.xml.parsers.DocumentBuilderFactory;\n+import javax.xml.parsers.ParserConfigurationException;\n+\n+import net.sf.jabref.logic.util.FileExtensions;\n+\n+import de.undercouch.citeproc.helper.CSLUtils;\n+import org.apache.commons.logging.Log;\n+import org.apache.commons.logging.LogFactory;\n+import org.w3c.dom.CharacterData;\n+import org.w3c.dom.Document;\n+import org.w3c.dom.Element;\n+import org.w3c.dom.NodeList;\n+import org.xml.sax.InputSource;\n+import org.xml.sax.SAXException;\n+\n+\n+public class CitationStyle {","path":"src/main/java/net/sf/jabref/logic/citationstyle/CitationStyle.java","position":null,"original_position":36,"commit_id":"c051879c3db74d009fd949954da018a81acf6be6","original_commit_id":"0940983a2b36e509fd69103e6c8456f66700fe05","user":{"login":"bartsch-dev","id":15333371,"avatar_url":"https://avatars.githubusercontent.com/u/15333371?v=3","gravatar_id":"","url":"https://api.github.com/users/bartsch-dev","html_url":"https://github.com/bartsch-dev","followers_url":"https://api.github.com/users/bartsch-dev/followers","following_url":"https://api.github.com/users/bartsch-dev/following{/other_user}","gists_url":"https://api.github.com/users/bartsch-dev/gists{/gist_id}","starred_url":"https://api.github.com/users/bartsch-dev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bartsch-dev/subscriptions","organizations_url":"https://api.github.com/users/bartsch-dev/orgs","repos_url":"https://api.github.com/users/bartsch-dev/repos","events_url":"https://api.github.com/users/bartsch-dev/events{/privacy}","received_events_url":"https://api.github.com/users/bartsch-dev/received_events","type":"User","site_admin":false},"body":"fixed","created_at":"2016-09-10T19:38:12Z","updated_at":"2016-09-10T19:38:12Z","html_url":"https://github.com/JabRef/jabref/pull/1928#discussion_r78282792","pull_request_url":"https://api.github.com/repos/JabRef/jabref/pulls/1928","_links":{"self":{"href":"https://api.github.com/repos/JabRef/jabref/pulls/comments/78282792"},"html":{"href":"https://github.com/JabRef/jabref/pull/1928#discussion_r78282792"},"pull_request":{"href":"https://api.github.com/repos/JabRef/jabref/pulls/1928"}}},"pull_request":{"url":"https://api.github.com/repos/JabRef/jabref/pulls/1928","id":84150730,"html_url":"https://github.com/JabRef/jabref/pull/1928","diff_url":"https://github.com/JabRef/jabref/pull/1928.diff","patch_url":"https://github.com/JabRef/jabref/pull/1928.patch","issue_url":"https://api.github.com/repos/JabRef/jabref/issues/1928","number":1928,"state":"open","locked":false,"title":"[WIP] Support CitationStyles","user":{"login":"bartsch-dev","id":15333371,"avatar_url":"https://avatars.githubusercontent.com/u/15333371?v=3","gravatar_id":"","url":"https://api.github.com/users/bartsch-dev","html_url":"https://github.com/bartsch-dev","followers_url":"https://api.github.com/users/bartsch-dev/followers","following_url":"https://api.github.com/users/bartsch-dev/following{/other_user}","gists_url":"https://api.github.com/users/bartsch-dev/gists{/gist_id}","starred_url":"https://api.github.com/users/bartsch-dev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bartsch-dev/subscriptions","organizations_url":"https://api.github.com/users/bartsch-dev/orgs","repos_url":"https://api.github.com/users/bartsch-dev/repos","events_url":"https://api.github.com/users/bartsch-dev/events{/privacy}","received_events_url":"https://api.github.com/users/bartsch-dev/received_events","type":"User","site_admin":false},"body":"Implements #119.\r\n\r\nThe User can choose multiple CitationStyles which he can cycle threw in the preview panel (forward with <kbd>F9</kbd>, backwards <kbd>shift</kbd> + <kbd>F9</kbd>, both are in the context menu and the menu bar) .\r\nAs discussed I removed the 2nd Preview.\r\n\r\n\r\n\r\n### Preview before:\r\n![preview_before](https://cloud.githubusercontent.com/assets/15333371/18280266/c6853006-7458-11e6-8828-4484a74bbda6.PNG)\r\n### Preview after: \r\n![preview_after](https://cloud.githubusercontent.com/assets/15333371/18280283/d74107e4-7458-11e6-8c88-216281c78758.PNG)\r\n\r\n### Preferences before:\r\n![preferences_before](https://cloud.githubusercontent.com/assets/15333371/18280265/c684f26c-7458-11e6-9672-fde6b684a11b.PNG)\r\n \r\n### Preferences after: \r\n![preferences_after](https://cloud.githubusercontent.com/assets/15333371/18280282/d7368f08-7458-11e6-9bc6-dac0e119443c.PNG)\r\n\r\nI didn't include the localization (other the English) on purpose because they create unnecessary conflicts when rebasing quite often (I push them when everything else is fine).\r\n\r\nThe Help page has to be updated too. I do that as soon as this PR is merged.\r\n\r\n- [x] Change in CHANGELOG.md described\r\n- [ ] Tests created for changes\r\n- [x] Screenshots added (for bigger UI changes)\r\n- [x] Manually tested changed features in running JabRef\r\n- [ ] Check documentation status (Issue created for outdated help page at [help.jabref.org](https://github.com/JabRef/help.jabref.org/issues)?)\r\n\r\n\r\nWarning: currently I read the available CitationStyles at runtime. I had problems reading them from the gradle dependency thus currently they are only found when JabRef is started from the JAR.\r\n\r\n","created_at":"2016-09-06T16:06:46Z","updated_at":"2016-09-10T19:38:12Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9a30acb3d14758cd49e52ae31ce372daca0ebaf1","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/JabRef/jabref/pulls/1928/commits","review_comments_url":"https://api.github.com/repos/JabRef/jabref/pulls/1928/comments","review_comment_url":"https://api.github.com/repos/JabRef/jabref/pulls/comments{/number}","comments_url":"https://api.github.com/repos/JabRef/jabref/issues/1928/comments","statuses_url":"https://api.github.com/repos/JabRef/jabref/statuses/c051879c3db74d009fd949954da018a81acf6be6","head":{"label":"bartsch-dev:supportCitationStyles","ref":"supportCitationStyles","sha":"c051879c3db74d009fd949954da018a81acf6be6","user":{"login":"bartsch-dev","id":15333371,"avatar_url":"https://avatars.githubusercontent.com/u/15333371?v=3","gravatar_id":"","url":"https://api.github.com/users/bartsch-dev","html_url":"https://github.com/bartsch-dev","followers_url":"https://api.github.com/users/bartsch-dev/followers","following_url":"https://api.github.com/users/bartsch-dev/following{/other_user}","gists_url":"https://api.github.com/users/bartsch-dev/gists{/gist_id}","starred_url":"https://api.github.com/users/bartsch-dev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bartsch-dev/subscriptions","organizations_url":"https://api.github.com/users/bartsch-dev/orgs","repos_url":"https://api.github.com/users/bartsch-dev/repos","events_url":"https://api.github.com/users/bartsch-dev/events{/privacy}","received_events_url":"https://api.github.com/users/bartsch-dev/received_events","type":"User","site_admin":false},"repo":{"id":45906343,"name":"jabref","full_name":"bartsch-dev/jabref","owner":{"login":"bartsch-dev","id":15333371,"avatar_url":"https://avatars.githubusercontent.com/u/15333371?v=3","gravatar_id":"","url":"https://api.github.com/users/bartsch-dev","html_url":"https://github.com/bartsch-dev","followers_url":"https://api.github.com/users/bartsch-dev/followers","following_url":"https://api.github.com/users/bartsch-dev/following{/other_user}","gists_url":"https://api.github.com/users/bartsch-dev/gists{/gist_id}","starred_url":"https://api.github.com/users/bartsch-dev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bartsch-dev/subscriptions","organizations_url":"https://api.github.com/users/bartsch-dev/orgs","repos_url":"https://api.github.com/users/bartsch-dev/repos","events_url":"https://api.github.com/users/bartsch-dev/events{/privacy}","received_events_url":"https://api.github.com/users/bartsch-dev/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bartsch-dev/jabref","description":"Graphical Java application for managing bibtex (.bib) databases","fork":true,"url":"https://api.github.com/repos/bartsch-dev/jabref","forks_url":"https://api.github.com/repos/bartsch-dev/jabref/forks","keys_url":"https://api.github.com/repos/bartsch-dev/jabref/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bartsch-dev/jabref/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bartsch-dev/jabref/teams","hooks_url":"https://api.github.com/repos/bartsch-dev/jabref/hooks","issue_events_url":"https://api.github.com/repos/bartsch-dev/jabref/issues/events{/number}","events_url":"https://api.github.com/repos/bartsch-dev/jabref/events","assignees_url":"https://api.github.com/repos/bartsch-dev/jabref/assignees{/user}","branches_url":"https://api.github.com/repos/bartsch-dev/jabref/branches{/branch}","tags_url":"https://api.github.com/repos/bartsch-dev/jabref/tags","blobs_url":"https://api.github.com/repos/bartsch-dev/jabref/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bartsch-dev/jabref/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bartsch-dev/jabref/git/refs{/sha}","trees_url":"https://api.github.com/repos/bartsch-dev/jabref/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bartsch-dev/jabref/statuses/{sha}","languages_url":"https://api.github.com/repos/bartsch-dev/jabref/languages","stargazers_url":"https://api.github.com/repos/bartsch-dev/jabref/stargazers","contributors_url":"https://api.github.com/repos/bartsch-dev/jabref/contributors","subscribers_url":"https://api.github.com/repos/bartsch-dev/jabref/subscribers","subscription_url":"https://api.github.com/repos/bartsch-dev/jabref/subscription","commits_url":"https://api.github.com/repos/bartsch-dev/jabref/commits{/sha}","git_commits_url":"https://api.github.com/repos/bartsch-dev/jabref/git/commits{/sha}","comments_url":"https://api.github.com/repos/bartsch-dev/jabref/comments{/number}","issue_comment_url":"https://api.github.com/repos/bartsch-dev/jabref/issues/comments{/number}","contents_url":"https://api.github.com/repos/bartsch-dev/jabref/contents/{+path}","compare_url":"https://api.github.com/repos/bartsch-dev/jabref/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bartsch-dev/jabref/merges","archive_url":"https://api.github.com/repos/bartsch-dev/jabref/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bartsch-dev/jabref/downloads","issues_url":"https://api.github.com/repos/bartsch-dev/jabref/issues{/number}","pulls_url":"https://api.github.com/repos/bartsch-dev/jabref/pulls{/number}","milestones_url":"https://api.github.com/repos/bartsch-dev/jabref/milestones{/number}","notifications_url":"https://api.github.com/repos/bartsch-dev/jabref/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bartsch-dev/jabref/labels{/name}","releases_url":"https://api.github.com/repos/bartsch-dev/jabref/releases{/id}","deployments_url":"https://api.github.com/repos/bartsch-dev/jabref/deployments","created_at":"2015-11-10T11:01:40Z","updated_at":"2016-01-11T14:41:19Z","pushed_at":"2016-09-10T19:37:41Z","git_url":"git://github.com/bartsch-dev/jabref.git","ssh_url":"git@github.com:bartsch-dev/jabref.git","clone_url":"https://github.com/bartsch-dev/jabref.git","svn_url":"https://github.com/bartsch-dev/jabref","homepage":"http://jabref.sourceforge.net/","size":90152,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"JabRef:master","ref":"master","sha":"71a215d0ef2b213648d44f495527e652988648b5","user":{"login":"JabRef","id":3914421,"avatar_url":"https://avatars.githubusercontent.com/u/3914421?v=3","gravatar_id":"","url":"https://api.github.com/users/JabRef","html_url":"https://github.com/JabRef","followers_url":"https://api.github.com/users/JabRef/followers","following_url":"https://api.github.com/users/JabRef/following{/other_user}","gists_url":"https://api.github.com/users/JabRef/gists{/gist_id}","starred_url":"https://api.github.com/users/JabRef/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JabRef/subscriptions","organizations_url":"https://api.github.com/users/JabRef/orgs","repos_url":"https://api.github.com/users/JabRef/repos","events_url":"https://api.github.com/users/JabRef/events{/privacy}","received_events_url":"https://api.github.com/users/JabRef/received_events","type":"Organization","site_admin":false},"repo":{"id":17634071,"name":"jabref","full_name":"JabRef/jabref","owner":{"login":"JabRef","id":3914421,"avatar_url":"https://avatars.githubusercontent.com/u/3914421?v=3","gravatar_id":"","url":"https://api.github.com/users/JabRef","html_url":"https://github.com/JabRef","followers_url":"https://api.github.com/users/JabRef/followers","following_url":"https://api.github.com/users/JabRef/following{/other_user}","gists_url":"https://api.github.com/users/JabRef/gists{/gist_id}","starred_url":"https://api.github.com/users/JabRef/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JabRef/subscriptions","organizations_url":"https://api.github.com/users/JabRef/orgs","repos_url":"https://api.github.com/users/JabRef/repos","events_url":"https://api.github.com/users/JabRef/events{/privacy}","received_events_url":"https://api.github.com/users/JabRef/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/JabRef/jabref","description":"Graphical Java application for managing BibTeX and Biblatex (.bib) databases","fork":false,"url":"https://api.github.com/repos/JabRef/jabref","forks_url":"https://api.github.com/repos/JabRef/jabref/forks","keys_url":"https://api.github.com/repos/JabRef/jabref/keys{/key_id}","collaborators_url":"https://api.github.com/repos/JabRef/jabref/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/JabRef/jabref/teams","hooks_url":"https://api.github.com/repos/JabRef/jabref/hooks","issue_events_url":"https://api.github.com/repos/JabRef/jabref/issues/events{/number}","events_url":"https://api.github.com/repos/JabRef/jabref/events","assignees_url":"https://api.github.com/repos/JabRef/jabref/assignees{/user}","branches_url":"https://api.github.com/repos/JabRef/jabref/branches{/branch}","tags_url":"https://api.github.com/repos/JabRef/jabref/tags","blobs_url":"https://api.github.com/repos/JabRef/jabref/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/JabRef/jabref/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/JabRef/jabref/git/refs{/sha}","trees_url":"https://api.github.com/repos/JabRef/jabref/git/trees{/sha}","statuses_url":"https://api.github.com/repos/JabRef/jabref/statuses/{sha}","languages_url":"https://api.github.com/repos/JabRef/jabref/languages","stargazers_url":"https://api.github.com/repos/JabRef/jabref/stargazers","contributors_url":"https://api.github.com/repos/JabRef/jabref/contributors","subscribers_url":"https://api.github.com/repos/JabRef/jabref/subscribers","subscription_url":"https://api.github.com/repos/JabRef/jabref/subscription","commits_url":"https://api.github.com/repos/JabRef/jabref/commits{/sha}","git_commits_url":"https://api.github.com/repos/JabRef/jabref/git/commits{/sha}","comments_url":"https://api.github.com/repos/JabRef/jabref/comments{/number}","issue_comment_url":"https://api.github.com/repos/JabRef/jabref/issues/comments{/number}","contents_url":"https://api.github.com/repos/JabRef/jabref/contents/{+path}","compare_url":"https://api.github.com/repos/JabRef/jabref/compare/{base}...{head}","merges_url":"https://api.github.com/repos/JabRef/jabref/merges","archive_url":"https://api.github.com/repos/JabRef/jabref/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/JabRef/jabref/downloads","issues_url":"https://api.github.com/repos/JabRef/jabref/issues{/number}","pulls_url":"https://api.github.com/repos/JabRef/jabref/pulls{/number}","milestones_url":"https://api.github.com/repos/JabRef/jabref/milestones{/number}","notifications_url":"https://api.github.com/repos/JabRef/jabref/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/JabRef/jabref/labels{/name}","releases_url":"https://api.github.com/repos/JabRef/jabref/releases{/id}","deployments_url":"https://api.github.com/repos/JabRef/jabref/deployments","created_at":"2014-03-11T14:48:42Z","updated_at":"2016-09-09T03:52:54Z","pushed_at":"2016-09-10T19:37:43Z","git_url":"git://github.com/JabRef/jabref.git","ssh_url":"git@github.com:JabRef/jabref.git","clone_url":"https://github.com/JabRef/jabref.git","svn_url":"https://github.com/JabRef/jabref","homepage":"http://www.jabref.org/","size":98905,"stargazers_count":346,"watchers_count":346,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":256,"mirror_url":null,"open_issues_count":212,"forks":256,"open_issues":212,"watchers":346,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/JabRef/jabref/pulls/1928"},"html":{"href":"https://github.com/JabRef/jabref/pull/1928"},"issue":{"href":"https://api.github.com/repos/JabRef/jabref/issues/1928"},"comments":{"href":"https://api.github.com/repos/JabRef/jabref/issues/1928/comments"},"review_comments":{"href":"https://api.github.com/repos/JabRef/jabref/pulls/1928/comments"},"review_comment":{"href":"https://api.github.com/repos/JabRef/jabref/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/JabRef/jabref/pulls/1928/commits"},"statuses":{"href":"https://api.github.com/repos/JabRef/jabref/statuses/c051879c3db74d009fd949954da018a81acf6be6"}}}}
{"actor":{"display_login":"bartsch-dev"}}