Warning: This page has not been updated in over over a year and may be outdated or deprecated.
indexing:solrmarc
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:solrmarc [2018/03/05 14:34] – [Customizing Format Determination] demiankatz | indexing:solrmarc [2019/05/16 18:43] – [VuFind 4.0 and newer] demiankatz | ||
---|---|---|---|
Line 35: | Line 35: | ||
One of the most commonly-requested VuFind customizations involves changing the way record formats are assigned. The method for this depends on your VuFind version. | One of the most commonly-requested VuFind customizations involves changing the way record formats are assigned. The method for this depends on your VuFind version. | ||
+ | |||
+ | ==== VuFind 6.0 and newer ==== | ||
+ | |||
+ | VuFind 6.0 replaces the getFormat method with getFormats (to return multiple values when appropriate). The advice below for VuFind 4.0 and newer remains relevant; just be sure to override the appropriate method. | ||
==== VuFind 4.0 and newer ==== | ==== VuFind 4.0 and newer ==== | ||
More recent versions of VuFind determine formats using a getFormat function found in [[https:// | More recent versions of VuFind determine formats using a getFormat function found in [[https:// | ||
+ | |||
+ | - Copy import/ | ||
+ | - If your new custom script returns different values than the old script, or if you want to change the way the existing values are mapped into your index, edit a local copy of the translation map found in import/ | ||
+ | - If SolrMarc has difficulty finding your custom code, you can edit a local copy of import/ | ||
+ | |||
+ | format = custom(edu.myuniversity.index.FormatCalculator), | ||
==== VuFind 3.x and earlier ==== | ==== VuFind 3.x and earlier ==== |
indexing/solrmarc.txt · Last modified: 2024/02/23 11:34 by demiankatz