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 revisionLast revisionBoth sides next revision | ||
indexing:dspace [2020/09/21 13:53] – demiankatz | indexing:dspace [2023/08/16 19:51] – [2. Import records into VuFind using OAI-PMH harvest] demiankatz | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== How to index DSpace with VuFind ====== | ====== How to index DSpace with VuFind ====== | ||
- | ===== 1. Make sure OAI-PMH is turned on in DSpace ===== | + | ===== 1. Make sure OAI-PMH is turned on and properly indexed |
+ | |||
+ | To retrieve records from DSpace, you will need to use the [[indexing: | ||
In newer versions of DSpace, OAI-PMH should be enabled by default; however, in DSpace 3.x and earlier, some [[indexing: | In newer versions of DSpace, OAI-PMH should be enabled by default; however, in DSpace 3.x and earlier, some [[indexing: | ||
- | ===== 2. Import | + | You can check whether the service is enabled by visiting < |
+ | |||
+ | {{ : | ||
+ | |||
+ | Before harvesting data from DSpace to VuFind, you should check that DSpace' | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | In the above image, if you click Metadata, it should provide you with an oai_dc-formatted metadata response. | ||
+ | |||
+ | ==== Fixing Missing Indexing ==== | ||
+ | |||
+ | If metadata does not display correctly through the server (for example, if you receive an "Error No matches for the query" message), this is probably a sign that DSpace' | ||
+ | |||
+ | <code bash> | ||
+ | ./dspace oai import -o -c | ||
+ | </ | ||
+ | |||
+ | The meaning of parameters –o and –c is as follows: | ||
+ | |||
+ | * -o Optimize index after indexing | ||
+ | * -c Clears the Solr index before indexing (it will import all items again) | ||
+ | |||
+ | ===== 2. Obtain | ||
- | These steps use VuFind' | + | These steps use VuFind' |
- Modify **$VUFIND_LOCAL_DIR/ | - Modify **$VUFIND_LOCAL_DIR/ | ||
Line 19: | Line 44: | ||
injectId=" | injectId=" | ||
dateGranularity=auto | dateGranularity=auto | ||
- | harvestedIdLog=harvest.log</ | + | harvestedIdLog=harvest.log |
+ | combineRecords=true</ | ||
- Run these commands:< | - Run these commands:< | ||
php harvest_oai.php | php harvest_oai.php | ||
Line 37: | Line 63: | ||
===== 3. Customize Import Rules (optional) ===== | ===== 3. Customize Import Rules (optional) ===== | ||
- | If you wish to customize the way your records are ingested, see the [[indexing: | + | 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/ | :!: If you change import rules, note that you will need to remove your $VUFIND_LOCAL_DIR/ | ||
Line 45: | Line 71: | ||
By default, VuFind does not include any DSpace-specific display logic; records indexed from DSpace are displayed using the standard " | By default, VuFind does not include any DSpace-specific display logic; records indexed from DSpace are displayed using the standard " | ||
---- struct data ---- | ---- struct data ---- | ||
+ | properties.Page Owner : | ||
---- | ---- | ||
indexing/dspace.txt · Last modified: 2023/08/16 19:52 by demiankatz