Howto: Use DSpace Discovery
Checkout the projects
cd [path]/projects git svn clone http://scm.dspace.org/svn/repo/modules/dspace-discovery/trunk/ dspace-discovery git svn clone http://scm.dspace.org/svn/repo/dspace/trunk/ dspace-trunk
(Alternatively svn users can just regular svn co those above. Clone is for git, because git doesn't exactly do checkout)
(GIT ONLY) git svn doesn't add empty directories, so to correct that, type:
[dspace-trunk-git/dspace/\]$ mkdir -p modules/jspui/src/main/webapp mkdir -p modules/lni/src/main/webapp mkdir -p modules/oai/src/main/webapp mkdir -p modules/solr/src/main/webapp mkdir -p modules/sword/src/main/webapp mkdir -p modules/xmlui/src/main/webapp
Edit POM's
edit trunk/dspace/pom.xml
addingÂ
<module>../../dspace-discovery</module>
and
<dependency> <groupId>org.dspace.discovery</groupId> <artifactId>discovery-solr-provider</artifactId> <version>0.9.1-SNAPSHOT</version> </dependency>
edit trunk/dspace/modules/xmlui/pom.xml
adding
<dependency> <groupId>org.dspace.discovery</groupId> <artifactId>discovery-xmlui-block</artifactId> <version>0.9.1-SNAPSHOT</version></dependency>
ADD SOLR SEARCH
go to trunk/dspace/solr/
Add Dryad's SOLR core of search.
[trunk/dspace/solr/] $ svn export <span style="color: #0000ff"><span class="nobr"><a href="http://dryad.googlecode.com/svn/trunk/dryad/dspace/solr/search/" class="external-link" rel="nofollow">http://dryad.googlecode.com/svn/trunk/dryad/dspace/solr/search/+<sup><img class="rendericon" src="/images/icons/linkext7.gif" height="7" width="7" align="absmiddle" alt="" border="0"/></sup></a></span></span> search
edit /trunk/dspace/solr/solr.xml
add
<core name="search" instanceDir="search"/>
edit trunk/dspace/config/xmlui.xconf
<aspects>
<!--
(1) Remove Artifact Browser as Browse/Search is supported in Discovery
<aspect name="Artifact Browser" path="resource://aspects/ArtifactBrowser/" />
(2) Feedback holds the Contact / Feedback aspects
-->
<aspect name="Feedback" path="resource://aspects/Feedback/" />
<!--
(3) Discovery holds Both Viewers, Recent Submissions and Search/Browse.
-->
<aspect name="Discovery" path="resource://aspects/Discovery/" />