https://github.com/vecnet/dl-discovery
Map based discovery interface for digital library records
https://github.com/vecnet/dl-discovery
Last synced: 11 months ago
JSON representation
Map based discovery interface for digital library records
- Host: GitHub
- URL: https://github.com/vecnet/dl-discovery
- Owner: vecnet
- License: other
- Created: 2015-01-30T04:39:33.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2017-08-09T14:25:48.000Z (almost 9 years ago)
- Last Synced: 2024-03-27T03:40:10.655Z (about 2 years ago)
- Language: Ruby
- Size: 14.1 MB
- Stars: 4
- Watchers: 7
- Forks: 3
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## VecNET Discovery
Geospatial discovery layer for VecNET Digital Library.


Built using:
* [Earthworks](https://github.com/sul-dlss/earthworks)
* [GeoBlacklight](https://github.com/geoblacklight)
## Installation
```
# Clone repository
$ git clone git@github.com:vecnet/dl-discovery.git
# Install ruby dependencies
$ bundle install
# Install for development
$ bundle exec rake earthworks:install
# Start up Solr instance through Jetty server
$ bundle exec rake jetty:start
# Start Rails application
$ rails server
```
## Tests
#### Running continuous integration tests
```
$ rake ci
```
### Running data integration tests
**Important!!!**
Must be run with a production index passed in using the `TEST_SOLR_URL` env variable. If ssh tunneling, make *sure* to **NOT** run rake ci while tunneled as it may delete the index.
```
$ TEST_SOLR_URL=http://example.com:8080/solr/core_name rake integration
```
## Running application
```
$ rails s
```
## Uploading sample data
To upload sample records into your local jetty solr, run the following.
./script/upload-to-solr.rb vecnet-solr-sample.json http://localhost:8983/solr/blacklight-core
## Harvesting production data
Optionally, clear the solr core.
curl http://:8081/solr/discovery/update?commit=true -H 'Content-Type:application/xml' -d '*:*'
Harvest the Library and Simulation Records:
./script/harvest-dl.rb https://dl.vecnet.org 2015-04-01
./script/harvest-ci.rb https://ci-qa.vecnet.org https://dl.vecnet.org