Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: specified revision number to patch against. And added patch that was created via command line.

...

A website like Amazon, might do this to help you select a digital camera. You can reduce the results by price range, features, megapixels, manufacturer, etc.
The further the DSpace Discovery module is developed, the more useful that browsing can be to the researcher looking for items in your collections.

Checkout the projects from source

...

(revision numbers are from revision last tested)

Code Block

mkdir /path/to/project/discovery
cd discovery

...

svn checkout http://scm.dspace.org/svn/repo/dspace/trunk/ dspace-trunk 

...

-r 4961
svn checkout http://scm.dspace.org/svn/repo/modules/dspace-discovery/trunk/ dspace-discovery -r 

...

4846

Reference
If you want see Discovery in action and try it out live, the Dryad Repository has discovery instead of artifact browse. You can also browse their Google Code  which has the source of their customizations.

Overview
Have both projects checked out to the same root projects folder. You will not have to modify dspace-discovery at all, but the patch will enable the dspace-trunk to use some features of dspace services, and include other libraries such as org.apache.solr that are needed.
The discovery module essentially adds an additional core to solr. Existing was statistics, the new core is search. 

Obtain the updated patch

To patch: 

Code Block
cd /path/to/project/discovery/dspace-trunk/dspace 
patch -p1 < /path/to/dspace-discovery-applied-to-dspace-trunkupdate.patch 

If you name discovery-trunk anything other than that, you will have to modify dspace-trunk/dspace/pom.xml accordingly.
Then the regular rebuild process applies. It may be necessary to do a mvn clean package.

In config/dspace-solr-search.cfg and dspace.cfg is a setting for:

Code Block

solr.search.server = http://127.0.0.1:8080/solr 

Adjust that if necessary.
After the patch, you will need to set solr/home. Modify /dspace/webapps/solr/WEB-INF/web.xml to use your solr/home. 

Code Block

    <env-entry> 
       <env-entry-name>solr/home</env-entry-name> 
       <env-entry-value>/dspace/solr</env-entry-value> 
       <env-entry-type>java.lang.String</env-entry-type> 
    </env-entry> 

Once you've restarted your { tomcat} server, and SOLR is up and running, you'll need to index your content.

Code Block
[/dspace/bin/] ./dspace update-discovery-index 

Screenshots
Empty search shows that it can be filtered easily.