aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/Utils.pm
diff options
context:
space:
mode:
authorDave Whiteland <dave@mysociety.org>2012-04-16 13:20:49 +0100
committerDave Whiteland <dave@mysociety.org>2012-04-16 13:20:49 +0100
commitb38ba427f7facd6e8042ae667b5b3bac1724803a (patch)
tree6f3c24eb30b0ffb29ec5e0a74478434943ace2b6 /perllib/Utils.pm
parent80d897c2cbac1ab4b447a8f08fa2955e7639b253 (diff)
added switch on staging site for Barnet integration-server vs. production
Diffstat (limited to 'perllib/Utils.pm')
-rw-r--r--perllib/Utils.pm58
1 files changed, 37 insertions, 21 deletions
diff --git a/perllib/Utils.pm b/perllib/Utils.pm
index ddebc0f7b..6a47fd17d 100644
--- a/perllib/Utils.pm
+++ b/perllib/Utils.pm
@@ -142,27 +142,43 @@ sub london_categories {
sub barnet_categories {
# The values here are KBIDs from Barnet's system: see bin/send-reports for formatting
- # category KBID
- return {
- 'Abandoned Vehicle' => 468,
- 'Accumulated Litter' => 349,
- 'Dog Bin' => 203,
- 'Dog Fouling' => 288,
- 'Drain or Gully' => 256,
- 'Fly Posting' => 465,
- 'Fly Tipping' => 449,
- 'Graffiti' => 292,
- 'Gritting' => 200,
- 'Highways' => 186,
- 'Litter Bin Overflowing' => 205,
- 'Manhole Cover' => 417,
- 'Overhanging Foliage' => 421,
- 'Pavement Damaged/Cracked' => 195,
- 'Pothole' => 204,
- 'Road Sign' => 80,
- 'Roadworks' => 246,
- 'Street Lighting' => 251,
- };
+ if (mySociety::Config::get('STAGING_SITE')) { # note staging site must use different KBIDs
+ return {
+ 'Blocked drain' => 255, # Gullies-Blocked
+ 'Dead animal' => 286, # Animals-Dead-Removal
+ 'Dog fouling' => 288, # Dog Fouling-Clear
+ 'Fly tipping' => 347, # Fly tipping-Clear
+ 'Graffiti' => 292, # Graffiti-Removal
+ 'Litter, accumulated' => 349, # Accumulated Litter
+ 'Litter, overflowing bins' => 205, # Litter Bins-Overflowing
+ 'Pavements' => 195, # Pavements-Damaged/Cracked
+ 'Pothole' => 204, # Pothole
+ 'Roads Signs' => 432, # Roads Signs - Maintenance
+ 'Street Lighting' => 251, # Street Lighting
+ 'Traffic Lights' => 103, # Traffic Lights
+ }
+ } else {
+ return {
+ 'Abandoned Vehicle' => 468,
+ 'Accumulated Litter' => 349,
+ 'Dog Bin' => 203,
+ 'Dog Fouling' => 288,
+ 'Drain or Gully' => 256,
+ 'Fly Posting' => 465,
+ 'Fly Tipping' => 449,
+ 'Graffiti' => 292,
+ 'Gritting' => 200,
+ 'Highways' => 186,
+ 'Litter Bin Overflowing' => 205,
+ 'Manhole Cover' => 417,
+ 'Overhanging Foliage' => 421,
+ 'Pavement Damaged/Cracked' => 195,
+ 'Pothole' => 204,
+ 'Road Sign' => 80,
+ 'Roadworks' => 246,
+ 'Street Lighting' => 251,
+ };
+ }
}
=head2 trim_text