An example can be seen here - http://www.datadotgc.ca/dataset/location_of_historic_buildings_in_edmonton
Here's the text from the README.txt file of the module
What is OGDI? - http://www.microsoft.com/industry/government/opengovdata/
Module development was sponsored by Microsoft Canada and Raised Eyebrow Web Studio (http://www.raisedeyebrow.com).
Module developed by Colin Calnan @ Raised Eyebrow Web Studio
The OGDI Field Module allows you to add a CCK field to any content type, which accepts a valid URL to a OGDI dataset as input, and outputs a slick, themed scrollable, filterable, sortable, searchable table and a map displaying that data. It does all this magic by communicating with the OGDI API.
This module was originally developed as an extension the DataDotGC.ca website,
a citizen-led open government data portal for Canada. The site was built in Drupal and uses CKAN (the Comprehensive Knowledge Archive Network) for cataloguing the data.
When we became aware of Microsoft's open-source OGDI application, which allows users to browse & filter cloud-hosted datasets within an easy-to-use web interface,
we wanted to integrate OGDI's functionality as well.
Microsoft Canada generously sponsored the module development project, and we now have a method of displaying OGDI instances on Drupal-powered websites.
| Comment | File | Size | Author |
|---|---|---|---|
| #10 | ogdi_field.tar_.gz | 507.75 KB | colincalnan |
| #1 | ogdi_field.tar_.gz | 12.53 KB | colincalnan |
Comments
Comment #1
colincalnan commentedComment #2
avpadernoHello, and thanks for applying for a CVS account. I am adding the review tags, and some volunteers will review the code, pointing out what it needs to be changed.
Comment #3
colincalnan commentedHi,
this has been here for about 3 weeks now. Is there anything I can do to help push this forward?
Regards,
Colin
Comment #4
boris mann commentedColin -- Talked to NikG about this today. CVS applications are kind of swamped these days, so it may take a while.
Comment #5
sreynen commentedCode formatting looks great (Coder found no issues), commenting is really thorough, and sanitizing functions seem to be used everywhere they're useful for security. The only issue I see is the use of hook_init for CSS and JS includes that don't seem to be needed on every page. Ideally those would only be added where they're actually needed. But that's not really an issue that needs to be fixed prior to CVS.
Comment #6
avpadernoUse a
t()-placeholder.Why isn't the code using
drupal_http_request()??>, as reported in the coding standards.Description strings, as other strings used in the user interface, should end with a period.
Comment #7
colincalnan commentedsreynen, thanks for spotting that. The CSS and JS should actually probably not be in there. The original incarnation of this module did not use CCK, and I had to load it everywhere. However now I only have to load it on any page/node that has the CCK field displaying.
Thanks so much. I'll get on that ASAP.
Col.
Comment #8
colincalnan commentedkiamlaluno,
thanks for the detailed response. I'll get to work on all of these issues straight away and will put another version up for review.
Also also wasn't aware of
drupal_http_request()and will see about using that instead of curl.Col.
Comment #9
hanno commentedHi, wondering how the progress of this module is. Would propose to add this module to the list of modules for governmental services: http://groups.drupal.org/node/99004
Comment #10
colincalnan commentedHi,
I'm made all the modifications as requested by kaimlaluno and sreynen:
If you could please review the attached update and let me know if it passes.
Comment #11
colincalnan commentedHanno,
as soon as this is approved and in CVS I will add it to that page.
Comment #12
hanno commentedlooking forward
Comment #13
avpadernoComment #14
moshe weitzman commentedCode looks great now.
FWIW, Adding JS and CSS unconditionally is better when css/js aggregation is enabled. I don't think we want to ding applicants on that.
Comment #15
avpadernoThank you for your contribution!
I am going to update your account so you can opt into security advisory coverage now.
These are some recommended readings to help with excellent maintainership:
You can find more contributors chatting on the IRC #drupal-contribute channel. So, come hang out and stay involved.
Thank you, also, for your patience with the review process.
Anyone is welcome to participate in the review process. Please consider reviewing other projects that are pending review. I encourage you to learn more about that process and join the group of reviewers.
I thank all the dedicated reviewers as well.
Comment #17
hanno commented@colincalnan module is ok, cvs account is ready, so looking forward to the project page of this module :)
Comment #18
Coornail commentedAs I heard this still needs some review, so here are my recommendations:
Always write "Implements hook_..." to the appropriate place, so it can be easily search for.
Don't just write @file so the coder module would shut up finally ;)
Every file has extremely verbose documentation (which is very great!), except ogdi-api.php, which seems to be the core of this thing.
Use DataTables module as a dependency, don't include the source in your module (so there's no conflict if other modules try to use DataTables).
I'd rather write
Or if you don't like \"
Not a big deal.
Else the module looks great, I especially loved the huge amount of comments.
Comment #19
sreynen commentedI don't think it does. The account has been approved, so I believe this issue is done. There's still no project, but that's because colincalnan hasn't created it, not because the module needs more review.
Comment #20
avpadernoComment #22
avpaderno