1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
package FixMyStreet::Cobrand::Oxfordshire;
use base 'FixMyStreet::Cobrand::UKCouncils';
use strict;
use warnings;
sub council_id { return 2237; }
sub council_area { return 'Oxfordshire'; }
sub council_name { return 'Oxfordshire County Council'; }
sub council_url { return 'oxfordshire'; }
sub is_two_tier { return 1; }
sub base_url {
return FixMyStreet->config('BASE_URL') if FixMyStreet->config('STAGING_SITE');
return 'http://fixmystreet.oxfordshire.gov.uk';
}
# Different to councils parent due to this being a two-tier council. If we get
# more, this can be genericised in the parent.
sub problems_clause {
return { bodies_str => { like => '%2237%' } };
}
sub path_to_web_templates {
my $self = shift;
return [
FixMyStreet->path_to( 'templates/web', $self->moniker )->stringify,
FixMyStreet->path_to( 'templates/web/fixmystreet' )->stringify
];
}
sub enter_postcode_text {
my ($self) = @_;
return 'Enter an Oxfordshire postcode, or street name and area';
}
sub disambiguate_location {
my $self = shift;
my $string = shift;
return {
%{ $self->SUPER::disambiguate_location() },
centre => '51.765765,-1.322324',
span => '0.154963,0.24347', # NB span is not correct
bounds => [ 51.459413, -1.719500, 52.168471, -0.870066 ],
};
}
sub example_places {
return ( 'OX20 1SZ', 'Park St, Woodstock' );
}
sub default_show_name { 0 }
1;
|