okfn/ckan — pull request #116 by domoritz (2012-09-01 16:06:49+00:00)
Title: Separate page for data preview

I moved the data preview into a separate page which will then embedded as an iframe into the resource page. This change has four main advantages:

* The page loads faster because the preview that requires many js and css files can be loaded separately. In case of a resource that is not handled by recline, recline will not even be loaded.
* Updating recline will become very easy because it can have a separate set of dependencies
* Since the decision about the data type can be made on the server, different handlers can be loaded depending on the the type. For example a pdf preview with [pdf.js](http://mozilla.github.com/pdf.js/).
* You can easily have multiple previews on one page.

The embed button is not working anymore, though. I haven't fixed that because the embed button is not on the page anymore. Is this feature still needed? What happens to the old code in `datapreview.outside.js`?