{"action":"opened","issue":{"url":"https://api.github.com/repos/wcmc-its/ReCiter/issues/245","repository_url":"https://api.github.com/repos/wcmc-its/ReCiter","labels_url":"https://api.github.com/repos/wcmc-its/ReCiter/issues/245/labels{/name}","comments_url":"https://api.github.com/repos/wcmc-its/ReCiter/issues/245/comments","events_url":"https://api.github.com/repos/wcmc-its/ReCiter/issues/245/events","html_url":"https://github.com/wcmc-its/ReCiter/issues/245","id":344431995,"node_id":"MDU6SXNzdWUzNDQ0MzE5OTU=","number":245,"title":"AffiliationInDbRetrievalStrategy should include keywords from homeInstitution","user":{"login":"paulalbert1","id":3651640,"node_id":"MDQ6VXNlcjM2NTE2NDA=","avatar_url":"https://avatars0.githubusercontent.com/u/3651640?v=4","gravatar_id":"","url":"https://api.github.com/users/paulalbert1","html_url":"https://github.com/paulalbert1","followers_url":"https://api.github.com/users/paulalbert1/followers","following_url":"https://api.github.com/users/paulalbert1/following{/other_user}","gists_url":"https://api.github.com/users/paulalbert1/gists{/gist_id}","starred_url":"https://api.github.com/users/paulalbert1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paulalbert1/subscriptions","organizations_url":"https://api.github.com/users/paulalbert1/orgs","repos_url":"https://api.github.com/users/paulalbert1/repos","events_url":"https://api.github.com/users/paulalbert1/events{/privacy}","received_events_url":"https://api.github.com/users/paulalbert1/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"sarbajitdutta","id":16959056,"node_id":"MDQ6VXNlcjE2OTU5MDU2","avatar_url":"https://avatars1.githubusercontent.com/u/16959056?v=4","gravatar_id":"","url":"https://api.github.com/users/sarbajitdutta","html_url":"https://github.com/sarbajitdutta","followers_url":"https://api.github.com/users/sarbajitdutta/followers","following_url":"https://api.github.com/users/sarbajitdutta/following{/other_user}","gists_url":"https://api.github.com/users/sarbajitdutta/gists{/gist_id}","starred_url":"https://api.github.com/users/sarbajitdutta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sarbajitdutta/subscriptions","organizations_url":"https://api.github.com/users/sarbajitdutta/orgs","repos_url":"https://api.github.com/users/sarbajitdutta/repos","events_url":"https://api.github.com/users/sarbajitdutta/events{/privacy}","received_events_url":"https://api.github.com/users/sarbajitdutta/received_events","type":"User","site_admin":false},"assignees":[{"login":"sarbajitdutta","id":16959056,"node_id":"MDQ6VXNlcjE2OTU5MDU2","avatar_url":"https://avatars1.githubusercontent.com/u/16959056?v=4","gravatar_id":"","url":"https://api.github.com/users/sarbajitdutta","html_url":"https://github.com/sarbajitdutta","followers_url":"https://api.github.com/users/sarbajitdutta/followers","following_url":"https://api.github.com/users/sarbajitdutta/following{/other_user}","gists_url":"https://api.github.com/users/sarbajitdutta/gists{/gist_id}","starred_url":"https://api.github.com/users/sarbajitdutta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sarbajitdutta/subscriptions","organizations_url":"https://api.github.com/users/sarbajitdutta/orgs","repos_url":"https://api.github.com/users/sarbajitdutta/repos","events_url":"https://api.github.com/users/sarbajitdutta/events{/privacy}","received_events_url":"https://api.github.com/users/sarbajitdutta/received_events","type":"User","site_admin":false}],"milestone":null,"comments":0,"created_at":"2018-07-25T12:56:40Z","updated_at":"2018-07-25T12:56:40Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"The [AffiliationInDbRetrievalStrategy](https://github.com/wcmc-its/ReCiter/blob/master/src/main/java/reciter/xml/retriever/pubmed/AffiliationInDbRetrievalStrategy.java) is one of the strategies that's used in the strict retrieval strategy - which is invoked when the initial search returns too many results. Let's change it so that it also uses `homeInstitution-keywords`.\r\n\r\nHere's what this attribute value, as stored in application.properties looks like:\r\n```\r\nhomeInstitution-keywords: weill|cornell, weill|medicine, cornell|medicine, cornell|medical, weill|medical, weill|bugando, weill|graduate, cornell|presbyterian, weill|presbyterian, 10065|cornell, 10065|presbyterian, 10021|cornell, 10021|presbyterian, weill|qatar, cornell|qatar, @med.cornell.edu, @qatar-med.cornell.edu\r\n```\r\n\r\nTo make this work:\r\n- Substitute `,` for ` OR `\r\n- Substitute `|` for ` AND `\r\n- Add to end of search\r\n\r\nThe name lookup search should look like this. (Note that the existing institutions are added in there too.)\r\n```\r\ngupta a[au] AND (\"University of Texas\" OR \"Weill Cornell Medical College, Cornell University\" OR \"NewYork-Presbyterian Hospital\" OR \"The Johns Hopkins University School of Medicine\" OR \"Johns Hopkins University School of Medicine\") OR ((weill AND cornell) OR (weill AND medicine) OR (cornell AND medicine) OR (cornell AND medical) OR (weill AND medical) OR (weill AND bugando) OR (weill AND graduate) OR (cornell AND presbyterian) OR (weill AND presbyterian) OR (10065 AND cornell) OR (10065 AND presbyterian) OR (10021 AND cornell) OR (10021 AND presbyterian) OR (weill AND qatar) OR (cornell AND qatar) OR @med.cornell.edu OR @qatar-med.cornell.edu)\r\n```\r\nThis will get us the following publications from `ajg9004` that aren't otherwise picked up: `24008170 21659479 22135127 24263697 24812015 24200901 21596805 21624991 11716577 23945228 23945227 24474262 25977478 26063003 26427831 26564432 26965465 27256856 27127002 27365331 25572949 26471747 23811973 24309123 29519791`\r\n\r\nBy the way, it would also be nice if the logs could output precisely what searches are being done."}}
{"actor":{"display_login":"paulalbert1"}}