Hee hee – Added Lance’s new feature to Charon

Lance has always wanted a way to include a user’s resources tool in some other site – I think the IU school of business has a portal that wants to have a tab called “show user’s resources”. This now works r5218 and SAK-3465 now support this feature.
This allows Sakai to be more flexible and used to be the “Campus storage”. I am guessing that over time, the development of the Sakai Resourse tool GUI will be affected by this stand-alone mode.
I wrote the code on my airline flight and cab ride from Detroit to Washington DC to go to the IMS Common Cartridge meeting at BlackBoard.
Lance can decide if he likes this enough to put it in the maintenance branch.


The following URLs are now supported in Charon:
http://localhost:8080/portal/page/sakai.resources?sakai.site=~csev
http://localhost:8080/portal/tool/sakai.resources?sakai.site=~csev
http://localhost:8080/portal/title/sakai.resources?sakai.site=~csev
In this form, the specified site is scanned and the first placement of the tool within the site is the one chosen. This works to replace either the page id or the tool id for these three forms (page, tool, title). When the page form is used, the definition is to select the page that has the specified tool placed on that page. If there are more than one tool is on the page, all the tools on the page are rendered. Unless the site allows anonymous visitors, the URL pattern demands the user to be logged in prior to looking up the site.