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 revisionLast revisionBoth sides next revision | ||
configuration:course_reserves [2023/05/31 18:18] – Add instructions for multiple reserve cores dltj | configuration:course_reserves [2023/11/09 18:42] – demiankatz | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Course Reserves ====== | ====== Course Reserves ====== | ||
- | Academic libraries often need to list resources held on reserve for particular courses, departments and instructors. | + | Academic libraries often need to list resources held on reserve for particular courses, departments and instructors. |
- | Regardless of how reserves are configured, they can be accessed through the "/ | + | Regardless of how reserves are configured, they can be accessed through the "/ |
===== Driver-Based Reserves (Default) ===== | ===== Driver-Based Reserves (Default) ===== | ||
- | If your [[development: | + | If your [[development: |
===== Solr-Based Reserves ===== | ===== Solr-Based Reserves ===== | ||
- | Starting with VuFind | + | Starting with VuFind® |
1.) Edit the [Reserves] section of [[configuration: | 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 | + | ==== index_reserves.php command-line parameters (VuFind® |
< | < | ||
Line 44: | Line 44: | ||
==== Multiple reserve Solr cores ==== | ==== 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 | + | If your Solr installation has more than one core for reserves (for instance, your Solr service is used by more than one VuFind® |
- | 1.) Copy module/VuFind/src/VuFind/ | + | 1.) Create |
- | 2.) Change | + | < |
+ | <?php | ||
+ | namespace < | ||
+ | |||
+ | class SolrReservesBackendFactory extends \VuFind\Search\Factory\SolrReservesBackendFactory | ||
+ | { | ||
+ | public function __construct() | ||
+ | { | ||
+ | parent:: | ||
+ | | ||
+ | } | ||
+ | } | ||
+ | </ | ||
- | 3.) Add a factory plugin to the new factory in your module' | + | 2.) Add a factory plugin to the new factory in your module' |
< | < | ||
- | | + | ' |
+ | array( | ||
+ | | ||
array( | array( | ||
' | ' | ||
- | | + | |
- | ' | + | ' |
- | ) | + | ) |
) | ) | ||
+ | ) | ||
</ | </ | ||
---- struct data ---- | ---- struct data ---- |
configuration/course_reserves.txt · Last modified: 2023/11/09 18:47 by demiankatz