Generate location terms in one vocabulary instead of by country

hankliu - August 26, 2008 - 07:21
Project:Google Client Geocoder
Version:5.x-1.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:needs review
Description

I think it would be nice for the module to generate location terms to only one vocabulary, say: Places, rather than one vocabulary per country. Also capability to customize map control type will be nice. Great module indeed!!

#1

B.P.B - November 2, 2008 - 23:37

I would also like to place everything inside one vocabulary.

#2

Summit - November 6, 2008 - 14:38

Hi,
I would prefer this module to integrate in the backhand with location module so they both use the same databasetables.
Would this be possible please?

Thanks a lot in advance for considering this!

greetings,
Martijn

#3

rfay - November 25, 2008 - 22:36
Status:active» needs review

Here is a patch to gcg_taxonomy.module that puts every country inside one vocabulary. It also fixes a couple of bugs encountered along the way and includes this patch already posted to the issue queue: http://drupal.org/node/261294. This patch is against the October 16, 2008 version of 5.x-1.x-dev. Sponsored by B.P.B.

Please note that if you use this patch on an existing install, check and update your GCG Taxonomy settings, because the default pre-patch settings have "Addresses in @country" as the name for the category, and you'll really use something like "country" instead. If you're doing a fresh install, you don't have this problem.

AttachmentSize
gcg_taxonomy_single_vocab.patch 4.28 KB

#4

Summit - November 21, 2008 - 21:03

Hi, Could the patch be expended with also the region, and city information, possibple, please in a hierarchical matter, so the vocabulary has the levels: country, region and city and nicely filled values :) greetings, Martijn

#5

B.P.B - November 21, 2008 - 22:11

Summit,

Thats exactly what the patch does. Would you mind rephrasing?

#6

mpaler - November 22, 2008 - 02:13

patch applies fine to the version described and works as advertised.

Hey rfay,

Nice work! this patch is a huge addition to this project. Makes this project along with faceted search a killer pair.

One thing I noticed is that if you remove all taxomomies (recommended?) and edit or add a new node, the taxonomy that gets created is called:

Addresses in @country

Not a huge issue as one can just rename the vocab.

Thanks for doing this.

Mike

#7

Summit - November 22, 2008 - 14:11

With correcting above small error, will this patch be committed please?
Great patch!

greetings,
Martijn

#8

rfay - November 23, 2008 - 04:20

Hi mpaler - Thanks for the nice words about the patch.

As for the issue with the category created being named "Addresses in @country", I think you'll find that that's how your install is set up in Admin->GCG Taxonomy settings (admin/settings/gcg_taxonomy/settings). That was the default setting for the category name before this patch (and would remain so on an existing install). It is no longer the default (the default is now "Country"). I think if you either do a fresh install or change the settings to create a category named "Country" then it will work correctly for you. Please note that there are no longer any replaceable parameters in the category name, either, since none are needed.

Good luck, and let me know if I'm correct in my analysis of this.
-Randy

 
 

Drupal is a registered trademark of Dries Buytaert.