Archived / Obsolete Documentation

Documentation in this space is no longer accurate.
Looking for official DSpace documentation? See all documentation

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Howto: Use DSpace Discoverycd [path]/projects
Checkout the projects
git svn clone http://scm.dspace.org/svn/repo/modules/dspace-discovery/trunk/ dspace-discovery
git svn clone <span style="color: #0000ff"><span class="nobr"><a href="http://scm.dspace.org/svn/repo/dspace/trunk/" class="external-link" rel="nofollow">http://scm.dspace.org/svn/repo/dspace/trunk/+<sup><img class="rendericon" src="/images/icons/linkext7.gif" height="7" width="7" align="absmiddle" alt="" border="0"/></sup></a></span></span> 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/" />

  • No labels