Warning: This page has not been updated in over over a year and may be outdated or deprecated.
indexing:eprints
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revisionLast revisionBoth sides next revision | ||
importing_records:how_to_index_eprints_with_vufind [2012/05/08 12:36] – created demiankatz | indexing:eprints [2015/12/14 18:14] – [4. Set Up Change Tracking (optional)] demiankatz | ||
---|---|---|---|
Line 3: | Line 3: | ||
// Tips and configurations courtesy of Ranju Upadhyay, National University of Ireland Maynooth. // | // Tips and configurations courtesy of Ranju Upadhyay, National University of Ireland Maynooth. // | ||
- | As our repo is EPrints, I have needed to do the configuration in VuFind for data harvest from EPrints. | + | As our repo is EPrints, I have needed to do the configuration in VuFind for data harvest from EPrints. |
On the EPrints side, the data is already exposed for harvesting in oai_dc, so there was no configuration needed there. | On the EPrints side, the data is already exposed for harvesting in oai_dc, so there was no configuration needed there. | ||
Line 36: | Line 36: | ||
===== 3. Set up import XSLT ===== | ===== 3. Set up import XSLT ===== | ||
- | I then copied dspace.xsl and renamed it eprints.xsl. | + | I then copied dspace.xsl and renamed it eprints.xsl. |
+ | |||
+ | First, set the record type to eprints: | ||
< | < | ||
<!-- RECORDTYPE --> | <!-- RECORDTYPE --> | ||
<field name=" | <field name=" | ||
+ | </ | ||
+ | |||
+ | Next, add support for URLs from the dc:relation field: | ||
+ | |||
+ | < | ||
+ | < | ||
+ | <field name=" | ||
+ | < | ||
+ | </ | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | Finally, remove the check for hdl.handle.net in the dc: | ||
+ | |||
+ | < | ||
+ | < | ||
+ | < | ||
+ | <field name=" | ||
+ | < | ||
+ | </ | ||
+ | </ | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | ===== 4. Set Up Change Tracking (optional) ===== | ||
+ | |||
+ | If you need to track record change dates (see [[tracking_record_changes|Tracking Record Changes]] for details), you need to do a couple of extra things: | ||
+ | |||
+ | * Uncomment the injectDate line in the oai.ini file section above. | ||
+ | * Add these lines to eprints.properties: | ||
+ | |||
+ | < | ||
+ | track_changes = 1 | ||
+ | solr_core = " | ||
+ | </ | ||
+ | |||
+ | * Add these lines to eprints.xsl: | ||
+ | |||
+ | First, after the other parameter declarations: | ||
+ | |||
+ | < | ||
+ | < | ||
+ | < | ||
+ | </ | ||
+ | |||
+ | Further down, among the other field population code: | ||
+ | |||
+ | < | ||
+ | <xsl:if test=" | ||
+ | <field name=" | ||
+ | < | ||
+ | </ | ||
+ | <field name=" | ||
+ | < | ||
+ | </ | ||
+ | </ | ||
</ | </ | ||
---- struct data ---- | ---- struct data ---- | ||
---- | ---- | ||
indexing/eprints.txt · Last modified: 2023/11/28 20:08 by demiankatz