CVS edit link for asanchez75

I implemented a module that calls the AGROVOC web services into a Drupal module that also provides a nicer user interface in the search window.

AGROVOC is multilingual structured thesaurus for all subject fields in agriculture, forestry, fisheries, food and related domains. It's used all over the world by researchers, librarians, information managers, and others, for indexing, retrieving, and organizing data in agricultural information systems. FAO (United Nations) is only the curator of AGROVOC and sponsor of this module.

AGROVOC have several webservices but this module only implements simpleSearchByMode2 webservice in this version.
This web service executes a simple search on all AGROVOC terms retrieving terms based on the specified search mode: Terms are retrieved having the search term either in the beginning or containing in the AGROVOC term or matching the search term exactly
In case, nothing is specified or the searchmode parameter is entered incorrectly, a partial search, i.e. containing the search term is executed by default. The search is not case sensitive, i.e. ‘Fruit’, ‘FRUIT’ and ‘fruit’ return the same results (for all search modes). No wild cards (like *) can be used. Selected values are loaded into taxonomies (taxonomy module or content taxonomy module)

Module
http://cambio.name/agrovocws/agrovocws.tar.gz

Screenshots

Popup user interface
http://cambio.name/agrovocws/screenshot1.png

Field of taxonomy
http://cambio.name/agrovocws/screenshot2.png

Settings window
http://cambio.name/agrovocws/screenshot3.png

Regards

Adam

CommentFileSizeAuthor
#1 agrovocws.tar_.gz57.83 KBasanchez75

Comments

asanchez75’s picture

StatusFileSize
new57.83 KB

I implemented a module that calls the AGROVOC web services into a Drupal module that also provides a nicer user interface in the search window.
AGROVOC have several webservices but this module only implements simpleSearchByMode2 webservice in this version.
This web service executes a simple search on all AGROVOC terms retrieving terms based on the specified search mode: Terms are retrieved having the search term either in the beginning or containing in the AGROVOC term or matching the search term exactly
In case, nothing is specified or the searchmode parameter is entered incorrectly, a partial search, i.e. containing the search term is executed by default. The search is not case sensitive, i.e. ‘Fruit’, ‘FRUIT’ and ‘fruit’ return the same results (for all search modes). No wild cards (like *) can be used. Selected values are loaded into taxonomies (taxonomy module or content taxonomy module)
AGROVOC is multilingual structured thesaurus for all subject fields in agriculture, forestry, fisheries, food and related domains. It's used all over the world by researchers, librarians, information managers, and others, for indexing, retrieving, and organizing data in agricultural information systems. FAO (United Nations) is only the curator of AGROVOC and sponsor of this module.

avpaderno’s picture

Status: Postponed (maintainer needs more info) » Needs review
Issue tags: +Module review

Hello, and thanks for applying for a CVS account. I am adding the review tags, and some volunteers will review your code, pointing out what needs to be changed.

meba’s picture

Status: Needs review » Needs work

I don't understand the way how you use variable_set - that won't work. What happens if two people search at the same time? Your module will break.

Also, please read http://drupal.org/writing-secure-code, I believe there might be some Cross Site Scripting issues in the module. You should sanitize all output using check_plain().

avpaderno’s picture

Status: Needs work » Closed (won't fix)

I am closing this issue due to lack of replies.

avpaderno’s picture

Component: Miscellaneous » new project application
Issue summary: View changes
avpaderno’s picture

Status: Closed (won't fix) » Closed (duplicate)
Related issues: +#1055478: [D6] Agrovocfield