Warning: This page has not been updated in over over a year and may be outdated or deprecated.
configuration:course_reserves
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
course_reserves [2012/10/03 15:32] – demiankatz | configuration:course_reserves [2023/06/05 20:33] – [Multiple reserve Solr cores] Fix module name. dltj | ||
---|---|---|---|
Line 7: | Line 7: | ||
===== Driver-Based Reserves (Default) ===== | ===== Driver-Based Reserves (Default) ===== | ||
- | If your [[vufind2:building_an_ils_driver|ILS driver]] implements the findReserves() method, VuFind can load course reserves information in real-time from the ILS. | + | If your [[development:plugins: |
===== Solr-Based Reserves ===== | ===== Solr-Based Reserves ===== | ||
Line 13: | Line 13: | ||
Starting with VuFind 1.3, you can configure the software to use a Solr index for course reserves searching instead of the ILS driver. | Starting with VuFind 1.3, you can configure the software to use a Solr index for course reserves searching instead of the ILS driver. | ||
- | 1.) Edit the [Reserves] section of [[config.ini]] and set search_enabled to true. | + | 1.) Edit the [Reserves] section of [[configuration: |
- | 2.) Turn on the reserves Solr core by editing solr/ | + | 2.) Turn on the reserves Solr core by editing solr/ |
- | 3.) Load data into the index by running the util/ | + | 3.) Load data into the index by running the util/ |
+ | |||
+ | ==== index_reserves.php command-line parameters (VuFind 1.4 or newer) ==== | ||
+ | |||
+ | < | ||
+ | Course reserves index builder | ||
+ | |||
+ | If run with no options, this will attempt | ||
+ | |||
+ | Switches may be used to index from delimited files instead: | ||
+ | |||
+ | -f [filename] loads a file (may be repeated for multiple files) | ||
+ | -d [delimiter] specifies a delimiter (comma is default) | ||
+ | | ||
+ | can be found within the file. The template is a comma- | ||
+ | | ||
+ | BIB_ID | ||
+ | COURSE | ||
+ | DEPARTMENT - department name | ||
+ | INSTRUCTOR - instructor name | ||
+ | SKIP - ignore data in this position | ||
+ | | ||
+ | -h or -? display this help information. | ||
+ | </code> | ||
+ | |||
+ | ==== Multiple reserve Solr cores ==== | ||
+ | |||
+ | If your Solr installation has more than one core for reserves (for instance, your Solr service is used by more than one VuFind installation), | ||
+ | |||
+ | 1.) Create module/< | ||
+ | |||
+ | < | ||
+ | <?php | ||
+ | namespace < | ||
+ | |||
+ | class SolrReservesBackendFactory extends \VuFind\Search\Factory\SolrReservesBackendFactory | ||
+ | { | ||
+ | public function __construct() | ||
+ | { | ||
+ | parent:: | ||
+ | $this-> | ||
+ | } | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | 2.) Add a factory plugin to the new factory in your module' | ||
+ | |||
+ | < | ||
+ | ' | ||
+ | array( | ||
+ | ' | ||
+ | array( | ||
+ | ' | ||
+ | array( | ||
+ | ' | ||
+ | ) | ||
+ | ) | ||
+ | ) | ||
+ | </ | ||
---- struct data ---- | ---- struct data ---- | ||
+ | properties.Page Owner : | ||
---- | ---- | ||
configuration/course_reserves.txt · Last modified: 2023/11/09 18:47 by demiankatz