{"action":"created","comment":{"url":"https://api.github.com/repos/inspirehep/inspire-next/pulls/comments/43862198","id":43862198,"diff_hunk":"@@ -44,8 +44,188 @@ require(['jquery', 'bootstrap'], function($) {\n         $(\"#download\" + data.recid).attr(\"href\", \"/formatter/download-latex/latex_us/\" + data.recid)\n       });\n     });\n+\n   })\n \n+  $('#formats-dropdown-menu > li').each(function(index) {\n+    $(this).on(\"click\", function() {\n+      $(\"#dropdown-export\").html($(this).text() + ' <span class=\"caret\"></span>');\n+    });\n+  });\n+\n+  var sList = [];\n+  $('#checkbox-select-all').click(function(event) {\n+    if (this.checked) {\n+      $('.checkbox-results').each(function() {\n+        this.checked = true;\n+        sList.push($(this).attr(\"id\"));\n+      });\n+\n+      if (parseInt($('#total-results').text()) > 5000) {\n+        $('#results-panel').after('<div class=\"panel panel-default\" id=\"info-message\">' +\n+          '<div class=\"panel-body\" >You have selected ' + filter_list(sList).length + ' records of this page. <a class=\"pointer\" id=\"select-all-records\">' +\n+          'Select 5000 records (Maximum limit).</a></div></div>');\n+      } else {\n+        $('#results-panel').after('<div class=\"panel panel-default\" id=\"info-message\">' +\n+          '<div class=\"panel-body\" >You have selected ' + filter_list(sList).length + ' records of this page. <a class=\"pointer\" id=\"select-all-records\">' +\n+          'Select all ' + $('#total-results').text() + ' results.</a></div></div>');\n+      }\n+\n+      $('#select-all-records').on('click', function() {\n+        $('#info-message').remove();\n+        $.get(\"/search?of=id&rg=\" + $('#total-results').text(), function(data, status) {","path":"inspire/base/static/js/search/search_results.js","position":33,"original_position":33,"commit_id":"c4ac68a9ca94fd5340c3d6501a48932313b47f65","original_commit_id":"c4ac68a9ca94fd5340c3d6501a48932313b47f65","user":{"login":"jmartinm","id":580727,"avatar_url":"https://avatars.githubusercontent.com/u/580727?v=3","gravatar_id":"","url":"https://api.github.com/users/jmartinm","html_url":"https://github.com/jmartinm","followers_url":"https://api.github.com/users/jmartinm/followers","following_url":"https://api.github.com/users/jmartinm/following{/other_user}","gists_url":"https://api.github.com/users/jmartinm/gists{/gist_id}","starred_url":"https://api.github.com/users/jmartinm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmartinm/subscriptions","organizations_url":"https://api.github.com/users/jmartinm/orgs","repos_url":"https://api.github.com/users/jmartinm/repos","events_url":"https://api.github.com/users/jmartinm/events{/privacy}","received_events_url":"https://api.github.com/users/jmartinm/received_events","type":"User","site_admin":false},"body":"```\r\n/search?of=id&rg= EXPORT_LIMIT\r\n```","created_at":"2015-11-04T10:14:15Z","updated_at":"2015-11-04T10:14:15Z","html_url":"https://github.com/inspirehep/inspire-next/pull/450#discussion_r43862198","pull_request_url":"https://api.github.com/repos/inspirehep/inspire-next/pulls/450","_links":{"self":{"href":"https://api.github.com/repos/inspirehep/inspire-next/pulls/comments/43862198"},"html":{"href":"https://github.com/inspirehep/inspire-next/pull/450#discussion_r43862198"},"pull_request":{"href":"https://api.github.com/repos/inspirehep/inspire-next/pulls/450"}}},"pull_request":{"url":"https://api.github.com/repos/inspirehep/inspire-next/pulls/450","id":49168313,"html_url":"https://github.com/inspirehep/inspire-next/pull/450","diff_url":"https://github.com/inspirehep/inspire-next/pull/450.diff","patch_url":"https://github.com/inspirehep/inspire-next/pull/450.patch","issue_url":"https://api.github.com/repos/inspirehep/inspire-next/issues/450","number":450,"state":"open","locked":false,"title":"formatter: implements export-as functionality","user":{"login":"ioannistsanaktsidis","id":7301890,"avatar_url":"https://avatars.githubusercontent.com/u/7301890?v=3","gravatar_id":"","url":"https://api.github.com/users/ioannistsanaktsidis","html_url":"https://github.com/ioannistsanaktsidis","followers_url":"https://api.github.com/users/ioannistsanaktsidis/followers","following_url":"https://api.github.com/users/ioannistsanaktsidis/following{/other_user}","gists_url":"https://api.github.com/users/ioannistsanaktsidis/gists{/gist_id}","starred_url":"https://api.github.com/users/ioannistsanaktsidis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ioannistsanaktsidis/subscriptions","organizations_url":"https://api.github.com/users/ioannistsanaktsidis/orgs","repos_url":"https://api.github.com/users/ioannistsanaktsidis/repos","events_url":"https://api.github.com/users/ioannistsanaktsidis/events{/privacy}","received_events_url":"https://api.github.com/users/ioannistsanaktsidis/received_events","type":"User","site_admin":false},"body":"* Implements select all results functionality.\r\n\r\nSigned-off-by: Ioannis Tsanaktsidis <ioannis.tsanaktsidis@cern.ch>","created_at":"2015-10-29T16:56:25Z","updated_at":"2015-11-04T10:14:15Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6cae342136cde6d3ad51dde9e579628ecf76acfb","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/inspirehep/inspire-next/pulls/450/commits","review_comments_url":"https://api.github.com/repos/inspirehep/inspire-next/pulls/450/comments","review_comment_url":"https://api.github.com/repos/inspirehep/inspire-next/pulls/comments{/number}","comments_url":"https://api.github.com/repos/inspirehep/inspire-next/issues/450/comments","statuses_url":"https://api.github.com/repos/inspirehep/inspire-next/statuses/c4ac68a9ca94fd5340c3d6501a48932313b47f65","head":{"label":"ioannistsanaktsidis:search-results-checkbox","ref":"search-results-checkbox","sha":"c4ac68a9ca94fd5340c3d6501a48932313b47f65","user":{"login":"ioannistsanaktsidis","id":7301890,"avatar_url":"https://avatars.githubusercontent.com/u/7301890?v=3","gravatar_id":"","url":"https://api.github.com/users/ioannistsanaktsidis","html_url":"https://github.com/ioannistsanaktsidis","followers_url":"https://api.github.com/users/ioannistsanaktsidis/followers","following_url":"https://api.github.com/users/ioannistsanaktsidis/following{/other_user}","gists_url":"https://api.github.com/users/ioannistsanaktsidis/gists{/gist_id}","starred_url":"https://api.github.com/users/ioannistsanaktsidis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ioannistsanaktsidis/subscriptions","organizations_url":"https://api.github.com/users/ioannistsanaktsidis/orgs","repos_url":"https://api.github.com/users/ioannistsanaktsidis/repos","events_url":"https://api.github.com/users/ioannistsanaktsidis/events{/privacy}","received_events_url":"https://api.github.com/users/ioannistsanaktsidis/received_events","type":"User","site_admin":false},"repo":{"id":32156383,"name":"inspire-next","full_name":"ioannistsanaktsidis/inspire-next","owner":{"login":"ioannistsanaktsidis","id":7301890,"avatar_url":"https://avatars.githubusercontent.com/u/7301890?v=3","gravatar_id":"","url":"https://api.github.com/users/ioannistsanaktsidis","html_url":"https://github.com/ioannistsanaktsidis","followers_url":"https://api.github.com/users/ioannistsanaktsidis/followers","following_url":"https://api.github.com/users/ioannistsanaktsidis/following{/other_user}","gists_url":"https://api.github.com/users/ioannistsanaktsidis/gists{/gist_id}","starred_url":"https://api.github.com/users/ioannistsanaktsidis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ioannistsanaktsidis/subscriptions","organizations_url":"https://api.github.com/users/ioannistsanaktsidis/orgs","repos_url":"https://api.github.com/users/ioannistsanaktsidis/repos","events_url":"https://api.github.com/users/ioannistsanaktsidis/events{/privacy}","received_events_url":"https://api.github.com/users/ioannistsanaktsidis/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ioannistsanaktsidis/inspire-next","description":"INSPIRE overlay repository to be used with Invenio's NEXT branch","fork":true,"url":"https://api.github.com/repos/ioannistsanaktsidis/inspire-next","forks_url":"https://api.github.com/repos/ioannistsanaktsidis/inspire-next/forks","keys_url":"https://api.github.com/repos/ioannistsanaktsidis/inspire-next/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ioannistsanaktsidis/inspire-next/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ioannistsanaktsidis/inspire-next/teams","hooks_url":"https://api.github.com/repos/ioannistsanaktsidis/inspire-next/hooks","issue_events_url":"https://api.github.com/repos/ioannistsanaktsidis/inspire-next/issues/events{/number}","events_url":"https://api.github.com/repos/ioannistsanaktsidis/inspire-next/events","assignees_url":"https://api.github.com/repos/ioannistsanaktsidis/inspire-next/assignees{/user}","branches_url":"https://api.github.com/repos/ioannistsanaktsidis/inspire-next/branches{/branch}","tags_url":"https://api.github.com/repos/ioannistsanaktsidis/inspire-next/tags","blobs_url":"https://api.github.com/repos/ioannistsanaktsidis/inspire-next/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ioannistsanaktsidis/inspire-next/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ioannistsanaktsidis/inspire-next/git/refs{/sha}","trees_url":"https://api.github.com/repos/ioannistsanaktsidis/inspire-next/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ioannistsanaktsidis/inspire-next/statuses/{sha}","languages_url":"https://api.github.com/repos/ioannistsanaktsidis/inspire-next/languages","stargazers_url":"https://api.github.com/repos/ioannistsanaktsidis/inspire-next/stargazers","contributors_url":"https://api.github.com/repos/ioannistsanaktsidis/inspire-next/contributors","subscribers_url":"https://api.github.com/repos/ioannistsanaktsidis/inspire-next/subscribers","subscription_url":"https://api.github.com/repos/ioannistsanaktsidis/inspire-next/subscription","commits_url":"https://api.github.com/repos/ioannistsanaktsidis/inspire-next/commits{/sha}","git_commits_url":"https://api.github.com/repos/ioannistsanaktsidis/inspire-next/git/commits{/sha}","comments_url":"https://api.github.com/repos/ioannistsanaktsidis/inspire-next/comments{/number}","issue_comment_url":"https://api.github.com/repos/ioannistsanaktsidis/inspire-next/issues/comments{/number}","contents_url":"https://api.github.com/repos/ioannistsanaktsidis/inspire-next/contents/{+path}","compare_url":"https://api.github.com/repos/ioannistsanaktsidis/inspire-next/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ioannistsanaktsidis/inspire-next/merges","archive_url":"https://api.github.com/repos/ioannistsanaktsidis/inspire-next/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ioannistsanaktsidis/inspire-next/downloads","issues_url":"https://api.github.com/repos/ioannistsanaktsidis/inspire-next/issues{/number}","pulls_url":"https://api.github.com/repos/ioannistsanaktsidis/inspire-next/pulls{/number}","milestones_url":"https://api.github.com/repos/ioannistsanaktsidis/inspire-next/milestones{/number}","notifications_url":"https://api.github.com/repos/ioannistsanaktsidis/inspire-next/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ioannistsanaktsidis/inspire-next/labels{/name}","releases_url":"https://api.github.com/repos/ioannistsanaktsidis/inspire-next/releases{/id}","created_at":"2015-03-13T13:08:14Z","updated_at":"2015-05-19T12:57:48Z","pushed_at":"2015-11-02T14:45:39Z","git_url":"git://github.com/ioannistsanaktsidis/inspire-next.git","ssh_url":"git@github.com:ioannistsanaktsidis/inspire-next.git","clone_url":"https://github.com/ioannistsanaktsidis/inspire-next.git","svn_url":"https://github.com/ioannistsanaktsidis/inspire-next","homepage":null,"size":20286,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"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":"inspirehep:master","ref":"master","sha":"3dab446ea8ff9776830954b098461a956fd93271","user":{"login":"inspirehep","id":356664,"avatar_url":"https://avatars.githubusercontent.com/u/356664?v=3","gravatar_id":"","url":"https://api.github.com/users/inspirehep","html_url":"https://github.com/inspirehep","followers_url":"https://api.github.com/users/inspirehep/followers","following_url":"https://api.github.com/users/inspirehep/following{/other_user}","gists_url":"https://api.github.com/users/inspirehep/gists{/gist_id}","starred_url":"https://api.github.com/users/inspirehep/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/inspirehep/subscriptions","organizations_url":"https://api.github.com/users/inspirehep/orgs","repos_url":"https://api.github.com/users/inspirehep/repos","events_url":"https://api.github.com/users/inspirehep/events{/privacy}","received_events_url":"https://api.github.com/users/inspirehep/received_events","type":"Organization","site_admin":false},"repo":{"id":15221515,"name":"inspire-next","full_name":"inspirehep/inspire-next","owner":{"login":"inspirehep","id":356664,"avatar_url":"https://avatars.githubusercontent.com/u/356664?v=3","gravatar_id":"","url":"https://api.github.com/users/inspirehep","html_url":"https://github.com/inspirehep","followers_url":"https://api.github.com/users/inspirehep/followers","following_url":"https://api.github.com/users/inspirehep/following{/other_user}","gists_url":"https://api.github.com/users/inspirehep/gists{/gist_id}","starred_url":"https://api.github.com/users/inspirehep/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/inspirehep/subscriptions","organizations_url":"https://api.github.com/users/inspirehep/orgs","repos_url":"https://api.github.com/users/inspirehep/repos","events_url":"https://api.github.com/users/inspirehep/events{/privacy}","received_events_url":"https://api.github.com/users/inspirehep/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/inspirehep/inspire-next","description":"INSPIRE overlay repository to be used with https://github.com/inspirehep/invenio@labs branch","fork":false,"url":"https://api.github.com/repos/inspirehep/inspire-next","forks_url":"https://api.github.com/repos/inspirehep/inspire-next/forks","keys_url":"https://api.github.com/repos/inspirehep/inspire-next/keys{/key_id}","collaborators_url":"https://api.github.com/repos/inspirehep/inspire-next/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/inspirehep/inspire-next/teams","hooks_url":"https://api.github.com/repos/inspirehep/inspire-next/hooks","issue_events_url":"https://api.github.com/repos/inspirehep/inspire-next/issues/events{/number}","events_url":"https://api.github.com/repos/inspirehep/inspire-next/events","assignees_url":"https://api.github.com/repos/inspirehep/inspire-next/assignees{/user}","branches_url":"https://api.github.com/repos/inspirehep/inspire-next/branches{/branch}","tags_url":"https://api.github.com/repos/inspirehep/inspire-next/tags","blobs_url":"https://api.github.com/repos/inspirehep/inspire-next/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/inspirehep/inspire-next/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/inspirehep/inspire-next/git/refs{/sha}","trees_url":"https://api.github.com/repos/inspirehep/inspire-next/git/trees{/sha}","statuses_url":"https://api.github.com/repos/inspirehep/inspire-next/statuses/{sha}","languages_url":"https://api.github.com/repos/inspirehep/inspire-next/languages","stargazers_url":"https://api.github.com/repos/inspirehep/inspire-next/stargazers","contributors_url":"https://api.github.com/repos/inspirehep/inspire-next/contributors","subscribers_url":"https://api.github.com/repos/inspirehep/inspire-next/subscribers","subscription_url":"https://api.github.com/repos/inspirehep/inspire-next/subscription","commits_url":"https://api.github.com/repos/inspirehep/inspire-next/commits{/sha}","git_commits_url":"https://api.github.com/repos/inspirehep/inspire-next/git/commits{/sha}","comments_url":"https://api.github.com/repos/inspirehep/inspire-next/comments{/number}","issue_comment_url":"https://api.github.com/repos/inspirehep/inspire-next/issues/comments{/number}","contents_url":"https://api.github.com/repos/inspirehep/inspire-next/contents/{+path}","compare_url":"https://api.github.com/repos/inspirehep/inspire-next/compare/{base}...{head}","merges_url":"https://api.github.com/repos/inspirehep/inspire-next/merges","archive_url":"https://api.github.com/repos/inspirehep/inspire-next/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/inspirehep/inspire-next/downloads","issues_url":"https://api.github.com/repos/inspirehep/inspire-next/issues{/number}","pulls_url":"https://api.github.com/repos/inspirehep/inspire-next/pulls{/number}","milestones_url":"https://api.github.com/repos/inspirehep/inspire-next/milestones{/number}","notifications_url":"https://api.github.com/repos/inspirehep/inspire-next/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/inspirehep/inspire-next/labels{/name}","releases_url":"https://api.github.com/repos/inspirehep/inspire-next/releases{/id}","created_at":"2013-12-16T09:11:58Z","updated_at":"2015-10-13T09:48:55Z","pushed_at":"2015-11-04T09:29:56Z","git_url":"git://github.com/inspirehep/inspire-next.git","ssh_url":"git@github.com:inspirehep/inspire-next.git","clone_url":"https://github.com/inspirehep/inspire-next.git","svn_url":"https://github.com/inspirehep/inspire-next","homepage":"https://labs.inspirehep.net","size":32008,"stargazers_count":8,"watchers_count":8,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":23,"mirror_url":null,"open_issues_count":53,"forks":23,"open_issues":53,"watchers":8,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/inspirehep/inspire-next/pulls/450"},"html":{"href":"https://github.com/inspirehep/inspire-next/pull/450"},"issue":{"href":"https://api.github.com/repos/inspirehep/inspire-next/issues/450"},"comments":{"href":"https://api.github.com/repos/inspirehep/inspire-next/issues/450/comments"},"review_comments":{"href":"https://api.github.com/repos/inspirehep/inspire-next/pulls/450/comments"},"review_comment":{"href":"https://api.github.com/repos/inspirehep/inspire-next/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/inspirehep/inspire-next/pulls/450/commits"},"statuses":{"href":"https://api.github.com/repos/inspirehep/inspire-next/statuses/c4ac68a9ca94fd5340c3d6501a48932313b47f65"}}}}