The attached file is an old patch that I have submitted in 2007
http://dspace.2283337.n4.nabble.com/dspace-Patches-1817742-Pluggable-Bitstream-View-strategy-td3289311.html

It could be helpful to implement the idea in this issue but need to be revisited and modernized a bit


Patch Description from SourceForge.net (at the access to the old patch system is restricted to the committers)

This patch allows you to define different strategies for view/download bitstream basing on its format.
The strategy is set using a named plugin that must implement Viewer interface.
Default viewer for standard dspace behavior is included (SimpleDownloaderViewer & HTMLViewer)
This patch move also primary bitstream attribute from bundle to bitstream level. This allow the support for the following use case:
1 bitstream is a pdf version
1 bitstream is a html version
1+ bitstreams that are only embedded in the html file (image, css & so)
we want to show only the two main entries in the list of bitstreams of the item.
It is also possible to show more then one html file supporting the following use case
Basic tutorial at DSUG Rome
1 ppt for slides
6 screencast composed by (1html wrapper page and 1 swx flash file)
we want 7 entry in the list of bitstrems (ppt + 6 htmls)

The url for download a bitstream become
/view/<viewer name>/handle/sequence_id/filename
or
/view/<viewer name>/db-id/sequence_id/filename

The bitstream/html servlet will be required no more but the retrive servlet will (for community/collection logo, thumbnails, etc.)
Change By: Andrea Bollini (14/Aug/13 7:46 PM)
Attachment: viewer-plugin-jspui.zip
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead. 
Download for free and get started troubleshooting in minutes. 
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
_______________________________________________
Dspace-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-devel

Reply via email to