Warning: This page has not been updated in over over a year and may be outdated or deprecated.
indexing:dspace
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
indexing:dspace [2017/04/21 11:49] – demiankatz | indexing:dspace [2020/09/21 13:50] – [3. Customize Import Rules (optional)] demiankatz | ||
---|---|---|---|
Line 3: | Line 3: | ||
These are the instructions used by the Naval Postgraduate School in Monterey, California to index DSpace records in VuFind. | These are the instructions used by the Naval Postgraduate School in Monterey, California to index DSpace records in VuFind. | ||
- | :!: ** These instructions were written for VuFind 2.x or newer; See [[legacy: | + | ===== 1. Turn on OAI-PMH in DSpace |
- | + | ||
- | ===== Steps ===== | + | |
OAI must be enabled on the DSpace repository first: | OAI must be enabled on the DSpace repository first: | ||
Line 32: | Line 30: | ||
...</ | ...</ | ||
- | Then you may proceed to import the OAI feed into VuFind: | + | ===== 2. Import records |
- | | + | |
- | - Run these commands: | + | |
- | < | + | These steps use VuFind' |
- | cd $VUFIND_HOME/ | + | |
- | php harvest_oai.php | + | |
- | ./batch-import-xsl.sh DSpace dspace.properties | + | |
- | </ | + | |
- | ===== Required Files ===== | + | |
- | ==== oai.ini | + | - Modify **$VUFIND_LOCAL_DIR/ |
- | < | + | |
- | [DSpace] | + | |
url=http:// | url=http:// | ||
metadataPrefix=oai_dc | metadataPrefix=oai_dc | ||
Line 55: | Line 44: | ||
injectId=" | injectId=" | ||
dateGranularity=auto | dateGranularity=auto | ||
- | harvestedIdLog=harvest.log | + | harvestedIdLog=harvest.log</ |
+ | - Run these commands:< | ||
+ | php harvest_oai.php | ||
+ | ./ | ||
+ | |||
+ | ==== Troubleshooting ==== | ||
+ | |||
+ | If you receive an error message during harvesting, you may need to rebuild the OAI indexes on your DSpace server. Log into that system and run these commands: | ||
+ | |||
+ | < | ||
+ | <path to dspace directory>/ | ||
+ | <path to dspace directory>/ | ||
</ | </ | ||
+ | After that processing completes, retry the harvest process on the VuFind server as described above. | ||
+ | |||
+ | ===== 3. Customize Import Rules (optional) ===== | ||
+ | |||
+ | If you wish to customize the way your records are ingested, see the [[indexing: | ||
+ | |||
+ | :!: If you change import rules, note that you will need to remove your $VUFIND_LOCAL_DIR/ | ||
+ | |||
+ | ===== 4. Customize Record Display (optional) ===== | ||
+ | By default, VuFind does not include any DSpace-specific display logic; records indexed from DSpace are displayed using the standard " | ||
---- struct data ---- | ---- struct data ---- | ||
---- | ---- | ||
indexing/dspace.txt · Last modified: 2023/08/16 19:52 by demiankatz