{"action":"closed","issue":{"url":"https://api.github.com/repos/openaid-IATI/OIPA/issues/54","labels_url":"https://api.github.com/repos/openaid-IATI/OIPA/issues/54/labels{/name}","comments_url":"https://api.github.com/repos/openaid-IATI/OIPA/issues/54/comments","events_url":"https://api.github.com/repos/openaid-IATI/OIPA/issues/54/events","html_url":"https://github.com/openaid-IATI/OIPA/issues/54","id":50426283,"number":54,"title":"Parser cannot work with different codelist versions","user":{"login":"Murrx","id":1957070,"avatar_url":"https://avatars.githubusercontent.com/u/1957070?v=3","gravatar_id":"","url":"https://api.github.com/users/Murrx","html_url":"https://github.com/Murrx","followers_url":"https://api.github.com/users/Murrx/followers","following_url":"https://api.github.com/users/Murrx/following{/other_user}","gists_url":"https://api.github.com/users/Murrx/gists{/gist_id}","starred_url":"https://api.github.com/users/Murrx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Murrx/subscriptions","organizations_url":"https://api.github.com/users/Murrx/orgs","repos_url":"https://api.github.com/users/Murrx/repos","events_url":"https://api.github.com/users/Murrx/events{/privacy}","received_events_url":"https://api.github.com/users/Murrx/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/openaid-IATI/OIPA/labels/Parser","name":"Parser","color":"006b75"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2014-11-29T13:54:24Z","updated_at":"2015-10-19T18:12:09Z","closed_at":"2015-10-19T18:12:09Z","body":"@VincentVW \r\nDates are no longer parsed because of the codelist\r\n \r\nSince IATI 2.01 freetext in is no longer allowed in http://iatistandard.org/upgrades/integer-upgrade-to-2-01/2-01-changes/#freetext-amended-elements. This is replaced by a numeric code.\r\nOur parser stills relies on freetext code (e.g. \"start-planned\").\r\n \r\n2.01: `<activity-date iso-date=\"2012-04-15\" type=\"1\">`\r\n1.05: `<activity-date iso-date=\"2012-04-15\" type=\"start-planned\" />`\r\n \r\nWe retrieve the codelists from http://dev.iatistandard.org/codelists/downloads/clv1/codelist/. Which is being redirected to the new standard at http://dev.iatistandard.org/201/codelists/downloads/clv1/codelist/ActivityDateType.xml, which already has the numeric codes.\r\n \r\n \r\nFor example:\r\nThis causes the parser to fail when parsing ActivityDates since it's trying to retrieve \"start_actual\", \"start_planned\", etc in parser.py at add_activity_date().\r\nmodels.ActivityDateType.objects.filter(code=type_ref).exists() "}}