Simple Plings In - Tag Lookup
From Plings Info
What we're after is a way of tagging activities with relevant tags.
e.g. Activity = Football Skills, Tags = football, goalkeeping
We have a SOAP interface that can serve us existing tags at: http://dev.substance.coop/services/lookups.php
The only parameter here is 'activities' - so by requesting a search term e.g. 'foot', all tags containing foot are returned.
If we can combine this with autocomplete then people entering tags can
- do less typing
- use existing tags (preventing a build up of similar tags, and creating a more robust taxonomy)
Progress so far
We have a lookup via URL working in the rails 'dev' packaged.
http://127.0.0.1:3000/pling/tagsoap?tag=all - will return 132 items (28/10/08)
From the plings_controller.rb
#this makes a request to the SOAP service from the URL:\\ #http://127.0.0.1:3000/pling/tagsoap?tag=<something>\\ #e.g. football, and returns all the tags from the service under 'football'\\ #taken from: dennis baldwin’s thoughts - http://www.db75.com/new_blog/?p=201\\ #all I've changed is the url and the line @activityList = driver, where 'activities' is the\\ #lookup parameter at the SOAP service..\\ require 'soap/wsdlDriver'\\ def tagsoap\\ soap_client = SOAP::WSDLDriverFactory.new("http://dev.substance.coop/services/lookups.php?wsdl")\\ driver = soap_client.createDriver\\ @activityList = driver.activities(params[:tag])\\ end

