{"action":"created","comment":{"url":"https://api.github.com/repos/sul-dlss/spotlight-dor-resources/pulls/comments/45264502","id":45264502,"diff_hunk":"@@ -562,6 +405,21 @@\n   end # add_folder_name\n   # rubocop:enable Metrics/LineLength\n \n+  let(:mods_note_plain) do\n+    Nokogiri::XML <<-EOF\n+      <mods xmlns=\"#{Mods::MODS_NS}\">\n+        <note>#{example}</note>\n+      </mods>\n+    EOF\n+  end\n+  let(:mods_note_preferred_citation) do\n+    Nokogiri::XML <<-EOF\n+      <mods xmlns=\"#{Mods::MODS_NS}\">\n+        <note type=\"preferred citation\">#{example}</note>\n+      </mods>\n+    EOF\n+  end","path":"spec/lib/spotlight/dor/indexer_spec.rb","position":451,"original_position":451,"commit_id":"d3a9d56ae541c7fa5471549d0e216f47ba3561df","original_commit_id":"d3a9d56ae541c7fa5471549d0e216f47ba3561df","user":{"login":"ndushay","id":96775,"avatar_url":"https://avatars.githubusercontent.com/u/96775?v=3","gravatar_id":"","url":"https://api.github.com/users/ndushay","html_url":"https://github.com/ndushay","followers_url":"https://api.github.com/users/ndushay/followers","following_url":"https://api.github.com/users/ndushay/following{/other_user}","gists_url":"https://api.github.com/users/ndushay/gists{/gist_id}","starred_url":"https://api.github.com/users/ndushay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ndushay/subscriptions","organizations_url":"https://api.github.com/users/ndushay/orgs","repos_url":"https://api.github.com/users/ndushay/repos","events_url":"https://api.github.com/users/ndushay/events{/privacy}","received_events_url":"https://api.github.com/users/ndushay/received_events","type":"User","site_admin":false},"body":"I think this should live above or inside the add_folder_name stuff as that's what it is related to.","created_at":"2015-11-18T21:40:18Z","updated_at":"2015-11-18T21:40:18Z","html_url":"https://github.com/sul-dlss/spotlight-dor-resources/pull/45#discussion_r45264502","pull_request_url":"https://api.github.com/repos/sul-dlss/spotlight-dor-resources/pulls/45","_links":{"self":{"href":"https://api.github.com/repos/sul-dlss/spotlight-dor-resources/pulls/comments/45264502"},"html":{"href":"https://github.com/sul-dlss/spotlight-dor-resources/pull/45#discussion_r45264502"},"pull_request":{"href":"https://api.github.com/repos/sul-dlss/spotlight-dor-resources/pulls/45"}}},"pull_request":{"url":"https://api.github.com/repos/sul-dlss/spotlight-dor-resources/pulls/45","id":51117990,"html_url":"https://github.com/sul-dlss/spotlight-dor-resources/pull/45","diff_url":"https://github.com/sul-dlss/spotlight-dor-resources/pull/45.diff","patch_url":"https://github.com/sul-dlss/spotlight-dor-resources/pull/45.patch","issue_url":"https://api.github.com/repos/sul-dlss/spotlight-dor-resources/issues/45","number":45,"state":"open","locked":false,"title":"Refactored physical location methods and tests","user":{"login":"lmcglohon","id":3585151,"avatar_url":"https://avatars.githubusercontent.com/u/3585151?v=3","gravatar_id":"","url":"https://api.github.com/users/lmcglohon","html_url":"https://github.com/lmcglohon","followers_url":"https://api.github.com/users/lmcglohon/followers","following_url":"https://api.github.com/users/lmcglohon/following{/other_user}","gists_url":"https://api.github.com/users/lmcglohon/gists{/gist_id}","starred_url":"https://api.github.com/users/lmcglohon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lmcglohon/subscriptions","organizations_url":"https://api.github.com/users/lmcglohon/orgs","repos_url":"https://api.github.com/users/lmcglohon/repos","events_url":"https://api.github.com/users/lmcglohon/events{/privacy}","received_events_url":"https://api.github.com/users/lmcglohon/received_events","type":"User","site_admin":false},"body":"@ndushay ","created_at":"2015-11-18T17:51:52Z","updated_at":"2015-11-18T21:40:18Z","closed_at":null,"merged_at":null,"merge_commit_sha":"19de72d42b63d6183d730b96036c42dca0664509","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/sul-dlss/spotlight-dor-resources/pulls/45/commits","review_comments_url":"https://api.github.com/repos/sul-dlss/spotlight-dor-resources/pulls/45/comments","review_comment_url":"https://api.github.com/repos/sul-dlss/spotlight-dor-resources/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sul-dlss/spotlight-dor-resources/issues/45/comments","statuses_url":"https://api.github.com/repos/sul-dlss/spotlight-dor-resources/statuses/d3a9d56ae541c7fa5471549d0e216f47ba3561df","head":{"label":"sul-dlss:physical_location","ref":"physical_location","sha":"d3a9d56ae541c7fa5471549d0e216f47ba3561df","user":{"login":"sul-dlss","id":230583,"avatar_url":"https://avatars.githubusercontent.com/u/230583?v=3","gravatar_id":"","url":"https://api.github.com/users/sul-dlss","html_url":"https://github.com/sul-dlss","followers_url":"https://api.github.com/users/sul-dlss/followers","following_url":"https://api.github.com/users/sul-dlss/following{/other_user}","gists_url":"https://api.github.com/users/sul-dlss/gists{/gist_id}","starred_url":"https://api.github.com/users/sul-dlss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sul-dlss/subscriptions","organizations_url":"https://api.github.com/users/sul-dlss/orgs","repos_url":"https://api.github.com/users/sul-dlss/repos","events_url":"https://api.github.com/users/sul-dlss/events{/privacy}","received_events_url":"https://api.github.com/users/sul-dlss/received_events","type":"Organization","site_admin":false},"repo":{"id":17453060,"name":"spotlight-dor-resources","full_name":"sul-dlss/spotlight-dor-resources","owner":{"login":"sul-dlss","id":230583,"avatar_url":"https://avatars.githubusercontent.com/u/230583?v=3","gravatar_id":"","url":"https://api.github.com/users/sul-dlss","html_url":"https://github.com/sul-dlss","followers_url":"https://api.github.com/users/sul-dlss/followers","following_url":"https://api.github.com/users/sul-dlss/following{/other_user}","gists_url":"https://api.github.com/users/sul-dlss/gists{/gist_id}","starred_url":"https://api.github.com/users/sul-dlss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sul-dlss/subscriptions","organizations_url":"https://api.github.com/users/sul-dlss/orgs","repos_url":"https://api.github.com/users/sul-dlss/repos","events_url":"https://api.github.com/users/sul-dlss/events{/privacy}","received_events_url":"https://api.github.com/users/sul-dlss/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/sul-dlss/spotlight-dor-resources","description":"Harvest Stanford DOR resources into a Spotlight exhibit","fork":false,"url":"https://api.github.com/repos/sul-dlss/spotlight-dor-resources","forks_url":"https://api.github.com/repos/sul-dlss/spotlight-dor-resources/forks","keys_url":"https://api.github.com/repos/sul-dlss/spotlight-dor-resources/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sul-dlss/spotlight-dor-resources/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sul-dlss/spotlight-dor-resources/teams","hooks_url":"https://api.github.com/repos/sul-dlss/spotlight-dor-resources/hooks","issue_events_url":"https://api.github.com/repos/sul-dlss/spotlight-dor-resources/issues/events{/number}","events_url":"https://api.github.com/repos/sul-dlss/spotlight-dor-resources/events","assignees_url":"https://api.github.com/repos/sul-dlss/spotlight-dor-resources/assignees{/user}","branches_url":"https://api.github.com/repos/sul-dlss/spotlight-dor-resources/branches{/branch}","tags_url":"https://api.github.com/repos/sul-dlss/spotlight-dor-resources/tags","blobs_url":"https://api.github.com/repos/sul-dlss/spotlight-dor-resources/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sul-dlss/spotlight-dor-resources/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sul-dlss/spotlight-dor-resources/git/refs{/sha}","trees_url":"https://api.github.com/repos/sul-dlss/spotlight-dor-resources/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sul-dlss/spotlight-dor-resources/statuses/{sha}","languages_url":"https://api.github.com/repos/sul-dlss/spotlight-dor-resources/languages","stargazers_url":"https://api.github.com/repos/sul-dlss/spotlight-dor-resources/stargazers","contributors_url":"https://api.github.com/repos/sul-dlss/spotlight-dor-resources/contributors","subscribers_url":"https://api.github.com/repos/sul-dlss/spotlight-dor-resources/subscribers","subscription_url":"https://api.github.com/repos/sul-dlss/spotlight-dor-resources/subscription","commits_url":"https://api.github.com/repos/sul-dlss/spotlight-dor-resources/commits{/sha}","git_commits_url":"https://api.github.com/repos/sul-dlss/spotlight-dor-resources/git/commits{/sha}","comments_url":"https://api.github.com/repos/sul-dlss/spotlight-dor-resources/comments{/number}","issue_comment_url":"https://api.github.com/repos/sul-dlss/spotlight-dor-resources/issues/comments{/number}","contents_url":"https://api.github.com/repos/sul-dlss/spotlight-dor-resources/contents/{+path}","compare_url":"https://api.github.com/repos/sul-dlss/spotlight-dor-resources/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sul-dlss/spotlight-dor-resources/merges","archive_url":"https://api.github.com/repos/sul-dlss/spotlight-dor-resources/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sul-dlss/spotlight-dor-resources/downloads","issues_url":"https://api.github.com/repos/sul-dlss/spotlight-dor-resources/issues{/number}","pulls_url":"https://api.github.com/repos/sul-dlss/spotlight-dor-resources/pulls{/number}","milestones_url":"https://api.github.com/repos/sul-dlss/spotlight-dor-resources/milestones{/number}","notifications_url":"https://api.github.com/repos/sul-dlss/spotlight-dor-resources/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sul-dlss/spotlight-dor-resources/labels{/name}","releases_url":"https://api.github.com/repos/sul-dlss/spotlight-dor-resources/releases{/id}","created_at":"2014-03-05T19:55:10Z","updated_at":"2015-04-20T21:28:05Z","pushed_at":"2015-11-18T19:51:23Z","git_url":"git://github.com/sul-dlss/spotlight-dor-resources.git","ssh_url":"git@github.com:sul-dlss/spotlight-dor-resources.git","clone_url":"https://github.com/sul-dlss/spotlight-dor-resources.git","svn_url":"https://github.com/sul-dlss/spotlight-dor-resources","homepage":"","size":243,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":1,"default_branch":"master"}},"base":{"label":"sul-dlss:master","ref":"master","sha":"45af2f948ffbd7e737f27558c4f6e77a52568610","user":{"login":"sul-dlss","id":230583,"avatar_url":"https://avatars.githubusercontent.com/u/230583?v=3","gravatar_id":"","url":"https://api.github.com/users/sul-dlss","html_url":"https://github.com/sul-dlss","followers_url":"https://api.github.com/users/sul-dlss/followers","following_url":"https://api.github.com/users/sul-dlss/following{/other_user}","gists_url":"https://api.github.com/users/sul-dlss/gists{/gist_id}","starred_url":"https://api.github.com/users/sul-dlss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sul-dlss/subscriptions","organizations_url":"https://api.github.com/users/sul-dlss/orgs","repos_url":"https://api.github.com/users/sul-dlss/repos","events_url":"https://api.github.com/users/sul-dlss/events{/privacy}","received_events_url":"https://api.github.com/users/sul-dlss/received_events","type":"Organization","site_admin":false},"repo":{"id":17453060,"name":"spotlight-dor-resources","full_name":"sul-dlss/spotlight-dor-resources","owner":{"login":"sul-dlss","id":230583,"avatar_url":"https://avatars.githubusercontent.com/u/230583?v=3","gravatar_id":"","url":"https://api.github.com/users/sul-dlss","html_url":"https://github.com/sul-dlss","followers_url":"https://api.github.com/users/sul-dlss/followers","following_url":"https://api.github.com/users/sul-dlss/following{/other_user}","gists_url":"https://api.github.com/users/sul-dlss/gists{/gist_id}","starred_url":"https://api.github.com/users/sul-dlss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sul-dlss/subscriptions","organizations_url":"https://api.github.com/users/sul-dlss/orgs","repos_url":"https://api.github.com/users/sul-dlss/repos","events_url":"https://api.github.com/users/sul-dlss/events{/privacy}","received_events_url":"https://api.github.com/users/sul-dlss/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/sul-dlss/spotlight-dor-resources","description":"Harvest Stanford DOR resources into a Spotlight exhibit","fork":false,"url":"https://api.github.com/repos/sul-dlss/spotlight-dor-resources","forks_url":"https://api.github.com/repos/sul-dlss/spotlight-dor-resources/forks","keys_url":"https://api.github.com/repos/sul-dlss/spotlight-dor-resources/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sul-dlss/spotlight-dor-resources/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sul-dlss/spotlight-dor-resources/teams","hooks_url":"https://api.github.com/repos/sul-dlss/spotlight-dor-resources/hooks","issue_events_url":"https://api.github.com/repos/sul-dlss/spotlight-dor-resources/issues/events{/number}","events_url":"https://api.github.com/repos/sul-dlss/spotlight-dor-resources/events","assignees_url":"https://api.github.com/repos/sul-dlss/spotlight-dor-resources/assignees{/user}","branches_url":"https://api.github.com/repos/sul-dlss/spotlight-dor-resources/branches{/branch}","tags_url":"https://api.github.com/repos/sul-dlss/spotlight-dor-resources/tags","blobs_url":"https://api.github.com/repos/sul-dlss/spotlight-dor-resources/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sul-dlss/spotlight-dor-resources/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sul-dlss/spotlight-dor-resources/git/refs{/sha}","trees_url":"https://api.github.com/repos/sul-dlss/spotlight-dor-resources/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sul-dlss/spotlight-dor-resources/statuses/{sha}","languages_url":"https://api.github.com/repos/sul-dlss/spotlight-dor-resources/languages","stargazers_url":"https://api.github.com/repos/sul-dlss/spotlight-dor-resources/stargazers","contributors_url":"https://api.github.com/repos/sul-dlss/spotlight-dor-resources/contributors","subscribers_url":"https://api.github.com/repos/sul-dlss/spotlight-dor-resources/subscribers","subscription_url":"https://api.github.com/repos/sul-dlss/spotlight-dor-resources/subscription","commits_url":"https://api.github.com/repos/sul-dlss/spotlight-dor-resources/commits{/sha}","git_commits_url":"https://api.github.com/repos/sul-dlss/spotlight-dor-resources/git/commits{/sha}","comments_url":"https://api.github.com/repos/sul-dlss/spotlight-dor-resources/comments{/number}","issue_comment_url":"https://api.github.com/repos/sul-dlss/spotlight-dor-resources/issues/comments{/number}","contents_url":"https://api.github.com/repos/sul-dlss/spotlight-dor-resources/contents/{+path}","compare_url":"https://api.github.com/repos/sul-dlss/spotlight-dor-resources/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sul-dlss/spotlight-dor-resources/merges","archive_url":"https://api.github.com/repos/sul-dlss/spotlight-dor-resources/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sul-dlss/spotlight-dor-resources/downloads","issues_url":"https://api.github.com/repos/sul-dlss/spotlight-dor-resources/issues{/number}","pulls_url":"https://api.github.com/repos/sul-dlss/spotlight-dor-resources/pulls{/number}","milestones_url":"https://api.github.com/repos/sul-dlss/spotlight-dor-resources/milestones{/number}","notifications_url":"https://api.github.com/repos/sul-dlss/spotlight-dor-resources/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sul-dlss/spotlight-dor-resources/labels{/name}","releases_url":"https://api.github.com/repos/sul-dlss/spotlight-dor-resources/releases{/id}","created_at":"2014-03-05T19:55:10Z","updated_at":"2015-04-20T21:28:05Z","pushed_at":"2015-11-18T19:51:23Z","git_url":"git://github.com/sul-dlss/spotlight-dor-resources.git","ssh_url":"git@github.com:sul-dlss/spotlight-dor-resources.git","clone_url":"https://github.com/sul-dlss/spotlight-dor-resources.git","svn_url":"https://github.com/sul-dlss/spotlight-dor-resources","homepage":"","size":243,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sul-dlss/spotlight-dor-resources/pulls/45"},"html":{"href":"https://github.com/sul-dlss/spotlight-dor-resources/pull/45"},"issue":{"href":"https://api.github.com/repos/sul-dlss/spotlight-dor-resources/issues/45"},"comments":{"href":"https://api.github.com/repos/sul-dlss/spotlight-dor-resources/issues/45/comments"},"review_comments":{"href":"https://api.github.com/repos/sul-dlss/spotlight-dor-resources/pulls/45/comments"},"review_comment":{"href":"https://api.github.com/repos/sul-dlss/spotlight-dor-resources/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sul-dlss/spotlight-dor-resources/pulls/45/commits"},"statuses":{"href":"https://api.github.com/repos/sul-dlss/spotlight-dor-resources/statuses/d3a9d56ae541c7fa5471549d0e216f47ba3561df"}}}}