Indicia-Team / ecobat

Repository for Ecobat specific code.
GNU General Public License v3.0
0 stars 0 forks source link

Percentile categories #19

Open PaulLintott opened 7 years ago

PaulLintott commented 7 years ago

We've just had a request from Scottish Natural Heritage, who after a wide consultation, are asking if we are able to change the percentile boundaries (0-20 - low, 20-40 - low/moderate, 40-60 - moderate, 60-80 moderate to high, 80 - 100 - high). I need to provide some feedback on their suggestion, firstly the key question is whether this an easy process for us to change (i.e. a few lines of code or something much bigger?) Thanks!

johnvanbreda commented 7 years ago

If you don't mind editing a bit of PHP code then it is not too hard. Using FTP you can open the file /ecobat.org.uk/sites/all/modules/iform/client_helpers/prebuilt_forms/ecobat_import_analysis, then on line 365 there is a function percentToActivityTerm. This has hopefully some fairly clear simple logic for how the different levels are apportioned. If you make any changes though we should also update the file in GitHub. Let me know when you are happy with the levels and I can do that or show you through it.

PaulLintott commented 7 years ago

Thanks John - I'll wait for confirmation from SNH before making the change (or asking for help!)

SophieDavison commented 7 years ago

HI John,

When we get confirmation back from SNH I'm quite willing to learn how to use FTP to edit the PHP code. I'm not actually based at the university now and I'm not using an encrypted university laptop anymore so I'm hesitant to do too much. I did have a quick look before I left the office last week though. FileZilla on the uni laptop I was using seemed okay but is there a log in or something we need to allow us to connect to the Ecobat server? It certainly wasn't already set up on the laptop and I am doubtful that it will be on Paul's computer.

Let me know if that doesn't make sense, but you say to just open the file /ecobat.org.uk etc, but when I go into FileZilla on MY laptop, and when I was on it last week at uni, I could only get onto files on the laptop and it was asking for hosts and passwords and so on to connect to an external server.

Cheers!