Dear All,

I want to Modify the "View/Open"  Link .. If MIMETYPE is "video/x-flv".. I
want to call the Custom URL If MIMETYPE is "video/x-flv".  I have modify
the Following code on the  [
C:\dspace-3.2-src-release\dspace--jspui\src\main\java\org\dspace\app\webui\jsptag\]
ItemTag.java
file but when I Rebuild DSpace then it's giving Compilation error (Screen
Sort Attached).

Code that I have Modify as following (line no : 863 approx)

if (handle == null)
            {
            handle = "db-id/" + item.getID();
            }

            *FileMimeType = bitstream.getFormat().getMIMEType();
        *
* if ("video/x-flv" == FileMimeType)*
* {*
* out.print("<tr><td headers=\"t1\" class=\"standard\">");*
* out.print("<a target=\"_blank\" href=\"");*
* PhysicalFilePath = request.getContextPath() + "/html/" + handle + "/" +
UIUtil.encodeBitstreamName(primaryBitstream*
* .getName(), Constants.DEFAULT_ENCODING);*
* *
* out.print(PhysicalFilePath);*
* out.print("\">");*
* out.print(primaryBitstream.getName() + "Bhavesh");*
* out.print("</a>");*
*                    }else{*
* out.print("<tr><td headers=\"t1\" class=\"standard\">");*
* out.print("<a target=\"_blank\" href=\"");*
* out.print(request.getContextPath());*
* out.print("/html/");*
* out.print(handle + "/");*
* out*
* .print(UIUtil.encodeBitstreamName(primaryBitstream*
* .getName(), Constants.DEFAULT_ENCODING));*
* out.print("\">");*
* out.print(primaryBitstream.getName());*
* out.print("</a>"); *
* }*


But it is giving the error on *FileMimeType =
bitstream.getFormat().getMIMEType();*

Please help me on this issue. I want to redirect to other URL  (that will
play the video into video player) if the MIMETYPE is video.

Thank you for your help...!

Thanks & Regards,
*Bhavesh R. Patel *


"Never leave till tomorrow which you can do today"

*Please consider the environment before printing this e-mail.*
------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60135991&iu=/4140/ostg.clktrk
_______________________________________________
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

Reply via email to