Friday, October 12, 2007

Pygmybrowse revisited


As yet another example of avoiding what I should really be doing, a quick note about a reworked version of PygmyBrowse (see earlier posts here and here). Last September I put together a working demo written in PHP. I've now rewritten it entirely in Javascript, apart from PHP script that returns information about a node in a classification. For example, this link returns details about the Animalia in ITIS.

You can view the new version live. Going "view source" in your browser will show you the code. It's mostly a matter of Javacsript and CSS, with some AJAX thrown in (based on the article Dynamic HTML and XML: the XMLHttpRequest object on Apple's ADC web site).

One advantage of making it entirely in Javascript is that it can be easily integrated into web sites that don't use PHP. As an example, David Shorthouse has inserted a version into the species pages in The Neartic Spider database (for example, visit the page for Agelena labyrinthica and click on the little "Browse tree" link).

5 comments:

David Shorthouse said...

Thanks for the nod, Rod. Your version of PygmyBrowse opens up a whole suite of potential applications. I'm still producing local XML files to feed the tree. However, Dave Martin (GBIF, Web Services guru) has been feverishly duplicating this and also has a beta web service available. By cleverly using a combination of GBIF web services, it is entirely possible to have an embeddable classification tree in one's web offerings whose branch or leaf node URLs are auto-magically changed to point to local resources. That's what's in the works now anyway...

Simon Rycroft said...

We've now created this as a Drupal module. Naturally it uses Drupal's taxonomy system for the classification which, when combined with our taxonomy_import module that is capable of importing from uBio it makes it pretty powerful and very simple. Check out an example on Chris Borrow's dung beetle site.

Rod Page said...

Simon, this looks nice. One minor quibble. I personally find the resizing of the DIV containing the Pygmybrowser to be a bit disconcerting (I might be alone in this). What if the DIV had a fixed size, so that the items below the browser weren't shunted up and down?

It's a pity the dung beetle classification is so flat (it's really just a big fan from the node Scarabaeinae) as it doesn't really benefit much from the Pygmybrowse approach.

Does Drupal's taxonomy module make it easy to get the number of children of each node? This would help users get a sense of which genera are most diverse.

So for the "yes, but" -- I've learnt from a master.

David Shorthouse said...

It is a bit disconcerting to have content on the page jump up & down. My fix for this on The Nearctic Spider Database was to float the div on the page and fade out the background. It's not too bad in Chris Borrow's site because the tree is in a panel off to the side but if there tree were in the middle of the page, having the whole page's contents jump up & down when nodes are expanded/collapsed would indeed be a visual frustration.

sexy said...

情趣用品,情趣用品,情趣用品,情趣用品,情趣用品,情趣用品,情趣用品,情趣用品,情趣,情趣,情趣,情趣,情趣,情趣,情趣,情趣,A片,視訊聊天室,聊天室,視訊,視訊聊天室,080苗栗人聊天室,上班族聊天室,成人聊天室,中部人聊天室,一夜情聊天室,情色聊天室,視訊交友網

免費A片,AV女優,美女視訊,情色交友,免費AV,色情網站,辣妹視訊,美女交友,色情影片,成人影片,成人網站,A片,H漫,18成人,成人圖片,成人漫畫,情色網,日本A片,免費A片下載,性愛

A片,色情,成人,做愛,情色文學,A片下載,色情遊戲,色情影片,色情聊天室,情色電影,免費視訊,免費視訊聊天,免費視訊聊天室,一葉情貼圖片區,情色,情色視訊,免費成人影片,視訊交友,視訊聊天,視訊聊天室,言情小說,愛情小說,AIO,AV片,A漫,avdvd,聊天室,自拍,情色論壇,視訊美女,AV成人網,色情A片,SEX,成人論壇

情趣用品,A片,免費A片,AV女優,美女視訊,情色交友,色情網站,免費AV,辣妹視訊,美女交友,色情影片,成人網站,H漫,18成人,成人圖片,成人漫畫,成人影片,情色網


情趣用品,A片,免費A片,日本A片,A片下載,線上A片,成人電影,嘟嘟成人網,成人,成人貼圖,成人交友,成人圖片,18成人,成人小說,成人圖片區,微風成人區,成人文章,成人影城,情色,情色貼圖,色情聊天室,情色視訊,情色文學,色情小說,情色小說,臺灣情色網,色情,情色電影,色情遊戲,嘟嘟情人色網,麗的色遊戲,情色論壇,色情網站,一葉情貼圖片區,做愛,性愛,美女視訊,辣妹視訊,視訊聊天室,視訊交友網,免費視訊聊天,美女交友,做愛影片

av,情趣用品,a片,成人電影,微風成人,嘟嘟成人網,成人,成人貼圖,成人交友,成人圖片,18成人,成人小說,成人圖片區,成人文章,成人影城,愛情公寓,情色,情色貼圖,色情聊天室,情色視訊,情色文學,色情小說,情色小說,色情,寄情築園小遊戲,情色電影,aio,av女優,AV,免費A片,日本a片,美女視訊,辣妹視訊,聊天室,美女交友,成人光碟

情趣用品.A片,情色,情色貼圖,色情聊天室,情色視訊,情色文學,色情小說,情色小說,色情,寄情築園小遊戲,情色電影,色情遊戲,色情網站,聊天室,ut聊天室,豆豆聊天室,美女視訊,辣妹視訊,視訊聊天室,視訊交友網,免費視訊聊天,免費A片,日本a片,a片下載,線上a片,av女優,av,成人電影,成人,成人貼圖,成人交友,成人圖片,18成人,成人小說,成人圖片區,成人文章,成人影城,成人網站,自拍,尋夢園聊天室