[Dspace-tech] How to Modify the "View/Open" URL into ItemTag.java file

2013-10-27 Thread Bhavesh Patel
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("");*
* out.print("");*
* out.print(primaryBitstream.getName() + "Bhavesh");*
* out.print("");*
*}else{*
* out.print("");*
* out.print("");*
* out.print(primaryBitstream.getName());*
* out.print(""); *
* }*


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

[Dspace-tech] Enabling Discovery in Dspace 3.2

2013-10-27 Thread Faramarz Dorani
Hello every body,
I installed dspace successfully and it runs well. I set XMLUI to be ROOT.
Now, I want to enable discovery in it.
I followed all instructions in this link : Enabling
Discovery
But at the end, when I run the last command: [dspace]/bin/dspace
update-discovery-index
It throws exception:

Exception: null
org.dspace.discovery.SearchServiceException
at org.dspace.discovery.SolrServiceImpl.cleanIndex(SolrServiceImpl.java:418)
at org.dspace.discovery.IndexClient.main(IndexClient.java:119)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:183)
Caused by: java.net.MalformedURLException
at java.net.URL.(URL.java:619)
at java.net.URL.(URL.java:482)
at java.net.URL.(URL.java:431)
at
org.apache.solr.client.solrj.impl.CommonsHttpSolrServer.(CommonsHttpSolrServer.java:146)
at org.dspace.discovery.SolrServiceImpl.getSolr(SolrServiceImpl.java:99)
at org.dspace.discovery.SolrServiceImpl.cleanIndex(SolrServiceImpl.java:388)
... 6 more
Caused by: java.lang.NullPointerException
at java.net.URL.(URL.java:524)
... 11 more

http://localhost:8080 works fine.
http://localhost:8080/solr don't works.

It shows:
HTTP Status 500 - Severe errors in solr configuration. Check your log files
for more detailed information on what may be wrong. If you want solr to
continue after configuration errors, change:
false in solr.xml
-
java.lang.RuntimeException: java.io.IOException: Cannot create directory:
/dspace/solr/statistics/data/index at
org.apache.solr.core.SolrCore.initIndex(SolrCore.java:409) at



Any help please?
Thanks so much

--
r
egards,
--
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