IATI / IATI-Websites-archive

[Archived] Used to track issues about the content of IATI websites. Also contains some templates.
0 stars 2 forks source link

Rulesets not parsing correctly #42

Closed caprenter closed 10 years ago

caprenter commented 10 years ago

On http://iatistandard.org/activities-standard/budget/ the codelist info for country budget items is being pulled into the compliance info.

caprenter commented 10 years ago

Fixed, by putting an exception in the parse_rulesets code (in the theme). This is not an elegant fix, but should do for now.

Bjwebb commented 10 years ago

"Must be on: Currency Codelist"

caprenter commented 10 years ago

Ummm - yeah this is a bit tricky. Currently the set up doesn't use the full schema path to distinguish elements, so in this case is returning all 'rules' around a budget - so budgets have values and those should have a currency.

If you take a look at: http://iatistandard.org/activities-standard/budget/period-end/ you can see that the rules also talk about planned disbursements.

However, we don't get the information here that there must also be a period start and that period-end should be after period start - that rule is assigned to budgets.

I think the proble to overcome is to do with ways of defining rulesets, showing child/parent elements on a page, and the techniques to parse data from source files - nuch of this is ongoing in the SSOT project, so might not be worth fixing here.